1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>ARM Compute Library: NECannyEdge Class Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18 $(document).ready(initResizable);
19 $(window).load(resizeHeight);
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25 $(document).ready(function() { init_search(); });
27 <script type="text/x-mathjax-config">
29 extensions: ["tex2jax.js"],
30 jax: ["input/TeX","output/HTML-CSS"],
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <table cellspacing="0" cellpadding="0">
40 <tr style="height: 56px;">
41 <td style="padding-left: 0.5em;">
42 <div id="projectname">ARM Compute Library
43  <span id="projectnumber">17.04</span>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
55 <div id="navrow1" class="tabs">
57 <li><a href="index.xhtml"><span>Main Page</span></a></li>
58 <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
59 <li class="current"><a href="annotated.xhtml"><span>Data Structures</span></a></li>
60 <li><a href="files.xhtml"><span>Files</span></a></li>
62 <div id="MSearchBox" class="MSearchBoxInactive">
64 <img id="MSearchSelect" src="search/mag_sel.png"
65 onmouseover="return searchBox.OnSearchSelectShow()"
66 onmouseout="return searchBox.OnSearchSelectHide()"
68 <input type="text" id="MSearchField" value="Search" accesskey="S"
69 onfocus="searchBox.OnSearchFieldFocus(true)"
70 onblur="searchBox.OnSearchFieldFocus(false)"
71 onkeyup="searchBox.OnSearchFieldChange(event)"/>
72 </span><span class="right">
73 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
79 <div id="navrow2" class="tabs2">
81 <li><a href="annotated.xhtml"><span>Data Structures</span></a></li>
82 <li><a href="classes.xhtml"><span>Data Structure Index</span></a></li>
83 <li><a href="inherits.xhtml"><span>Class Hierarchy</span></a></li>
84 <li><a href="functions.xhtml"><span>Data Fields</span></a></li>
88 <div id="side-nav" class="ui-resizable side-nav-resizable">
90 <div id="nav-tree-contents">
91 <div id="nav-sync" class="sync"></div>
94 <div id="splitbar" style="-moz-user-select:none;"
95 class="ui-resizable-handle">
98 <script type="text/javascript">
99 $(document).ready(function(){initNavTree('classarm__compute_1_1_n_e_canny_edge.xhtml','');});
101 <div id="doc-content">
102 <!-- window showing the filter options -->
103 <div id="MSearchSelectWindow"
104 onmouseover="return searchBox.OnSearchSelectShow()"
105 onmouseout="return searchBox.OnSearchSelectHide()"
106 onkeydown="return searchBox.OnSearchSelectKey(event)">
109 <!-- iframe showing the search results (closed by default) -->
110 <div id="MSearchResultsWindow">
111 <iframe src="javascript:void(0)" frameborder="0"
112 name="MSearchResults" id="MSearchResults">
117 <div class="summary">
118 <a href="#pub-methods">Public Member Functions</a> </div>
119 <div class="headertitle">
120 <div class="title">NECannyEdge Class Reference</div> </div>
122 <div class="contents">
124 <p>Basic function to execute canny edge on NEON.
125 <a href="classarm__compute_1_1_n_e_canny_edge.xhtml#details">More...</a></p>
127 <p><code>#include <<a class="el" href="_n_e_canny_edge_8h_source.xhtml">NECannyEdge.h</a>></code></p>
128 <div class="dynheader">
129 Collaboration diagram for NECannyEdge:</div>
130 <div class="dyncontent">
131 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1_n_e_canny_edge__coll__graph.svg" width="120" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
133 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
134 <table class="memberdecls">
135 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
136 Public Member Functions</h2></td></tr>
137 <tr class="memitem:ae42141847e0a4f706223a1f71d435451"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml#ae42141847e0a4f706223a1f71d435451">NECannyEdge</a> ()</td></tr>
138 <tr class="memdesc:ae42141847e0a4f706223a1f71d435451"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#ae42141847e0a4f706223a1f71d435451">More...</a><br /></td></tr>
139 <tr class="separator:ae42141847e0a4f706223a1f71d435451"><td class="memSeparator" colspan="2"> </td></tr>
140 <tr class="memitem:a168eb5b6fa7992e8a6eea6d665f1c006"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml#a168eb5b6fa7992e8a6eea6d665f1c006">NECannyEdge</a> (const <a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> &)=delete</td></tr>
141 <tr class="memdesc:a168eb5b6fa7992e8a6eea6d665f1c006"><td class="mdescLeft"> </td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#a168eb5b6fa7992e8a6eea6d665f1c006">More...</a><br /></td></tr>
142 <tr class="separator:a168eb5b6fa7992e8a6eea6d665f1c006"><td class="memSeparator" colspan="2"> </td></tr>
143 <tr class="memitem:a325fac2836aecb2da2f86b7699e2b359"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml#a325fac2836aecb2da2f86b7699e2b359">operator=</a> (const <a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> &)=delete</td></tr>
144 <tr class="memdesc:a325fac2836aecb2da2f86b7699e2b359"><td class="mdescLeft"> </td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#a325fac2836aecb2da2f86b7699e2b359">More...</a><br /></td></tr>
145 <tr class="separator:a325fac2836aecb2da2f86b7699e2b359"><td class="memSeparator" colspan="2"> </td></tr>
146 <tr class="memitem:a9222c1af43116f31809789741c6adef0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml#a9222c1af43116f31809789741c6adef0">configure</a> (<a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *input, <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *output, int32_t upper_thr, int32_t lower_thr, int32_t gradient_size, int32_t norm_type, <a class="el" href="namespacearm__compute.xhtml#a15a05537a472ee742404821851529327">BorderMode</a> border_mode, uint8_t constant_border_value=0, bool use_fp16=false)</td></tr>
147 <tr class="memdesc:a9222c1af43116f31809789741c6adef0"><td class="mdescLeft"> </td><td class="mdescRight">Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode. <a href="#a9222c1af43116f31809789741c6adef0">More...</a><br /></td></tr>
148 <tr class="separator:a9222c1af43116f31809789741c6adef0"><td class="memSeparator" colspan="2"> </td></tr>
149 <tr class="memitem:ad1717410afd0be936c6213a63c8005fb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml#ad1717410afd0be936c6213a63c8005fb">run</a> () override</td></tr>
150 <tr class="memdesc:ad1717410afd0be936c6213a63c8005fb"><td class="mdescLeft"> </td><td class="mdescRight">Run the kernels contained in the function. <a href="#ad1717410afd0be936c6213a63c8005fb">More...</a><br /></td></tr>
151 <tr class="separator:ad1717410afd0be936c6213a63c8005fb"><td class="memSeparator" colspan="2"> </td></tr>
152 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_function')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_function.xhtml">IFunction</a></td></tr>
153 <tr class="memitem:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_function.xhtml#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">~IFunction</a> ()=default</td></tr>
154 <tr class="memdesc:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">More...</a><br /></td></tr>
155 <tr class="separator:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memSeparator" colspan="2"> </td></tr>
157 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
158 <div class="textblock"><p>Basic function to execute canny edge on NEON. </p>
159 <p>This function calls the following NEON kernels and functions:</p>
161 <li><a class="el" href="classarm__compute_1_1_n_e_fill_border_kernel.xhtml">NEFillBorderKernel</a> (if border_mode == REPLICATE or border_mode == CONSTANT)</li>
162 <li><a class="el" href="classarm__compute_1_1_n_e_sobel3x3.xhtml">NESobel3x3</a> (if gradient_size == 3) or <a class="el" href="classarm__compute_1_1_n_e_sobel5x5.xhtml">NESobel5x5</a> (if gradient_size == 5) or <a class="el" href="classarm__compute_1_1_n_e_sobel7x7.xhtml">NESobel7x7</a> (if gradient_size == 7)</li>
163 <li><a class="el" href="classarm__compute_1_1_n_e_gradient_kernel.xhtml">NEGradientKernel</a></li>
164 <li><a class="el" href="classarm__compute_1_1_n_e_edge_non_max_suppression_kernel.xhtml">NEEdgeNonMaxSuppressionKernel</a></li>
165 <li><a class="el" href="classarm__compute_1_1_n_e_edge_trace_kernel.xhtml">NEEdgeTraceKernel</a> </li>
168 <p>Definition at line <a class="el" href="_n_e_canny_edge_8h_source.xhtml#l00051">51</a> of file <a class="el" href="_n_e_canny_edge_8h_source.xhtml">NECannyEdge.h</a>.</p>
169 </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
170 <a class="anchor" id="ae42141847e0a4f706223a1f71d435451"></a>
171 <div class="memitem">
172 <div class="memproto">
173 <table class="memname">
175 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> </td>
177 <td class="paramname"></td><td>)</td>
181 </div><div class="memdoc">
184 <p>Initialize Sobel kernel to nullptr. </p>
188 <a class="anchor" id="a168eb5b6fa7992e8a6eea6d665f1c006"></a>
189 <div class="memitem">
190 <div class="memproto">
191 <table class="mlabels">
193 <td class="mlabels-left">
194 <table class="memname">
196 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> </td>
198 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> & </td>
199 <td class="paramname"></td><td>)</td>
204 <td class="mlabels-right">
205 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
208 </div><div class="memdoc">
210 <p>Prevent instances of this class from being copied (As this class contains pointers) </p>
214 <h2 class="groupheader">Member Function Documentation</h2>
215 <a class="anchor" id="a9222c1af43116f31809789741c6adef0"></a>
216 <div class="memitem">
217 <div class="memproto">
218 <table class="memname">
220 <td class="memname">void configure </td>
222 <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> * </td>
223 <td class="paramname"><em>input</em>, </td>
226 <td class="paramkey"></td>
228 <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> * </td>
229 <td class="paramname"><em>output</em>, </td>
232 <td class="paramkey"></td>
234 <td class="paramtype">int32_t </td>
235 <td class="paramname"><em>upper_thr</em>, </td>
238 <td class="paramkey"></td>
240 <td class="paramtype">int32_t </td>
241 <td class="paramname"><em>lower_thr</em>, </td>
244 <td class="paramkey"></td>
246 <td class="paramtype">int32_t </td>
247 <td class="paramname"><em>gradient_size</em>, </td>
250 <td class="paramkey"></td>
252 <td class="paramtype">int32_t </td>
253 <td class="paramname"><em>norm_type</em>, </td>
256 <td class="paramkey"></td>
258 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#a15a05537a472ee742404821851529327">BorderMode</a> </td>
259 <td class="paramname"><em>border_mode</em>, </td>
262 <td class="paramkey"></td>
264 <td class="paramtype">uint8_t </td>
265 <td class="paramname"><em>constant_border_value</em> = <code>0</code>, </td>
268 <td class="paramkey"></td>
270 <td class="paramtype">bool </td>
271 <td class="paramname"><em>use_fp16</em> = <code>false</code> </td>
279 </div><div class="memdoc">
281 <p>Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode. </p>
282 <dl class="params"><dt>Parameters</dt><dd>
283 <table class="params">
284 <tr><td class="paramdir">[in,out]</td><td class="paramname">input</td><td>Source tensor. Data type supported: U8. (Written to only for <code>border_mode</code> != UNDEFINED) </td></tr>
285 <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>Destination tensor. Data type supported: U8. </td></tr>
286 <tr><td class="paramdir">[in]</td><td class="paramname">upper_thr</td><td>Upper threhold used for the hysteresis </td></tr>
287 <tr><td class="paramdir">[in]</td><td class="paramname">lower_thr</td><td>Lower threshold used for the hysteresis. </td></tr>
288 <tr><td class="paramdir">[in]</td><td class="paramname">gradient_size</td><td>Gradient size (3, 5 or 7) </td></tr>
289 <tr><td class="paramdir">[in]</td><td class="paramname">norm_type</td><td>Normalization type. If 1, L1-Norm otherwise L2-Norm </td></tr>
290 <tr><td class="paramdir">[in]</td><td class="paramname">border_mode</td><td>Border mode to use for the convolution. </td></tr>
291 <tr><td class="paramdir">[in]</td><td class="paramname">constant_border_value</td><td>(Optional) Constant value to use for borders if border_mode is set to CONSTANT. </td></tr>
292 <tr><td class="paramdir">[in]</td><td class="paramname">use_fp16</td><td>(Optional) If true the FP16 kernels will be used. If false F32 kernels are used. </td></tr>
299 <a class="anchor" id="a325fac2836aecb2da2f86b7699e2b359"></a>
300 <div class="memitem">
301 <div class="memproto">
302 <table class="mlabels">
304 <td class="mlabels-left">
305 <table class="memname">
307 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a>& operator= </td>
309 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a> & </td>
310 <td class="paramname"></td><td>)</td>
315 <td class="mlabels-right">
316 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
319 </div><div class="memdoc">
321 <p>Prevent instances of this class from being copied (As this class contains pointers) </p>
325 <a class="anchor" id="ad1717410afd0be936c6213a63c8005fb"></a>
326 <div class="memitem">
327 <div class="memproto">
328 <table class="mlabels">
330 <td class="mlabels-left">
331 <table class="memname">
333 <td class="memname">void run </td>
335 <td class="paramname"></td><td>)</td>
340 <td class="mlabels-right">
341 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
344 </div><div class="memdoc">
346 <p>Run the kernels contained in the function. </p>
347 <p>For NEON kernels:</p><ul>
348 <li>Multi-threading is used for the kernels which are parallelisable.</li>
349 <li>By default std::thread::hardware_concurrency() threads are used.</li>
351 <dl class="section note"><dt>Note</dt><dd><a class="el" href="classarm__compute_1_1_c_p_p_scheduler.xhtml#ae9dc1846ff1612778bbac85d46344aef">CPPScheduler::force_number_of_threads()</a> can be used to manually set the number of threads</dd></dl>
352 <p>For OpenCL kernels:</p><ul>
353 <li>All the kernels are enqueued on the queue associated with <a class="el" href="classarm__compute_1_1_c_l_scheduler.xhtml" title="Provides global access to a CL context and command queue. ">CLScheduler</a>.</li>
354 <li>The queue is then flushed.</li>
356 <dl class="section note"><dt>Note</dt><dd>The function will not block until the kernels are executed. It is the user's responsibility to wait. </dd></dl>
358 <p>Implements <a class="el" href="classarm__compute_1_1_i_function.xhtml#a18954417d3124a8095783ea13dc6d00b">IFunction</a>.</p>
362 <hr/>The documentation for this class was generated from the following file:<ul>
363 <li>arm_compute/runtime/NEON/functions/<a class="el" href="_n_e_canny_edge_8h_source.xhtml">NECannyEdge.h</a></li>
365 </div><!-- contents -->
366 </div><!-- doc-content -->
367 <!-- start footer part -->
368 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
370 <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_n_e_canny_edge.xhtml">NECannyEdge</a></li>
371 <li class="footer">Generated on Wed Apr 12 2017 14:26:06 for ARM Compute Library by
372 <a href="http://www.doxygen.org/index.html">
373 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>