arm_compute v18.05
[platform/upstream/armcl.git] / documentation / sobel__filter_8cl.xhtml
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">
4 <head>
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>Compute Library: src/core/CL/cl_kernels/sobel_filter.cl File 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);
20 </script>
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(); });
26 </script>
27 <script type="text/x-mathjax-config">
28   MathJax.Hub.Config({
29     extensions: ["tex2jax.js"],
30     jax: ["input/TeX","output/HTML-CSS"],
31 });
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" />
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 56px;">
41   <td style="padding-left: 0.5em;">
42    <div id="projectname">Compute Library
43    &#160;<span id="projectnumber">18.05</span>
44    </div>
45   </td>
46  </tr>
47  </tbody>
48 </table>
49 </div>
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');
54 </script>
55   <div id="navrow1" class="tabs">
56     <ul class="tablist">
57       <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
58       <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
59       <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
60       <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
61       <li class="current"><a href="files.xhtml"><span>Files</span></a></li>
62       <li>
63         <div id="MSearchBox" class="MSearchBoxInactive">
64         <span class="left">
65           <img id="MSearchSelect" src="search/mag_sel.png"
66                onmouseover="return searchBox.OnSearchSelectShow()"
67                onmouseout="return searchBox.OnSearchSelectHide()"
68                alt=""/>
69           <input type="text" id="MSearchField" value="Search" accesskey="S"
70                onfocus="searchBox.OnSearchFieldFocus(true)" 
71                onblur="searchBox.OnSearchFieldFocus(false)" 
72                onkeyup="searchBox.OnSearchFieldChange(event)"/>
73           </span><span class="right">
74             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
75           </span>
76         </div>
77       </li>
78     </ul>
79   </div>
80   <div id="navrow2" class="tabs2">
81     <ul class="tablist">
82       <li><a href="files.xhtml"><span>File&#160;List</span></a></li>
83       <li><a href="globals.xhtml"><span>Globals</span></a></li>
84     </ul>
85   </div>
86 </div><!-- top -->
87 <div id="side-nav" class="ui-resizable side-nav-resizable">
88   <div id="nav-tree">
89     <div id="nav-tree-contents">
90       <div id="nav-sync" class="sync"></div>
91     </div>
92   </div>
93   <div id="splitbar" style="-moz-user-select:none;" 
94        class="ui-resizable-handle">
95   </div>
96 </div>
97 <script type="text/javascript">
98 $(document).ready(function(){initNavTree('sobel__filter_8cl.xhtml','');});
99 </script>
100 <div id="doc-content">
101 <!-- window showing the filter options -->
102 <div id="MSearchSelectWindow"
103      onmouseover="return searchBox.OnSearchSelectShow()"
104      onmouseout="return searchBox.OnSearchSelectHide()"
105      onkeydown="return searchBox.OnSearchSelectKey(event)">
106 </div>
107
108 <!-- iframe showing the search results (closed by default) -->
109 <div id="MSearchResultsWindow">
110 <iframe src="javascript:void(0)" frameborder="0" 
111         name="MSearchResults" id="MSearchResults">
112 </iframe>
113 </div>
114
115 <div class="header">
116   <div class="summary">
117 <a href="#define-members">Macros</a> &#124;
118 <a href="#func-members">Functions</a>  </div>
119   <div class="headertitle">
120 <div class="title">sobel_filter.cl File Reference</div>  </div>
121 </div><!--header-->
122 <div class="contents">
123 <div class="textblock"><code>#include &quot;<a class="el" href="helpers_8h_source.xhtml">helpers.h</a>&quot;</code><br />
124 </div>
125 <p><a href="sobel__filter_8cl_source.xhtml">Go to the source code of this file.</a></p>
126 <table class="memberdecls">
127 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
128 Macros</h2></td></tr>
129 <tr class="memitem:a8476f4a8de2c191433342c9ce896986a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a8476f4a8de2c191433342c9ce896986a">X0</a>&#160;&#160;&#160;-1</td></tr>
130 <tr class="separator:a8476f4a8de2c191433342c9ce896986a"><td class="memSeparator" colspan="2">&#160;</td></tr>
131 <tr class="memitem:a1964818ccd90a6173ea48cecb652feeb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a1964818ccd90a6173ea48cecb652feeb">X1</a>&#160;&#160;&#160;-4</td></tr>
132 <tr class="separator:a1964818ccd90a6173ea48cecb652feeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
133 <tr class="memitem:a79ae03a0214cb30e57b9e8835f2a0019"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a79ae03a0214cb30e57b9e8835f2a0019">X2</a>&#160;&#160;&#160;-5</td></tr>
134 <tr class="separator:a79ae03a0214cb30e57b9e8835f2a0019"><td class="memSeparator" colspan="2">&#160;</td></tr>
135 <tr class="memitem:adb6fd3d004959525c6a684b82ef50860"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#adb6fd3d004959525c6a684b82ef50860">X3</a>&#160;&#160;&#160;0</td></tr>
136 <tr class="separator:adb6fd3d004959525c6a684b82ef50860"><td class="memSeparator" colspan="2">&#160;</td></tr>
137 <tr class="memitem:a0f79fa7387c308a89a30682d905aa40a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a0f79fa7387c308a89a30682d905aa40a">X4</a>&#160;&#160;&#160;5</td></tr>
138 <tr class="separator:a0f79fa7387c308a89a30682d905aa40a"><td class="memSeparator" colspan="2">&#160;</td></tr>
139 <tr class="memitem:a921884524c9038883b25f03d3bd1b078"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a921884524c9038883b25f03d3bd1b078">X5</a>&#160;&#160;&#160;4</td></tr>
140 <tr class="separator:a921884524c9038883b25f03d3bd1b078"><td class="memSeparator" colspan="2">&#160;</td></tr>
141 <tr class="memitem:a0e11bba5150b8ae2a8831f6f4532e352"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a0e11bba5150b8ae2a8831f6f4532e352">X6</a>&#160;&#160;&#160;1</td></tr>
142 <tr class="separator:a0e11bba5150b8ae2a8831f6f4532e352"><td class="memSeparator" colspan="2">&#160;</td></tr>
143 <tr class="memitem:a0b0dcdd1ffa302474e907d3d7ad9dbfe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a0b0dcdd1ffa302474e907d3d7ad9dbfe">Y0</a>&#160;&#160;&#160;1</td></tr>
144 <tr class="separator:a0b0dcdd1ffa302474e907d3d7ad9dbfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
145 <tr class="memitem:a294189cdea31dda8faf609b9b3e2000a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a294189cdea31dda8faf609b9b3e2000a">Y1</a>&#160;&#160;&#160;6</td></tr>
146 <tr class="separator:a294189cdea31dda8faf609b9b3e2000a"><td class="memSeparator" colspan="2">&#160;</td></tr>
147 <tr class="memitem:a3128cc29e366777d66d8b049451ca8a0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a3128cc29e366777d66d8b049451ca8a0">Y2</a>&#160;&#160;&#160;15</td></tr>
148 <tr class="separator:a3128cc29e366777d66d8b049451ca8a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
149 <tr class="memitem:a676acf01638364a90adf5d09d2a215bf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a676acf01638364a90adf5d09d2a215bf">Y3</a>&#160;&#160;&#160;20</td></tr>
150 <tr class="separator:a676acf01638364a90adf5d09d2a215bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
151 <tr class="memitem:a5a8e903c2373c4d65724c79cdea8b3d9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a5a8e903c2373c4d65724c79cdea8b3d9">Y4</a>&#160;&#160;&#160;15</td></tr>
152 <tr class="separator:a5a8e903c2373c4d65724c79cdea8b3d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
153 <tr class="memitem:a770267173956bf918cf3ca1247b6de12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a770267173956bf918cf3ca1247b6de12">Y5</a>&#160;&#160;&#160;6</td></tr>
154 <tr class="separator:a770267173956bf918cf3ca1247b6de12"><td class="memSeparator" colspan="2">&#160;</td></tr>
155 <tr class="memitem:abcdba0de8723fe6f2d2eb284d7e98a41"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#abcdba0de8723fe6f2d2eb284d7e98a41">Y6</a>&#160;&#160;&#160;1</td></tr>
156 <tr class="separator:abcdba0de8723fe6f2d2eb284d7e98a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
157 <tr class="memitem:ad40297671e8a51899c6114386492006b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">SOBEL1x1_HOR</a>(src,  gx,  gy,  idx)</td></tr>
158 <tr class="separator:ad40297671e8a51899c6114386492006b"><td class="memSeparator" colspan="2">&#160;</td></tr>
159 <tr class="memitem:a400b86850d6a242a7f48804a097c6403"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">SOBEL1x1_VERT</a>(src,  g,  direction,  idx)</td></tr>
160 <tr class="separator:a400b86850d6a242a7f48804a097c6403"><td class="memSeparator" colspan="2">&#160;</td></tr>
161 <tr class="memitem:a7f602251e0a1f8710f8aab3aef09a36b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a7f602251e0a1f8710f8aab3aef09a36b">SOBEL1x7</a>(ptr,  gx,  gy)</td></tr>
162 <tr class="separator:a7f602251e0a1f8710f8aab3aef09a36b"><td class="memSeparator" colspan="2">&#160;</td></tr>
163 <tr class="memitem:a59f291bf2b268f9b850fa81a3fbf776a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a59f291bf2b268f9b850fa81a3fbf776a">SOBEL7x1</a>(ptr,  g,  direction)</td></tr>
164 <tr class="separator:a59f291bf2b268f9b850fa81a3fbf776a"><td class="memSeparator" colspan="2">&#160;</td></tr>
165 </table><table class="memberdecls">
166 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
167 Functions</h2></td></tr>
168 <tr class="memitem:ad48e3b9dda20b039199eaea842350975"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#ad48e3b9dda20b039199eaea842350975">sobel3x3</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_gx_ptr, uint dst_gx_stride_x, uint dst_gx_step_x, uint dst_gx_stride_y, uint dst_gx_step_y, uint dst_gx_offset_first_element_in_bytes, __global uchar *dst_gy_ptr, uint dst_gy_stride_x, uint dst_gy_step_x, uint dst_gy_stride_y, uint dst_gy_step_y, uint dst_gy_offset_first_element_in_bytes)</td></tr>
169 <tr class="memdesc:ad48e3b9dda20b039199eaea842350975"><td class="mdescLeft">&#160;</td><td class="mdescRight">This OpenCL kernel that computes a Sobel3x3 filter.  <a href="#ad48e3b9dda20b039199eaea842350975">More...</a><br /></td></tr>
170 <tr class="separator:ad48e3b9dda20b039199eaea842350975"><td class="memSeparator" colspan="2">&#160;</td></tr>
171 <tr class="memitem:a4fac2cb52458aa4666af5b521d2a3910"><td class="memItemLeft" align="right" valign="top">short16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a4fac2cb52458aa4666af5b521d2a3910">sobel1x5</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short left1_coeff_gx, const short left2_coeff_gx, const short middle_coeff_gx, const short right1_coeff_gx, const short right2_coeff_gx, const short left1_coeff_gy, const short left2_coeff_gy, const short middle_coeff_gy, const short right1_coeff_gy, const short right2_coeff_gy)</td></tr>
172 <tr class="memdesc:a4fac2cb52458aa4666af5b521d2a3910"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a 1D horizontal sobel filter 1x5 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).  <a href="#a4fac2cb52458aa4666af5b521d2a3910">More...</a><br /></td></tr>
173 <tr class="separator:a4fac2cb52458aa4666af5b521d2a3910"><td class="memSeparator" colspan="2">&#160;</td></tr>
174 <tr class="memitem:a1cfe58175749124762fe0dea315d3c21"><td class="memItemLeft" align="right" valign="top">short8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a1cfe58175749124762fe0dea315d3c21">sobel5x1</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short up1_coeff, const short up2_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff)</td></tr>
175 <tr class="memdesc:a1cfe58175749124762fe0dea315d3c21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a 1D vertical sobel filter 5x1 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).  <a href="#a1cfe58175749124762fe0dea315d3c21">More...</a><br /></td></tr>
176 <tr class="separator:a1cfe58175749124762fe0dea315d3c21"><td class="memSeparator" colspan="2">&#160;</td></tr>
177 <tr class="memitem:a7a74e414f0e90638939a7a0506576625"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a7a74e414f0e90638939a7a0506576625">sobel_separable1x5</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_gx_ptr, uint dst_gx_stride_x, uint dst_gx_step_x, uint dst_gx_stride_y, uint dst_gx_step_y, uint dst_gx_offset_first_element_in_bytes, __global uchar *dst_gy_ptr, uint dst_gy_stride_x, uint dst_gy_step_x, uint dst_gy_stride_y, uint dst_gy_step_y, uint dst_gy_offset_first_element_in_bytes)</td></tr>
178 <tr class="memdesc:a7a74e414f0e90638939a7a0506576625"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 1x5 sobel matrix to a single channel U8 input image and output two temporary channel S16 images.  <a href="#a7a74e414f0e90638939a7a0506576625">More...</a><br /></td></tr>
179 <tr class="separator:a7a74e414f0e90638939a7a0506576625"><td class="memSeparator" colspan="2">&#160;</td></tr>
180 <tr class="memitem:a2cc1fcdd12f2c3cdd31b83fd59597e40"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a2cc1fcdd12f2c3cdd31b83fd59597e40">sobel_separable5x1</a> (__global uchar *src_x_ptr, uint src_x_stride_x, uint src_x_step_x, uint src_x_stride_y, uint src_x_step_y, uint src_x_offset_first_element_in_bytes, __global uchar *dst_gx_ptr, uint dst_gx_stride_x, uint dst_gx_step_x, uint dst_gx_stride_y, uint dst_gx_step_y, uint dst_gx_offset_first_element_in_bytes, __global uchar *src_y_ptr, uint src_y_stride_x, uint src_y_step_x, uint src_y_stride_y, uint src_y_step_y, uint src_y_offset_first_element_in_bytes, __global uchar *dst_gy_ptr, uint dst_gy_stride_x, uint dst_gy_step_x, uint dst_gy_stride_y, uint dst_gy_step_y, uint dst_gy_offset_first_element_in_bytes, int dummy)</td></tr>
181 <tr class="memdesc:a2cc1fcdd12f2c3cdd31b83fd59597e40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 5x1 convolution matrix to two single channel S16 input temporary images and output two single channel S16 images.  <a href="#a2cc1fcdd12f2c3cdd31b83fd59597e40">More...</a><br /></td></tr>
182 <tr class="separator:a2cc1fcdd12f2c3cdd31b83fd59597e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
183 <tr class="memitem:ad8be5e69836ab70ac229279a7d7edaf7"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#ad8be5e69836ab70ac229279a7d7edaf7">sobel_separable1x7</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_gx_ptr, uint dst_gx_stride_x, uint dst_gx_step_x, uint dst_gx_stride_y, uint dst_gx_step_y, uint dst_gx_offset_first_element_in_bytes, __global uchar *dst_gy_ptr, uint dst_gy_stride_x, uint dst_gy_step_x, uint dst_gy_stride_y, uint dst_gy_step_y, uint dst_gy_offset_first_element_in_bytes)</td></tr>
184 <tr class="memdesc:ad8be5e69836ab70ac229279a7d7edaf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 1x7 sobel matrix to a single channel U8 input image and output two temporary channel S16 images and leave the borders undefined.  <a href="#ad8be5e69836ab70ac229279a7d7edaf7">More...</a><br /></td></tr>
185 <tr class="separator:ad8be5e69836ab70ac229279a7d7edaf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
186 <tr class="memitem:a8cdc6e6df9d40cec1e857917d14ee75f"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sobel__filter_8cl.xhtml#a8cdc6e6df9d40cec1e857917d14ee75f">sobel_separable7x1</a> (__global uchar *src_x_ptr, uint src_x_stride_x, uint src_x_step_x, uint src_x_stride_y, uint src_x_step_y, uint src_x_offset_first_element_in_bytes, __global uchar *dst_gx_ptr, uint dst_gx_stride_x, uint dst_gx_step_x, uint dst_gx_stride_y, uint dst_gx_step_y, uint dst_gx_offset_first_element_in_bytes, __global uchar *src_y_ptr, uint src_y_stride_x, uint src_y_step_x, uint src_y_stride_y, uint src_y_step_y, uint src_y_offset_first_element_in_bytes, __global uchar *dst_gy_ptr, uint dst_gy_stride_x, uint dst_gy_step_x, uint dst_gy_stride_y, uint dst_gy_step_y, uint dst_gy_offset_first_element_in_bytes, int dummy)</td></tr>
187 <tr class="memdesc:a8cdc6e6df9d40cec1e857917d14ee75f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 7x1 convolution matrix to two single channel S16 input temporary images and output two single channel S16 images and leave the borders undefined.  <a href="#a8cdc6e6df9d40cec1e857917d14ee75f">More...</a><br /></td></tr>
188 <tr class="separator:a8cdc6e6df9d40cec1e857917d14ee75f"><td class="memSeparator" colspan="2">&#160;</td></tr>
189 </table>
190 <h2 class="groupheader">Macro Definition Documentation</h2>
191 <a class="anchor" id="ad40297671e8a51899c6114386492006b"></a>
192 <div class="memitem">
193 <div class="memproto">
194       <table class="memname">
195         <tr>
196           <td class="memname">#define SOBEL1x1_HOR</td>
197           <td>(</td>
198           <td class="paramtype">&#160;</td>
199           <td class="paramname">src, </td>
200         </tr>
201         <tr>
202           <td class="paramkey"></td>
203           <td></td>
204           <td class="paramtype">&#160;</td>
205           <td class="paramname">gx, </td>
206         </tr>
207         <tr>
208           <td class="paramkey"></td>
209           <td></td>
210           <td class="paramtype">&#160;</td>
211           <td class="paramname">gy, </td>
212         </tr>
213         <tr>
214           <td class="paramkey"></td>
215           <td></td>
216           <td class="paramtype">&#160;</td>
217           <td class="paramname">idx&#160;</td>
218         </tr>
219         <tr>
220           <td></td>
221           <td>)</td>
222           <td></td><td></td>
223         </tr>
224       </table>
225 </div><div class="memdoc">
226 <b>Value:</b><div class="fragment"><div class="line">{                                                                \</div><div class="line">        int8 val = convert_int8(vload8(0, <a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">src</a>, idx - 3, 0))); \</div><div class="line">        gx += val * X##idx;                                          \</div><div class="line">        gy += val * <a class="code" href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa57cec4137b614c87cb4e24a3d003a3e0">Y</a>##idx;                                          \</div><div class="line">    }</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
227 <div class="ttc" id="namespacearm__compute_xhtml_a1ce9b523fd4f3b5bbcadcd796183455aa57cec4137b614c87cb4e24a3d003a3e0"><div class="ttname"><a href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa57cec4137b614c87cb4e24a3d003a3e0">arm_compute::Channel::Y</a></div><div class="ttdoc">Luma channel. </div></div>
228 <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a6743f0a130e8311e6f5b1a23df102472"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">arm_compute::test::validation::src</a></div><div class="ttdeci">convolution configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00147">Convolution.cpp:147</a></div></div>
229 </div><!-- fragment -->
230 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00384">384</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
231
232 </div>
233 </div>
234 <a class="anchor" id="a400b86850d6a242a7f48804a097c6403"></a>
235 <div class="memitem">
236 <div class="memproto">
237       <table class="memname">
238         <tr>
239           <td class="memname">#define SOBEL1x1_VERT</td>
240           <td>(</td>
241           <td class="paramtype">&#160;</td>
242           <td class="paramname">src, </td>
243         </tr>
244         <tr>
245           <td class="paramkey"></td>
246           <td></td>
247           <td class="paramtype">&#160;</td>
248           <td class="paramname">g, </td>
249         </tr>
250         <tr>
251           <td class="paramkey"></td>
252           <td></td>
253           <td class="paramtype">&#160;</td>
254           <td class="paramname">direction, </td>
255         </tr>
256         <tr>
257           <td class="paramkey"></td>
258           <td></td>
259           <td class="paramtype">&#160;</td>
260           <td class="paramname">idx&#160;</td>
261         </tr>
262         <tr>
263           <td></td>
264           <td>)</td>
265           <td></td><td></td>
266         </tr>
267       </table>
268 </div><div class="memdoc">
269 <b>Value:</b><div class="fragment"><div class="line">{                                                                  \</div><div class="line">        int8 val = vload8(0, (__global <span class="keywordtype">int</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">src</a>, 0, idx - 3)); \</div><div class="line">        g += val * (int8)direction##idx;                               \</div><div class="line">    }</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
270 <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a6743f0a130e8311e6f5b1a23df102472"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">arm_compute::test::validation::src</a></div><div class="ttdeci">convolution configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00147">Convolution.cpp:147</a></div></div>
271 </div><!-- fragment -->
272 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00392">392</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
273
274 </div>
275 </div>
276 <a class="anchor" id="a7f602251e0a1f8710f8aab3aef09a36b"></a>
277 <div class="memitem">
278 <div class="memproto">
279       <table class="memname">
280         <tr>
281           <td class="memname">#define SOBEL1x7</td>
282           <td>(</td>
283           <td class="paramtype">&#160;</td>
284           <td class="paramname">ptr, </td>
285         </tr>
286         <tr>
287           <td class="paramkey"></td>
288           <td></td>
289           <td class="paramtype">&#160;</td>
290           <td class="paramname">gx, </td>
291         </tr>
292         <tr>
293           <td class="paramkey"></td>
294           <td></td>
295           <td class="paramtype">&#160;</td>
296           <td class="paramname">gy&#160;</td>
297         </tr>
298         <tr>
299           <td></td>
300           <td>)</td>
301           <td></td><td></td>
302         </tr>
303       </table>
304 </div><div class="memdoc">
305 <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">SOBEL1x1_HOR</a>(ptr, gx, gy, 0)                     <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 1)                 <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 2)             <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 3)         <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 4)     <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 5) <a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">    SOBEL1x1_HOR</a>(ptr, gx, gy, 6)</div><div class="ttc" id="sobel__filter_8cl_xhtml_ad40297671e8a51899c6114386492006b"><div class="ttname"><a href="sobel__filter_8cl.xhtml#ad40297671e8a51899c6114386492006b">SOBEL1x1_HOR</a></div><div class="ttdeci">#define SOBEL1x1_HOR(src, gx, gy, idx)</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00384">sobel_filter.cl:384</a></div></div>
306 </div><!-- fragment -->
307 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00399">399</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
308
309 <p>Referenced by <a class="el" href="sobel__filter_8cl_source.xhtml#l00442">sobel_separable1x7()</a>.</p>
310
311 </div>
312 </div>
313 <a class="anchor" id="a59f291bf2b268f9b850fa81a3fbf776a"></a>
314 <div class="memitem">
315 <div class="memproto">
316       <table class="memname">
317         <tr>
318           <td class="memname">#define SOBEL7x1</td>
319           <td>(</td>
320           <td class="paramtype">&#160;</td>
321           <td class="paramname">ptr, </td>
322         </tr>
323         <tr>
324           <td class="paramkey"></td>
325           <td></td>
326           <td class="paramtype">&#160;</td>
327           <td class="paramname">g, </td>
328         </tr>
329         <tr>
330           <td class="paramkey"></td>
331           <td></td>
332           <td class="paramtype">&#160;</td>
333           <td class="paramname">direction&#160;</td>
334         </tr>
335         <tr>
336           <td></td>
337           <td>)</td>
338           <td></td><td></td>
339         </tr>
340       </table>
341 </div><div class="memdoc">
342 <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">SOBEL1x1_VERT</a>(ptr, g, direction, 0)                     <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 1)                 <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 2)             <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 3)         <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 4)     <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 5) <a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">\</a></div><div class="line"><a class="code" href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">    SOBEL1x1_VERT</a>(ptr, g, direction, 6)</div><div class="ttc" id="sobel__filter_8cl_xhtml_a400b86850d6a242a7f48804a097c6403"><div class="ttname"><a href="sobel__filter_8cl.xhtml#a400b86850d6a242a7f48804a097c6403">SOBEL1x1_VERT</a></div><div class="ttdeci">#define SOBEL1x1_VERT(src, g, direction, idx)</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00392">sobel_filter.cl:392</a></div></div>
343 </div><!-- fragment -->
344 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00409">409</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
345
346 <p>Referenced by <a class="el" href="sobel__filter_8cl_source.xhtml#l00506">sobel_separable7x1()</a>.</p>
347
348 </div>
349 </div>
350 <a class="anchor" id="a8476f4a8de2c191433342c9ce896986a"></a>
351 <div class="memitem">
352 <div class="memproto">
353       <table class="memname">
354         <tr>
355           <td class="memname">#define X0&#160;&#160;&#160;-1</td>
356         </tr>
357       </table>
358 </div><div class="memdoc">
359
360 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00366">366</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
361
362 </div>
363 </div>
364 <a class="anchor" id="a1964818ccd90a6173ea48cecb652feeb"></a>
365 <div class="memitem">
366 <div class="memproto">
367       <table class="memname">
368         <tr>
369           <td class="memname">#define X1&#160;&#160;&#160;-4</td>
370         </tr>
371       </table>
372 </div><div class="memdoc">
373
374 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00367">367</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
375
376 </div>
377 </div>
378 <a class="anchor" id="a79ae03a0214cb30e57b9e8835f2a0019"></a>
379 <div class="memitem">
380 <div class="memproto">
381       <table class="memname">
382         <tr>
383           <td class="memname">#define X2&#160;&#160;&#160;-5</td>
384         </tr>
385       </table>
386 </div><div class="memdoc">
387
388 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00368">368</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
389
390 </div>
391 </div>
392 <a class="anchor" id="adb6fd3d004959525c6a684b82ef50860"></a>
393 <div class="memitem">
394 <div class="memproto">
395       <table class="memname">
396         <tr>
397           <td class="memname">#define X3&#160;&#160;&#160;0</td>
398         </tr>
399       </table>
400 </div><div class="memdoc">
401
402 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00369">369</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
403
404 </div>
405 </div>
406 <a class="anchor" id="a0f79fa7387c308a89a30682d905aa40a"></a>
407 <div class="memitem">
408 <div class="memproto">
409       <table class="memname">
410         <tr>
411           <td class="memname">#define X4&#160;&#160;&#160;5</td>
412         </tr>
413       </table>
414 </div><div class="memdoc">
415
416 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00370">370</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
417
418 </div>
419 </div>
420 <a class="anchor" id="a921884524c9038883b25f03d3bd1b078"></a>
421 <div class="memitem">
422 <div class="memproto">
423       <table class="memname">
424         <tr>
425           <td class="memname">#define X5&#160;&#160;&#160;4</td>
426         </tr>
427       </table>
428 </div><div class="memdoc">
429
430 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00371">371</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
431
432 </div>
433 </div>
434 <a class="anchor" id="a0e11bba5150b8ae2a8831f6f4532e352"></a>
435 <div class="memitem">
436 <div class="memproto">
437       <table class="memname">
438         <tr>
439           <td class="memname">#define X6&#160;&#160;&#160;1</td>
440         </tr>
441       </table>
442 </div><div class="memdoc">
443
444 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00372">372</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
445
446 </div>
447 </div>
448 <a class="anchor" id="a0b0dcdd1ffa302474e907d3d7ad9dbfe"></a>
449 <div class="memitem">
450 <div class="memproto">
451       <table class="memname">
452         <tr>
453           <td class="memname">#define Y0&#160;&#160;&#160;1</td>
454         </tr>
455       </table>
456 </div><div class="memdoc">
457
458 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00375">375</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
459
460 </div>
461 </div>
462 <a class="anchor" id="a294189cdea31dda8faf609b9b3e2000a"></a>
463 <div class="memitem">
464 <div class="memproto">
465       <table class="memname">
466         <tr>
467           <td class="memname">#define Y1&#160;&#160;&#160;6</td>
468         </tr>
469       </table>
470 </div><div class="memdoc">
471
472 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00376">376</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
473
474 </div>
475 </div>
476 <a class="anchor" id="a3128cc29e366777d66d8b049451ca8a0"></a>
477 <div class="memitem">
478 <div class="memproto">
479       <table class="memname">
480         <tr>
481           <td class="memname">#define Y2&#160;&#160;&#160;15</td>
482         </tr>
483       </table>
484 </div><div class="memdoc">
485
486 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00377">377</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
487
488 </div>
489 </div>
490 <a class="anchor" id="a676acf01638364a90adf5d09d2a215bf"></a>
491 <div class="memitem">
492 <div class="memproto">
493       <table class="memname">
494         <tr>
495           <td class="memname">#define Y3&#160;&#160;&#160;20</td>
496         </tr>
497       </table>
498 </div><div class="memdoc">
499
500 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00378">378</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
501
502 </div>
503 </div>
504 <a class="anchor" id="a5a8e903c2373c4d65724c79cdea8b3d9"></a>
505 <div class="memitem">
506 <div class="memproto">
507       <table class="memname">
508         <tr>
509           <td class="memname">#define Y4&#160;&#160;&#160;15</td>
510         </tr>
511       </table>
512 </div><div class="memdoc">
513
514 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00379">379</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
515
516 </div>
517 </div>
518 <a class="anchor" id="a770267173956bf918cf3ca1247b6de12"></a>
519 <div class="memitem">
520 <div class="memproto">
521       <table class="memname">
522         <tr>
523           <td class="memname">#define Y5&#160;&#160;&#160;6</td>
524         </tr>
525       </table>
526 </div><div class="memdoc">
527
528 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00380">380</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
529
530 </div>
531 </div>
532 <a class="anchor" id="abcdba0de8723fe6f2d2eb284d7e98a41"></a>
533 <div class="memitem">
534 <div class="memproto">
535       <table class="memname">
536         <tr>
537           <td class="memname">#define Y6&#160;&#160;&#160;1</td>
538         </tr>
539       </table>
540 </div><div class="memdoc">
541
542 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00381">381</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
543
544 </div>
545 </div>
546 <h2 class="groupheader">Function Documentation</h2>
547 <a class="anchor" id="a4fac2cb52458aa4666af5b521d2a3910"></a>
548 <div class="memitem">
549 <div class="memproto">
550       <table class="memname">
551         <tr>
552           <td class="memname">short16 sobel1x5 </td>
553           <td>(</td>
554           <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
555           <td class="paramname"><em>src</em>, </td>
556         </tr>
557         <tr>
558           <td class="paramkey"></td>
559           <td></td>
560           <td class="paramtype">const short&#160;</td>
561           <td class="paramname"><em>left1_coeff_gx</em>, </td>
562         </tr>
563         <tr>
564           <td class="paramkey"></td>
565           <td></td>
566           <td class="paramtype">const short&#160;</td>
567           <td class="paramname"><em>left2_coeff_gx</em>, </td>
568         </tr>
569         <tr>
570           <td class="paramkey"></td>
571           <td></td>
572           <td class="paramtype">const short&#160;</td>
573           <td class="paramname"><em>middle_coeff_gx</em>, </td>
574         </tr>
575         <tr>
576           <td class="paramkey"></td>
577           <td></td>
578           <td class="paramtype">const short&#160;</td>
579           <td class="paramname"><em>right1_coeff_gx</em>, </td>
580         </tr>
581         <tr>
582           <td class="paramkey"></td>
583           <td></td>
584           <td class="paramtype">const short&#160;</td>
585           <td class="paramname"><em>right2_coeff_gx</em>, </td>
586         </tr>
587         <tr>
588           <td class="paramkey"></td>
589           <td></td>
590           <td class="paramtype">const short&#160;</td>
591           <td class="paramname"><em>left1_coeff_gy</em>, </td>
592         </tr>
593         <tr>
594           <td class="paramkey"></td>
595           <td></td>
596           <td class="paramtype">const short&#160;</td>
597           <td class="paramname"><em>left2_coeff_gy</em>, </td>
598         </tr>
599         <tr>
600           <td class="paramkey"></td>
601           <td></td>
602           <td class="paramtype">const short&#160;</td>
603           <td class="paramname"><em>middle_coeff_gy</em>, </td>
604         </tr>
605         <tr>
606           <td class="paramkey"></td>
607           <td></td>
608           <td class="paramtype">const short&#160;</td>
609           <td class="paramname"><em>right1_coeff_gy</em>, </td>
610         </tr>
611         <tr>
612           <td class="paramkey"></td>
613           <td></td>
614           <td class="paramtype">const short&#160;</td>
615           <td class="paramname"><em>right2_coeff_gy</em>&#160;</td>
616         </tr>
617         <tr>
618           <td></td>
619           <td>)</td>
620           <td></td><td></td>
621         </tr>
622       </table>
623 </div><div class="memdoc">
624
625 <p>Compute a 1D horizontal sobel filter 1x5 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p>
626 <dl class="params"><dt>Parameters</dt><dd>
627   <table class="params">
628     <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to source image. </td></tr>
629     <tr><td class="paramdir">[in]</td><td class="paramname">left1_coeff_gx</td><td>Weight of the most left pixel for gx </td></tr>
630     <tr><td class="paramdir">[in]</td><td class="paramname">left2_coeff_gx</td><td>Weight of the left pixel for gx </td></tr>
631     <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff_gx</td><td>Weight of the middle pixel for gx </td></tr>
632     <tr><td class="paramdir">[in]</td><td class="paramname">right1_coeff_gx</td><td>Weight of the right pixel for gx </td></tr>
633     <tr><td class="paramdir">[in]</td><td class="paramname">right2_coeff_gx</td><td>Weight of the most right pixel for gx </td></tr>
634     <tr><td class="paramdir">[in]</td><td class="paramname">left1_coeff_gy</td><td>Weight of the most left pixel for gy </td></tr>
635     <tr><td class="paramdir">[in]</td><td class="paramname">left2_coeff_gy</td><td>Weight of the left pixel for gy </td></tr>
636     <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff_gy</td><td>Weight of the middle pixel for gy </td></tr>
637     <tr><td class="paramdir">[in]</td><td class="paramname">right1_coeff_gy</td><td>Weight of the right pixel for gy </td></tr>
638     <tr><td class="paramdir">[in]</td><td class="paramname">right2_coeff_gy</td><td>Weight of the most right pixel for gy</td></tr>
639   </table>
640   </dd>
641 </dl>
642 <dl class="section return"><dt>Returns</dt><dd>a short16 containing short8 gx and short8 gy values. </dd></dl>
643
644 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00154">154</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
645
646 <p>References <a class="el" href="helpers_8h_source.xhtml#l00303">offset()</a>.</p>
647
648 <p>Referenced by <a class="el" href="sobel__filter_8cl_source.xhtml#l00259">sobel_separable1x5()</a>.</p>
649 <div class="fragment"><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    uchar16 temp = vload16(0, <a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, -2, 0));</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    short8  gx   = 0;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    short8  gy   = 0;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    short8  val;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    val = convert_short8(temp.s01234567);</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    gx += val * (short8)left1_coeff_gx;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    gy += val * (short8)left1_coeff_gy;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    val = convert_short8(temp.s12345678);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    gx += val * (short8)left2_coeff_gx;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    gy += val * (short8)left2_coeff_gy;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    val = convert_short8(temp.s23456789);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    gx += val * (short8)middle_coeff_gx;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    gy += val * (short8)middle_coeff_gy;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    val = convert_short8(temp.s3456789a);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    gx += val * (short8)right1_coeff_gx;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    gy += val * (short8)right1_coeff_gy;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    val = convert_short8(temp.s456789ab);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    gx += val * (short8)right2_coeff_gx;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    gy += val * (short8)right2_coeff_gy;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keywordflow">return</span> (short16)(gx, gy);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
650 </div><!-- fragment -->
651 </div>
652 </div>
653 <a class="anchor" id="ad48e3b9dda20b039199eaea842350975"></a>
654 <div class="memitem">
655 <div class="memproto">
656       <table class="memname">
657         <tr>
658           <td class="memname">__kernel void sobel3x3 </td>
659           <td>(</td>
660           <td class="paramtype">__global uchar *&#160;</td>
661           <td class="paramname"><em>src_ptr</em>, </td>
662         </tr>
663         <tr>
664           <td class="paramkey"></td>
665           <td></td>
666           <td class="paramtype">uint&#160;</td>
667           <td class="paramname"><em>src_stride_x</em>, </td>
668         </tr>
669         <tr>
670           <td class="paramkey"></td>
671           <td></td>
672           <td class="paramtype">uint&#160;</td>
673           <td class="paramname"><em>src_step_x</em>, </td>
674         </tr>
675         <tr>
676           <td class="paramkey"></td>
677           <td></td>
678           <td class="paramtype">uint&#160;</td>
679           <td class="paramname"><em>src_stride_y</em>, </td>
680         </tr>
681         <tr>
682           <td class="paramkey"></td>
683           <td></td>
684           <td class="paramtype">uint&#160;</td>
685           <td class="paramname"><em>src_step_y</em>, </td>
686         </tr>
687         <tr>
688           <td class="paramkey"></td>
689           <td></td>
690           <td class="paramtype">uint&#160;</td>
691           <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td>
692         </tr>
693         <tr>
694           <td class="paramkey"></td>
695           <td></td>
696           <td class="paramtype">__global uchar *&#160;</td>
697           <td class="paramname"><em>dst_gx_ptr</em>, </td>
698         </tr>
699         <tr>
700           <td class="paramkey"></td>
701           <td></td>
702           <td class="paramtype">uint&#160;</td>
703           <td class="paramname"><em>dst_gx_stride_x</em>, </td>
704         </tr>
705         <tr>
706           <td class="paramkey"></td>
707           <td></td>
708           <td class="paramtype">uint&#160;</td>
709           <td class="paramname"><em>dst_gx_step_x</em>, </td>
710         </tr>
711         <tr>
712           <td class="paramkey"></td>
713           <td></td>
714           <td class="paramtype">uint&#160;</td>
715           <td class="paramname"><em>dst_gx_stride_y</em>, </td>
716         </tr>
717         <tr>
718           <td class="paramkey"></td>
719           <td></td>
720           <td class="paramtype">uint&#160;</td>
721           <td class="paramname"><em>dst_gx_step_y</em>, </td>
722         </tr>
723         <tr>
724           <td class="paramkey"></td>
725           <td></td>
726           <td class="paramtype">uint&#160;</td>
727           <td class="paramname"><em>dst_gx_offset_first_element_in_bytes</em>, </td>
728         </tr>
729         <tr>
730           <td class="paramkey"></td>
731           <td></td>
732           <td class="paramtype">__global uchar *&#160;</td>
733           <td class="paramname"><em>dst_gy_ptr</em>, </td>
734         </tr>
735         <tr>
736           <td class="paramkey"></td>
737           <td></td>
738           <td class="paramtype">uint&#160;</td>
739           <td class="paramname"><em>dst_gy_stride_x</em>, </td>
740         </tr>
741         <tr>
742           <td class="paramkey"></td>
743           <td></td>
744           <td class="paramtype">uint&#160;</td>
745           <td class="paramname"><em>dst_gy_step_x</em>, </td>
746         </tr>
747         <tr>
748           <td class="paramkey"></td>
749           <td></td>
750           <td class="paramtype">uint&#160;</td>
751           <td class="paramname"><em>dst_gy_stride_y</em>, </td>
752         </tr>
753         <tr>
754           <td class="paramkey"></td>
755           <td></td>
756           <td class="paramtype">uint&#160;</td>
757           <td class="paramname"><em>dst_gy_step_y</em>, </td>
758         </tr>
759         <tr>
760           <td class="paramkey"></td>
761           <td></td>
762           <td class="paramtype">uint&#160;</td>
763           <td class="paramname"><em>dst_gy_offset_first_element_in_bytes</em>&#160;</td>
764         </tr>
765         <tr>
766           <td></td>
767           <td>)</td>
768           <td></td><td></td>
769         </tr>
770       </table>
771 </div><div class="memdoc">
772
773 <p>This OpenCL kernel that computes a Sobel3x3 filter. </p>
774 <dl class="section attention"><dt>Attention</dt><dd>To enable computation of the X gradient -DGRAD_X must be passed at compile time, while computation of the Y gradient is performed when -DGRAD_Y is used. You can use both when computation of both gradients is required.</dd></dl>
775 <dl class="params"><dt>Parameters</dt><dd>
776   <table class="params">
777     <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr>
778     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
779     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
780     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
781     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
782     <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
783     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gx_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
784     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
785     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_x</td><td>dst_gx_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
786     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
787     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_y</td><td>dst_gx_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
788     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
789     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gy_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
790     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
791     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_x</td><td>dst_gy_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
792     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
793     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_y</td><td>dst_gy_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
794     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
795   </table>
796   </dd>
797 </dl>
798
799 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00054">54</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
800
801 <p>References <a class="el" href="helpers_8h_source.xhtml#l00104">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00303">offset()</a>, <a class="el" href="helpers_8h_source.xhtml#l00144">Image::ptr</a>, and <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00147">arm_compute::test::validation::src</a>.</p>
802 <div class="fragment"><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;{</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">src</a> = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gx = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gx);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gy = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gy);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">// Output pixels</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    short8 gx = (short8)0;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    short8 gy = (short8)0;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">// Row0</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    uchar16 temp   = vload16(0, <a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(&amp;src, -1, -1));</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    short8  left   = convert_short8(temp.s01234567);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    short8  middle = convert_short8(temp.s12345678);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    short8  right  = convert_short8(temp.s23456789);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    gx += left * (short8)(-1);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    gx += right * (short8)(+1);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    gy += left * (short8)(-1);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    gy += middle * (short8)(-2);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    gy += right * (short8)(-1);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="comment">// Row1</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    temp  = vload16(0, <a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(&amp;src, -1, 0));</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    left  = convert_short8(temp.s01234567);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    right = convert_short8(temp.s23456789);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    gx += left * (short8)(-2);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    gx += right * (short8)(+2);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="comment">// Row2</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    temp   = vload16(0, <a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(&amp;src, -1, 1));</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    left   = convert_short8(temp.s01234567);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    middle = convert_short8(temp.s12345678);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    right  = convert_short8(temp.s23456789);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    gx += left * (short8)(-1);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    gx += right * (short8)(+1);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    gy += left * (short8)(+1);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    gy += middle * (short8)(+2);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    gy += right * (short8)(+1);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="comment">// Store results</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    vstore8(gx, 0, ((__global <span class="keywordtype">short</span> *)dst_gx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    vstore8(gy, 0, ((__global <span class="keywordtype">short</span> *)dst_gy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
803 <div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00104">helpers.h:104</a></div></div>
804 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00142">helpers.h:142</a></div></div>
805 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00144">helpers.h:144</a></div></div>
806 <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a6743f0a130e8311e6f5b1a23df102472"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">arm_compute::test::validation::src</a></div><div class="ttdeci">convolution configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00147">Convolution.cpp:147</a></div></div>
807 </div><!-- fragment -->
808 </div>
809 </div>
810 <a class="anchor" id="a1cfe58175749124762fe0dea315d3c21"></a>
811 <div class="memitem">
812 <div class="memproto">
813       <table class="memname">
814         <tr>
815           <td class="memname">short8 sobel5x1 </td>
816           <td>(</td>
817           <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
818           <td class="paramname"><em>src</em>, </td>
819         </tr>
820         <tr>
821           <td class="paramkey"></td>
822           <td></td>
823           <td class="paramtype">const short&#160;</td>
824           <td class="paramname"><em>up1_coeff</em>, </td>
825         </tr>
826         <tr>
827           <td class="paramkey"></td>
828           <td></td>
829           <td class="paramtype">const short&#160;</td>
830           <td class="paramname"><em>up2_coeff</em>, </td>
831         </tr>
832         <tr>
833           <td class="paramkey"></td>
834           <td></td>
835           <td class="paramtype">const short&#160;</td>
836           <td class="paramname"><em>middle_coeff</em>, </td>
837         </tr>
838         <tr>
839           <td class="paramkey"></td>
840           <td></td>
841           <td class="paramtype">const short&#160;</td>
842           <td class="paramname"><em>down1_coeff</em>, </td>
843         </tr>
844         <tr>
845           <td class="paramkey"></td>
846           <td></td>
847           <td class="paramtype">const short&#160;</td>
848           <td class="paramname"><em>down2_coeff</em>&#160;</td>
849         </tr>
850         <tr>
851           <td></td>
852           <td>)</td>
853           <td></td><td></td>
854         </tr>
855       </table>
856 </div><div class="memdoc">
857
858 <p>Compute a 1D vertical sobel filter 5x1 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p>
859 <dl class="params"><dt>Parameters</dt><dd>
860   <table class="params">
861     <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to source image. </td></tr>
862     <tr><td class="paramdir">[in]</td><td class="paramname">up1_coeff</td><td>Weight of the most up pixel </td></tr>
863     <tr><td class="paramdir">[in]</td><td class="paramname">up2_coeff</td><td>Weight of the up pixel </td></tr>
864     <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff</td><td>Weight of the middle pixel </td></tr>
865     <tr><td class="paramdir">[in]</td><td class="paramname">down1_coeff</td><td>Weight of the down pixel </td></tr>
866     <tr><td class="paramdir">[in]</td><td class="paramname">down2_coeff</td><td>Weight of the most down pixel</td></tr>
867   </table>
868   </dd>
869 </dl>
870 <dl class="section return"><dt>Returns</dt><dd>a short8 containing 8 convoluted values. </dd></dl>
871
872 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00206">206</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
873
874 <p>References <a class="el" href="helpers_8h_source.xhtml#l00303">offset()</a>.</p>
875
876 <p>Referenced by <a class="el" href="sobel__filter_8cl_source.xhtml#l00325">sobel_separable5x1()</a>.</p>
877 <div class="fragment"><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;{</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    short8 val;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    short8 out = (short8)0;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    val = vload8(0, (__global <span class="keywordtype">short</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, 0, -2));</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    out += val * (short8)up1_coeff;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    val = vload8(0, (__global <span class="keywordtype">short</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, 0, -1));</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    out += val * (short8)up2_coeff;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    val = vload8(0, (__global <span class="keywordtype">short</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, 0, 0));</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    out += val * (short8)middle_coeff;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    val = vload8(0, (__global <span class="keywordtype">short</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, 0, 1));</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    out += val * (short8)down1_coeff;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    val = vload8(0, (__global <span class="keywordtype">short</span> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(src, 0, 2));</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    out += val * (short8)down2_coeff;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keywordflow">return</span> (short8)(out);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
878 </div><!-- fragment -->
879 </div>
880 </div>
881 <a class="anchor" id="a7a74e414f0e90638939a7a0506576625"></a>
882 <div class="memitem">
883 <div class="memproto">
884       <table class="memname">
885         <tr>
886           <td class="memname">__kernel void sobel_separable1x5 </td>
887           <td>(</td>
888           <td class="paramtype">__global uchar *&#160;</td>
889           <td class="paramname"><em>src_ptr</em>, </td>
890         </tr>
891         <tr>
892           <td class="paramkey"></td>
893           <td></td>
894           <td class="paramtype">uint&#160;</td>
895           <td class="paramname"><em>src_stride_x</em>, </td>
896         </tr>
897         <tr>
898           <td class="paramkey"></td>
899           <td></td>
900           <td class="paramtype">uint&#160;</td>
901           <td class="paramname"><em>src_step_x</em>, </td>
902         </tr>
903         <tr>
904           <td class="paramkey"></td>
905           <td></td>
906           <td class="paramtype">uint&#160;</td>
907           <td class="paramname"><em>src_stride_y</em>, </td>
908         </tr>
909         <tr>
910           <td class="paramkey"></td>
911           <td></td>
912           <td class="paramtype">uint&#160;</td>
913           <td class="paramname"><em>src_step_y</em>, </td>
914         </tr>
915         <tr>
916           <td class="paramkey"></td>
917           <td></td>
918           <td class="paramtype">uint&#160;</td>
919           <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td>
920         </tr>
921         <tr>
922           <td class="paramkey"></td>
923           <td></td>
924           <td class="paramtype">__global uchar *&#160;</td>
925           <td class="paramname"><em>dst_gx_ptr</em>, </td>
926         </tr>
927         <tr>
928           <td class="paramkey"></td>
929           <td></td>
930           <td class="paramtype">uint&#160;</td>
931           <td class="paramname"><em>dst_gx_stride_x</em>, </td>
932         </tr>
933         <tr>
934           <td class="paramkey"></td>
935           <td></td>
936           <td class="paramtype">uint&#160;</td>
937           <td class="paramname"><em>dst_gx_step_x</em>, </td>
938         </tr>
939         <tr>
940           <td class="paramkey"></td>
941           <td></td>
942           <td class="paramtype">uint&#160;</td>
943           <td class="paramname"><em>dst_gx_stride_y</em>, </td>
944         </tr>
945         <tr>
946           <td class="paramkey"></td>
947           <td></td>
948           <td class="paramtype">uint&#160;</td>
949           <td class="paramname"><em>dst_gx_step_y</em>, </td>
950         </tr>
951         <tr>
952           <td class="paramkey"></td>
953           <td></td>
954           <td class="paramtype">uint&#160;</td>
955           <td class="paramname"><em>dst_gx_offset_first_element_in_bytes</em>, </td>
956         </tr>
957         <tr>
958           <td class="paramkey"></td>
959           <td></td>
960           <td class="paramtype">__global uchar *&#160;</td>
961           <td class="paramname"><em>dst_gy_ptr</em>, </td>
962         </tr>
963         <tr>
964           <td class="paramkey"></td>
965           <td></td>
966           <td class="paramtype">uint&#160;</td>
967           <td class="paramname"><em>dst_gy_stride_x</em>, </td>
968         </tr>
969         <tr>
970           <td class="paramkey"></td>
971           <td></td>
972           <td class="paramtype">uint&#160;</td>
973           <td class="paramname"><em>dst_gy_step_x</em>, </td>
974         </tr>
975         <tr>
976           <td class="paramkey"></td>
977           <td></td>
978           <td class="paramtype">uint&#160;</td>
979           <td class="paramname"><em>dst_gy_stride_y</em>, </td>
980         </tr>
981         <tr>
982           <td class="paramkey"></td>
983           <td></td>
984           <td class="paramtype">uint&#160;</td>
985           <td class="paramname"><em>dst_gy_step_y</em>, </td>
986         </tr>
987         <tr>
988           <td class="paramkey"></td>
989           <td></td>
990           <td class="paramtype">uint&#160;</td>
991           <td class="paramname"><em>dst_gy_offset_first_element_in_bytes</em>&#160;</td>
992         </tr>
993         <tr>
994           <td></td>
995           <td>)</td>
996           <td></td><td></td>
997         </tr>
998       </table>
999 </div><div class="memdoc">
1000
1001 <p>Apply a 1x5 sobel matrix to a single channel U8 input image and output two temporary channel S16 images. </p>
1002 <dl class="section attention"><dt>Attention</dt><dd>To enable computation of the X gradient -DGRAD_X must be passed at compile time, while computation of the Y gradient is performed when -DGRAD_Y is used. You can use both when computation of both gradients is required.</dd></dl>
1003 <dl class="params"><dt>Parameters</dt><dd>
1004   <table class="params">
1005     <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image.. Supported data types: U8 </td></tr>
1006     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1007     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1008     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1009     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1010     <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1011     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gx_ptr</td><td>Pointer to the destination image.. Supported data types: S16 </td></tr>
1012     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1013     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_x</td><td>dst_gx_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1014     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1015     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_y</td><td>dst_gx_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1016     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1017     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gy_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
1018     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1019     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_x</td><td>dst_gy_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1020     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1021     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_y</td><td>dst_gy_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1022     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1023   </table>
1024   </dd>
1025 </dl>
1026
1027 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00259">259</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
1028
1029 <p>References <a class="el" href="helpers_8h_source.xhtml#l00104">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00144">Image::ptr</a>, <a class="el" href="sobel__filter_8cl_source.xhtml#l00154">sobel1x5()</a>, and <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00147">arm_compute::test::validation::src</a>.</p>
1030 <div class="fragment"><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;{</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">src</a> = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gx = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gx);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gy = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gy);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="comment">// Output pixels</span></div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    short16 gx_gy = <a class="code" href="sobel__filter_8cl.xhtml#a4fac2cb52458aa4666af5b521d2a3910">sobel1x5</a>(&amp;src,</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                             -1, -2, 0, 2, 1,</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                             1, 4, 6, 4, 1);</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    vstore8(gx_gy.s01234567, 0, ((__global <span class="keywordtype">short</span> *)dst_gx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    vstore8(gx_gy.s89ABCDEF, 0, ((__global <span class="keywordtype">short</span> *)dst_gy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00104">helpers.h:104</a></div></div>
1031 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00142">helpers.h:142</a></div></div>
1032 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00144">helpers.h:144</a></div></div>
1033 <div class="ttc" id="sobel__filter_8cl_xhtml_a4fac2cb52458aa4666af5b521d2a3910"><div class="ttname"><a href="sobel__filter_8cl.xhtml#a4fac2cb52458aa4666af5b521d2a3910">sobel1x5</a></div><div class="ttdeci">short16 sobel1x5(Image *src, const short left1_coeff_gx, const short left2_coeff_gx, const short middle_coeff_gx, const short right1_coeff_gx, const short right2_coeff_gx, const short left1_coeff_gy, const short left2_coeff_gy, const short middle_coeff_gy, const short right1_coeff_gy, const short right2_coeff_gy)</div><div class="ttdoc">Compute a 1D horizontal sobel filter 1x5 for 8 bytes assuming the input is made of 1 channel of 1 byt...</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00154">sobel_filter.cl:154</a></div></div>
1034 <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a6743f0a130e8311e6f5b1a23df102472"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">arm_compute::test::validation::src</a></div><div class="ttdeci">convolution configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00147">Convolution.cpp:147</a></div></div>
1035 </div><!-- fragment -->
1036 </div>
1037 </div>
1038 <a class="anchor" id="ad8be5e69836ab70ac229279a7d7edaf7"></a>
1039 <div class="memitem">
1040 <div class="memproto">
1041       <table class="memname">
1042         <tr>
1043           <td class="memname">__kernel void sobel_separable1x7 </td>
1044           <td>(</td>
1045           <td class="paramtype">__global uchar *&#160;</td>
1046           <td class="paramname"><em>src_ptr</em>, </td>
1047         </tr>
1048         <tr>
1049           <td class="paramkey"></td>
1050           <td></td>
1051           <td class="paramtype">uint&#160;</td>
1052           <td class="paramname"><em>src_stride_x</em>, </td>
1053         </tr>
1054         <tr>
1055           <td class="paramkey"></td>
1056           <td></td>
1057           <td class="paramtype">uint&#160;</td>
1058           <td class="paramname"><em>src_step_x</em>, </td>
1059         </tr>
1060         <tr>
1061           <td class="paramkey"></td>
1062           <td></td>
1063           <td class="paramtype">uint&#160;</td>
1064           <td class="paramname"><em>src_stride_y</em>, </td>
1065         </tr>
1066         <tr>
1067           <td class="paramkey"></td>
1068           <td></td>
1069           <td class="paramtype">uint&#160;</td>
1070           <td class="paramname"><em>src_step_y</em>, </td>
1071         </tr>
1072         <tr>
1073           <td class="paramkey"></td>
1074           <td></td>
1075           <td class="paramtype">uint&#160;</td>
1076           <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td>
1077         </tr>
1078         <tr>
1079           <td class="paramkey"></td>
1080           <td></td>
1081           <td class="paramtype">__global uchar *&#160;</td>
1082           <td class="paramname"><em>dst_gx_ptr</em>, </td>
1083         </tr>
1084         <tr>
1085           <td class="paramkey"></td>
1086           <td></td>
1087           <td class="paramtype">uint&#160;</td>
1088           <td class="paramname"><em>dst_gx_stride_x</em>, </td>
1089         </tr>
1090         <tr>
1091           <td class="paramkey"></td>
1092           <td></td>
1093           <td class="paramtype">uint&#160;</td>
1094           <td class="paramname"><em>dst_gx_step_x</em>, </td>
1095         </tr>
1096         <tr>
1097           <td class="paramkey"></td>
1098           <td></td>
1099           <td class="paramtype">uint&#160;</td>
1100           <td class="paramname"><em>dst_gx_stride_y</em>, </td>
1101         </tr>
1102         <tr>
1103           <td class="paramkey"></td>
1104           <td></td>
1105           <td class="paramtype">uint&#160;</td>
1106           <td class="paramname"><em>dst_gx_step_y</em>, </td>
1107         </tr>
1108         <tr>
1109           <td class="paramkey"></td>
1110           <td></td>
1111           <td class="paramtype">uint&#160;</td>
1112           <td class="paramname"><em>dst_gx_offset_first_element_in_bytes</em>, </td>
1113         </tr>
1114         <tr>
1115           <td class="paramkey"></td>
1116           <td></td>
1117           <td class="paramtype">__global uchar *&#160;</td>
1118           <td class="paramname"><em>dst_gy_ptr</em>, </td>
1119         </tr>
1120         <tr>
1121           <td class="paramkey"></td>
1122           <td></td>
1123           <td class="paramtype">uint&#160;</td>
1124           <td class="paramname"><em>dst_gy_stride_x</em>, </td>
1125         </tr>
1126         <tr>
1127           <td class="paramkey"></td>
1128           <td></td>
1129           <td class="paramtype">uint&#160;</td>
1130           <td class="paramname"><em>dst_gy_step_x</em>, </td>
1131         </tr>
1132         <tr>
1133           <td class="paramkey"></td>
1134           <td></td>
1135           <td class="paramtype">uint&#160;</td>
1136           <td class="paramname"><em>dst_gy_stride_y</em>, </td>
1137         </tr>
1138         <tr>
1139           <td class="paramkey"></td>
1140           <td></td>
1141           <td class="paramtype">uint&#160;</td>
1142           <td class="paramname"><em>dst_gy_step_y</em>, </td>
1143         </tr>
1144         <tr>
1145           <td class="paramkey"></td>
1146           <td></td>
1147           <td class="paramtype">uint&#160;</td>
1148           <td class="paramname"><em>dst_gy_offset_first_element_in_bytes</em>&#160;</td>
1149         </tr>
1150         <tr>
1151           <td></td>
1152           <td>)</td>
1153           <td></td><td></td>
1154         </tr>
1155       </table>
1156 </div><div class="memdoc">
1157
1158 <p>Apply a 1x7 sobel matrix to a single channel U8 input image and output two temporary channel S16 images and leave the borders undefined. </p>
1159 <dl class="section attention"><dt>Attention</dt><dd>To enable computation of the X gradient -DGRAD_X must be passed at compile time, while computation of the Y gradient is performed when -DGRAD_Y is used. You can use both when computation of both gradients is required.</dd></dl>
1160 <dl class="params"><dt>Parameters</dt><dd>
1161   <table class="params">
1162     <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr>
1163     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1164     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1165     <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1166     <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1167     <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1168     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gx_ptr</td><td>Pointer to the destination image. Supported data types: S32 </td></tr>
1169     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1170     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_x</td><td>dst_gx_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1171     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1172     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_y</td><td>dst_gx_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1173     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1174     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gy_ptr</td><td>Pointer to the destination image. Supported data types: S32 </td></tr>
1175     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1176     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_x</td><td>dst_gy_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1177     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1178     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_y</td><td>dst_gy_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1179     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1180   </table>
1181   </dd>
1182 </dl>
1183
1184 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00442">442</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
1185
1186 <p>References <a class="el" href="helpers_8h_source.xhtml#l00104">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00144">Image::ptr</a>, <a class="el" href="sobel__filter_8cl_source.xhtml#l00399">SOBEL1x7</a>, and <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00147">arm_compute::test::validation::src</a>.</p>
1187 <div class="fragment"><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;{</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">src</a> = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src);</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gx = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gx);</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gy = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gy);</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    int8 gx = (int8)0;</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    int8 gy = (int8)0;</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <a class="code" href="sobel__filter_8cl.xhtml#a7f602251e0a1f8710f8aab3aef09a36b">SOBEL1x7</a>(&amp;src, gx, gy);</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    vstore8(gx, 0, ((__global <span class="keywordtype">int</span> *)dst_gx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    vstore8(gy, 0, ((__global <span class="keywordtype">int</span> *)dst_gy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00104">helpers.h:104</a></div></div>
1188 <div class="ttc" id="sobel__filter_8cl_xhtml_a7f602251e0a1f8710f8aab3aef09a36b"><div class="ttname"><a href="sobel__filter_8cl.xhtml#a7f602251e0a1f8710f8aab3aef09a36b">SOBEL1x7</a></div><div class="ttdeci">#define SOBEL1x7(ptr, gx, gy)</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00399">sobel_filter.cl:399</a></div></div>
1189 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00142">helpers.h:142</a></div></div>
1190 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00144">helpers.h:144</a></div></div>
1191 <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a6743f0a130e8311e6f5b1a23df102472"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a6743f0a130e8311e6f5b1a23df102472">arm_compute::test::validation::src</a></div><div class="ttdeci">convolution configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00147">Convolution.cpp:147</a></div></div>
1192 </div><!-- fragment -->
1193 </div>
1194 </div>
1195 <a class="anchor" id="a2cc1fcdd12f2c3cdd31b83fd59597e40"></a>
1196 <div class="memitem">
1197 <div class="memproto">
1198       <table class="memname">
1199         <tr>
1200           <td class="memname">__kernel void sobel_separable5x1 </td>
1201           <td>(</td>
1202           <td class="paramtype">__global uchar *&#160;</td>
1203           <td class="paramname"><em>src_x_ptr</em>, </td>
1204         </tr>
1205         <tr>
1206           <td class="paramkey"></td>
1207           <td></td>
1208           <td class="paramtype">uint&#160;</td>
1209           <td class="paramname"><em>src_x_stride_x</em>, </td>
1210         </tr>
1211         <tr>
1212           <td class="paramkey"></td>
1213           <td></td>
1214           <td class="paramtype">uint&#160;</td>
1215           <td class="paramname"><em>src_x_step_x</em>, </td>
1216         </tr>
1217         <tr>
1218           <td class="paramkey"></td>
1219           <td></td>
1220           <td class="paramtype">uint&#160;</td>
1221           <td class="paramname"><em>src_x_stride_y</em>, </td>
1222         </tr>
1223         <tr>
1224           <td class="paramkey"></td>
1225           <td></td>
1226           <td class="paramtype">uint&#160;</td>
1227           <td class="paramname"><em>src_x_step_y</em>, </td>
1228         </tr>
1229         <tr>
1230           <td class="paramkey"></td>
1231           <td></td>
1232           <td class="paramtype">uint&#160;</td>
1233           <td class="paramname"><em>src_x_offset_first_element_in_bytes</em>, </td>
1234         </tr>
1235         <tr>
1236           <td class="paramkey"></td>
1237           <td></td>
1238           <td class="paramtype">__global uchar *&#160;</td>
1239           <td class="paramname"><em>dst_gx_ptr</em>, </td>
1240         </tr>
1241         <tr>
1242           <td class="paramkey"></td>
1243           <td></td>
1244           <td class="paramtype">uint&#160;</td>
1245           <td class="paramname"><em>dst_gx_stride_x</em>, </td>
1246         </tr>
1247         <tr>
1248           <td class="paramkey"></td>
1249           <td></td>
1250           <td class="paramtype">uint&#160;</td>
1251           <td class="paramname"><em>dst_gx_step_x</em>, </td>
1252         </tr>
1253         <tr>
1254           <td class="paramkey"></td>
1255           <td></td>
1256           <td class="paramtype">uint&#160;</td>
1257           <td class="paramname"><em>dst_gx_stride_y</em>, </td>
1258         </tr>
1259         <tr>
1260           <td class="paramkey"></td>
1261           <td></td>
1262           <td class="paramtype">uint&#160;</td>
1263           <td class="paramname"><em>dst_gx_step_y</em>, </td>
1264         </tr>
1265         <tr>
1266           <td class="paramkey"></td>
1267           <td></td>
1268           <td class="paramtype">uint&#160;</td>
1269           <td class="paramname"><em>dst_gx_offset_first_element_in_bytes</em>, </td>
1270         </tr>
1271         <tr>
1272           <td class="paramkey"></td>
1273           <td></td>
1274           <td class="paramtype">__global uchar *&#160;</td>
1275           <td class="paramname"><em>src_y_ptr</em>, </td>
1276         </tr>
1277         <tr>
1278           <td class="paramkey"></td>
1279           <td></td>
1280           <td class="paramtype">uint&#160;</td>
1281           <td class="paramname"><em>src_y_stride_x</em>, </td>
1282         </tr>
1283         <tr>
1284           <td class="paramkey"></td>
1285           <td></td>
1286           <td class="paramtype">uint&#160;</td>
1287           <td class="paramname"><em>src_y_step_x</em>, </td>
1288         </tr>
1289         <tr>
1290           <td class="paramkey"></td>
1291           <td></td>
1292           <td class="paramtype">uint&#160;</td>
1293           <td class="paramname"><em>src_y_stride_y</em>, </td>
1294         </tr>
1295         <tr>
1296           <td class="paramkey"></td>
1297           <td></td>
1298           <td class="paramtype">uint&#160;</td>
1299           <td class="paramname"><em>src_y_step_y</em>, </td>
1300         </tr>
1301         <tr>
1302           <td class="paramkey"></td>
1303           <td></td>
1304           <td class="paramtype">uint&#160;</td>
1305           <td class="paramname"><em>src_y_offset_first_element_in_bytes</em>, </td>
1306         </tr>
1307         <tr>
1308           <td class="paramkey"></td>
1309           <td></td>
1310           <td class="paramtype">__global uchar *&#160;</td>
1311           <td class="paramname"><em>dst_gy_ptr</em>, </td>
1312         </tr>
1313         <tr>
1314           <td class="paramkey"></td>
1315           <td></td>
1316           <td class="paramtype">uint&#160;</td>
1317           <td class="paramname"><em>dst_gy_stride_x</em>, </td>
1318         </tr>
1319         <tr>
1320           <td class="paramkey"></td>
1321           <td></td>
1322           <td class="paramtype">uint&#160;</td>
1323           <td class="paramname"><em>dst_gy_step_x</em>, </td>
1324         </tr>
1325         <tr>
1326           <td class="paramkey"></td>
1327           <td></td>
1328           <td class="paramtype">uint&#160;</td>
1329           <td class="paramname"><em>dst_gy_stride_y</em>, </td>
1330         </tr>
1331         <tr>
1332           <td class="paramkey"></td>
1333           <td></td>
1334           <td class="paramtype">uint&#160;</td>
1335           <td class="paramname"><em>dst_gy_step_y</em>, </td>
1336         </tr>
1337         <tr>
1338           <td class="paramkey"></td>
1339           <td></td>
1340           <td class="paramtype">uint&#160;</td>
1341           <td class="paramname"><em>dst_gy_offset_first_element_in_bytes</em>, </td>
1342         </tr>
1343         <tr>
1344           <td class="paramkey"></td>
1345           <td></td>
1346           <td class="paramtype">int&#160;</td>
1347           <td class="paramname"><em>dummy</em>&#160;</td>
1348         </tr>
1349         <tr>
1350           <td></td>
1351           <td>)</td>
1352           <td></td><td></td>
1353         </tr>
1354       </table>
1355 </div><div class="memdoc">
1356
1357 <p>Apply a 5x1 convolution matrix to two single channel S16 input temporary images and output two single channel S16 images. </p>
1358 <dl class="section attention"><dt>Attention</dt><dd>To enable computation of the X gradient -DGRAD_X must be passed at compile time, while computation of the Y gradient is performed when -DGRAD_Y is used. You can use both when computation of both gradients is required.</dd></dl>
1359 <dl class="params"><dt>Parameters</dt><dd>
1360   <table class="params">
1361     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_ptr</td><td>Pointer to the source image.. Supported data types: S16 </td></tr>
1362     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1363     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_step_x</td><td>src_x_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1364     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1365     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_step_y</td><td>src_x_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1366     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1367     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gx_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
1368     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1369     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_x</td><td>dst_gx_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1370     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1371     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_y</td><td>dst_gx_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1372     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1373     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_ptr</td><td>Pointer to the source image. Supported data types: S16 </td></tr>
1374     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1375     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_step_x</td><td>src_y_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1376     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1377     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_step_y</td><td>src_y_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1378     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1379     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gy_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
1380     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1381     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_x</td><td>dst_gy_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1382     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1383     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_y</td><td>dst_gy_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1384     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1385     <tr><td class="paramdir">[in]</td><td class="paramname">dummy</td><td>Dummy parameter to easy conditional inclusion </td></tr>
1386   </table>
1387   </dd>
1388 </dl>
1389
1390 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00325">325</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
1391
1392 <p>References <a class="el" href="helpers_8h_source.xhtml#l00104">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00144">Image::ptr</a>, and <a class="el" href="sobel__filter_8cl_source.xhtml#l00206">sobel5x1()</a>.</p>
1393 <div class="fragment"><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;{</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> src_x  = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src_x);</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gx = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gx);</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> src_y  = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src_y);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gy = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gy);</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    short8 gx = <a class="code" href="sobel__filter_8cl.xhtml#a1cfe58175749124762fe0dea315d3c21">sobel5x1</a>(&amp;src_x,</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                         1, 4, 6, 4, 1);</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    vstore8(gx, 0, ((__global <span class="keywordtype">short</span> *)dst_gx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    short8 gy = <a class="code" href="sobel__filter_8cl.xhtml#a1cfe58175749124762fe0dea315d3c21">sobel5x1</a>(&amp;src_y,</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                         -1, -2, 0, 2, 1);</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    vstore8(gy, 0, ((__global <span class="keywordtype">short</span> *)dst_gy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>));</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00104">helpers.h:104</a></div></div>
1394 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00142">helpers.h:142</a></div></div>
1395 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00144">helpers.h:144</a></div></div>
1396 <div class="ttc" id="sobel__filter_8cl_xhtml_a1cfe58175749124762fe0dea315d3c21"><div class="ttname"><a href="sobel__filter_8cl.xhtml#a1cfe58175749124762fe0dea315d3c21">sobel5x1</a></div><div class="ttdeci">short8 sobel5x1(Image *src, const short up1_coeff, const short up2_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff)</div><div class="ttdoc">Compute a 1D vertical sobel filter 5x1 for 8 bytes assuming the input is made of 1 channel of 1 byte ...</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00206">sobel_filter.cl:206</a></div></div>
1397 </div><!-- fragment -->
1398 </div>
1399 </div>
1400 <a class="anchor" id="a8cdc6e6df9d40cec1e857917d14ee75f"></a>
1401 <div class="memitem">
1402 <div class="memproto">
1403       <table class="memname">
1404         <tr>
1405           <td class="memname">__kernel void sobel_separable7x1 </td>
1406           <td>(</td>
1407           <td class="paramtype">__global uchar *&#160;</td>
1408           <td class="paramname"><em>src_x_ptr</em>, </td>
1409         </tr>
1410         <tr>
1411           <td class="paramkey"></td>
1412           <td></td>
1413           <td class="paramtype">uint&#160;</td>
1414           <td class="paramname"><em>src_x_stride_x</em>, </td>
1415         </tr>
1416         <tr>
1417           <td class="paramkey"></td>
1418           <td></td>
1419           <td class="paramtype">uint&#160;</td>
1420           <td class="paramname"><em>src_x_step_x</em>, </td>
1421         </tr>
1422         <tr>
1423           <td class="paramkey"></td>
1424           <td></td>
1425           <td class="paramtype">uint&#160;</td>
1426           <td class="paramname"><em>src_x_stride_y</em>, </td>
1427         </tr>
1428         <tr>
1429           <td class="paramkey"></td>
1430           <td></td>
1431           <td class="paramtype">uint&#160;</td>
1432           <td class="paramname"><em>src_x_step_y</em>, </td>
1433         </tr>
1434         <tr>
1435           <td class="paramkey"></td>
1436           <td></td>
1437           <td class="paramtype">uint&#160;</td>
1438           <td class="paramname"><em>src_x_offset_first_element_in_bytes</em>, </td>
1439         </tr>
1440         <tr>
1441           <td class="paramkey"></td>
1442           <td></td>
1443           <td class="paramtype">__global uchar *&#160;</td>
1444           <td class="paramname"><em>dst_gx_ptr</em>, </td>
1445         </tr>
1446         <tr>
1447           <td class="paramkey"></td>
1448           <td></td>
1449           <td class="paramtype">uint&#160;</td>
1450           <td class="paramname"><em>dst_gx_stride_x</em>, </td>
1451         </tr>
1452         <tr>
1453           <td class="paramkey"></td>
1454           <td></td>
1455           <td class="paramtype">uint&#160;</td>
1456           <td class="paramname"><em>dst_gx_step_x</em>, </td>
1457         </tr>
1458         <tr>
1459           <td class="paramkey"></td>
1460           <td></td>
1461           <td class="paramtype">uint&#160;</td>
1462           <td class="paramname"><em>dst_gx_stride_y</em>, </td>
1463         </tr>
1464         <tr>
1465           <td class="paramkey"></td>
1466           <td></td>
1467           <td class="paramtype">uint&#160;</td>
1468           <td class="paramname"><em>dst_gx_step_y</em>, </td>
1469         </tr>
1470         <tr>
1471           <td class="paramkey"></td>
1472           <td></td>
1473           <td class="paramtype">uint&#160;</td>
1474           <td class="paramname"><em>dst_gx_offset_first_element_in_bytes</em>, </td>
1475         </tr>
1476         <tr>
1477           <td class="paramkey"></td>
1478           <td></td>
1479           <td class="paramtype">__global uchar *&#160;</td>
1480           <td class="paramname"><em>src_y_ptr</em>, </td>
1481         </tr>
1482         <tr>
1483           <td class="paramkey"></td>
1484           <td></td>
1485           <td class="paramtype">uint&#160;</td>
1486           <td class="paramname"><em>src_y_stride_x</em>, </td>
1487         </tr>
1488         <tr>
1489           <td class="paramkey"></td>
1490           <td></td>
1491           <td class="paramtype">uint&#160;</td>
1492           <td class="paramname"><em>src_y_step_x</em>, </td>
1493         </tr>
1494         <tr>
1495           <td class="paramkey"></td>
1496           <td></td>
1497           <td class="paramtype">uint&#160;</td>
1498           <td class="paramname"><em>src_y_stride_y</em>, </td>
1499         </tr>
1500         <tr>
1501           <td class="paramkey"></td>
1502           <td></td>
1503           <td class="paramtype">uint&#160;</td>
1504           <td class="paramname"><em>src_y_step_y</em>, </td>
1505         </tr>
1506         <tr>
1507           <td class="paramkey"></td>
1508           <td></td>
1509           <td class="paramtype">uint&#160;</td>
1510           <td class="paramname"><em>src_y_offset_first_element_in_bytes</em>, </td>
1511         </tr>
1512         <tr>
1513           <td class="paramkey"></td>
1514           <td></td>
1515           <td class="paramtype">__global uchar *&#160;</td>
1516           <td class="paramname"><em>dst_gy_ptr</em>, </td>
1517         </tr>
1518         <tr>
1519           <td class="paramkey"></td>
1520           <td></td>
1521           <td class="paramtype">uint&#160;</td>
1522           <td class="paramname"><em>dst_gy_stride_x</em>, </td>
1523         </tr>
1524         <tr>
1525           <td class="paramkey"></td>
1526           <td></td>
1527           <td class="paramtype">uint&#160;</td>
1528           <td class="paramname"><em>dst_gy_step_x</em>, </td>
1529         </tr>
1530         <tr>
1531           <td class="paramkey"></td>
1532           <td></td>
1533           <td class="paramtype">uint&#160;</td>
1534           <td class="paramname"><em>dst_gy_stride_y</em>, </td>
1535         </tr>
1536         <tr>
1537           <td class="paramkey"></td>
1538           <td></td>
1539           <td class="paramtype">uint&#160;</td>
1540           <td class="paramname"><em>dst_gy_step_y</em>, </td>
1541         </tr>
1542         <tr>
1543           <td class="paramkey"></td>
1544           <td></td>
1545           <td class="paramtype">uint&#160;</td>
1546           <td class="paramname"><em>dst_gy_offset_first_element_in_bytes</em>, </td>
1547         </tr>
1548         <tr>
1549           <td class="paramkey"></td>
1550           <td></td>
1551           <td class="paramtype">int&#160;</td>
1552           <td class="paramname"><em>dummy</em>&#160;</td>
1553         </tr>
1554         <tr>
1555           <td></td>
1556           <td>)</td>
1557           <td></td><td></td>
1558         </tr>
1559       </table>
1560 </div><div class="memdoc">
1561
1562 <p>Apply a 7x1 convolution matrix to two single channel S16 input temporary images and output two single channel S16 images and leave the borders undefined. </p>
1563 <dl class="section attention"><dt>Attention</dt><dd>To enable computation of the X gradient -DGRAD_X must be passed at compile time, while computation of the Y gradient is performed when -DGRAD_Y is used. You can use both when computation of both gradients is required.</dd></dl>
1564 <dl class="params"><dt>Parameters</dt><dd>
1565   <table class="params">
1566     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_ptr</td><td>Pointer to the source image. Supported data types: S32 </td></tr>
1567     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1568     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_step_x</td><td>src_x_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1569     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1570     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_step_y</td><td>src_x_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1571     <tr><td class="paramdir">[in]</td><td class="paramname">src_x_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1572     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gx_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
1573     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1574     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_x</td><td>dst_gx_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1575     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1576     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_step_y</td><td>dst_gx_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1577     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gx_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1578     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_ptr</td><td>Pointer to the source image. Supported data types: S32 </td></tr>
1579     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
1580     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_step_x</td><td>src_y_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1581     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
1582     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_step_y</td><td>src_y_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1583     <tr><td class="paramdir">[in]</td><td class="paramname">src_y_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
1584     <tr><td class="paramdir">[out]</td><td class="paramname">dst_gy_ptr</td><td>Pointer to the destination image. Supported data types: S16 </td></tr>
1585     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1586     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_x</td><td>dst_gy_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1587     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1588     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_step_y</td><td>dst_gy_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1589     <tr><td class="paramdir">[in]</td><td class="paramname">dst_gy_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1590     <tr><td class="paramdir">[in]</td><td class="paramname">dummy</td><td>Dummy parameter to easy conditional inclusion </td></tr>
1591   </table>
1592   </dd>
1593 </dl>
1594
1595 <p>Definition at line <a class="el" href="sobel__filter_8cl_source.xhtml#l00506">506</a> of file <a class="el" href="sobel__filter_8cl_source.xhtml">sobel_filter.cl</a>.</p>
1596
1597 <p>References <a class="el" href="helpers_8h_source.xhtml#l00104">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00144">Image::ptr</a>, and <a class="el" href="sobel__filter_8cl_source.xhtml#l00409">SOBEL7x1</a>.</p>
1598 <div class="fragment"><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;{</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> src_x  = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src_x);</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gx = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gx);</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> src_y  = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(src_y);</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> dst_gy = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(dst_gy);</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <span class="comment">// Output pixels</span></div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;<span class="preprocessor">#ifdef GRAD_X</span></div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    int8 gx = 0;</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    <a class="code" href="sobel__filter_8cl.xhtml#a59f291bf2b268f9b850fa81a3fbf776a">SOBEL7x1</a>(&amp;src_x, gx, Y);</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    vstore8(gx, 0, (__global <span class="keywordtype">int</span> *)dst_gx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_X */</span><span class="preprocessor"></span></div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="preprocessor">#ifdef GRAD_Y</span></div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    int8 gy = 0;</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;    <a class="code" href="sobel__filter_8cl.xhtml#a59f291bf2b268f9b850fa81a3fbf776a">SOBEL7x1</a>(&amp;src_y, gy, X);</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;    vstore8(gy, 0, (__global <span class="keywordtype">int</span> *)dst_gy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRAD_Y */</span><span class="preprocessor"></span></div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00104">helpers.h:104</a></div></div>
1599 <div class="ttc" id="sobel__filter_8cl_xhtml_a59f291bf2b268f9b850fa81a3fbf776a"><div class="ttname"><a href="sobel__filter_8cl.xhtml#a59f291bf2b268f9b850fa81a3fbf776a">SOBEL7x1</a></div><div class="ttdeci">#define SOBEL7x1(ptr, g, direction)</div><div class="ttdef"><b>Definition:</b> <a href="sobel__filter_8cl_source.xhtml#l00409">sobel_filter.cl:409</a></div></div>
1600 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00142">helpers.h:142</a></div></div>
1601 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00144">helpers.h:144</a></div></div>
1602 </div><!-- fragment -->
1603 </div>
1604 </div>
1605 </div><!-- contents -->
1606 </div><!-- doc-content -->
1607 <!-- start footer part -->
1608 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1609   <ul>
1610     <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_8c278f79c760e5c5fbd911f9870614c1.xhtml">CL</a></li><li class="navelem"><a class="el" href="dir_25885286e9dad4fa105b7b25a8031bbf.xhtml">cl_kernels</a></li><li class="navelem"><a class="el" href="sobel__filter_8cl.xhtml">sobel_filter.cl</a></li>
1611     <li class="footer">Generated on Wed May 23 2018 11:36:39 for Compute Library by
1612     <a href="http://www.doxygen.org/index.html">
1613     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
1614   </ul>
1615 </div>
1616 </body>
1617 </html>