blob: a072d1db51c94abaed09d1cd1f483c12547d17e1 [file] [log] [blame]
Jenkins514be652019-02-28 12:25:18 +00001<!-- HTML header for doxygen 1.8.15-->
2<!-- Remember to use version doxygen 1.8.15 +-->
Anthony Barbier871448e2017-03-24 14:54:29 +00003<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5<head>
6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
Jenkins514be652019-02-28 12:25:18 +00008<meta name="generator" content="Doxygen 1.8.15"/>
Anthony Barbier871448e2017-03-24 14:54:29 +00009<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
Anthony Barbierdbdab852017-06-23 15:42:00 +010010<title>Compute Library: src/core/CL/cl_kernels/convolution9x9.cl File Reference</title>
Anthony Barbier871448e2017-03-24 14:54:29 +000011<link href="tabs.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="jquery.js"></script>
13<script type="text/javascript" src="dynsections.js"></script>
14<link href="navtree.css" rel="stylesheet" type="text/css"/>
15<script type="text/javascript" src="resize.js"></script>
Anthony Barbier8140e1e2017-12-14 23:48:46 +000016<script type="text/javascript" src="navtreedata.js"></script>
Anthony Barbier871448e2017-03-24 14:54:29 +000017<script type="text/javascript" src="navtree.js"></script>
18<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000019/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Anthony Barbier871448e2017-03-24 14:54:29 +000020 $(document).ready(initResizable);
Jenkins514be652019-02-28 12:25:18 +000021/* @license-end */</script>
Anthony Barbier871448e2017-03-24 14:54:29 +000022<link href="search/search.css" rel="stylesheet" type="text/css"/>
Anthony Barbier8140e1e2017-12-14 23:48:46 +000023<script type="text/javascript" src="search/searchdata.js"></script>
Anthony Barbier871448e2017-03-24 14:54:29 +000024<script type="text/javascript" src="search/search.js"></script>
Anthony Barbier871448e2017-03-24 14:54:29 +000025<script type="text/x-mathjax-config">
26 MathJax.Hub.Config({
27 extensions: ["tex2jax.js"],
28 jax: ["input/TeX","output/HTML-CSS"],
29});
Jenkins514be652019-02-28 12:25:18 +000030</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
Anthony Barbier871448e2017-03-24 14:54:29 +000031<link href="doxygen.css" rel="stylesheet" type="text/css" />
Jenkins514be652019-02-28 12:25:18 +000032<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
Anthony Barbier871448e2017-03-24 14:54:29 +000033</head>
34<body>
35<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
36<div id="titlearea">
37<table cellspacing="0" cellpadding="0">
38 <tbody>
39 <tr style="height: 56px;">
Jenkins514be652019-02-28 12:25:18 +000040 <img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
Anthony Barbier871448e2017-03-24 14:54:29 +000041 <td style="padding-left: 0.5em;">
Jenkins514be652019-02-28 12:25:18 +000042 <div id="projectname">
Jenkins7f09cf72020-01-22 18:08:16 +000043 &#160;<span id="projectnumber">19.11.1</span>
Anthony Barbier871448e2017-03-24 14:54:29 +000044 </div>
45 </td>
46 </tr>
47 </tbody>
48</table>
49</div>
50<!-- end header part -->
Jenkins514be652019-02-28 12:25:18 +000051<!-- Generated by Doxygen 1.8.15 -->
Anthony Barbier871448e2017-03-24 14:54:29 +000052<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000053/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Anthony Barbier871448e2017-03-24 14:54:29 +000054var searchBox = new SearchBox("searchBox", "search",false,'Search');
Jenkins514be652019-02-28 12:25:18 +000055/* @license-end */
Anthony Barbier871448e2017-03-24 14:54:29 +000056</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000057<script type="text/javascript" src="menudata.js"></script>
58<script type="text/javascript" src="menu.js"></script>
59<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000060/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000061$(function() {
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
64});
Jenkins514be652019-02-28 12:25:18 +000065/* @license-end */</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000066<div id="main-nav"></div>
Anthony Barbier871448e2017-03-24 14:54:29 +000067</div><!-- top -->
68<div id="side-nav" class="ui-resizable side-nav-resizable">
69 <div id="nav-tree">
70 <div id="nav-tree-contents">
71 <div id="nav-sync" class="sync"></div>
72 </div>
73 </div>
74 <div id="splitbar" style="-moz-user-select:none;"
75 class="ui-resizable-handle">
76 </div>
77</div>
78<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000079/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Anthony Barbier871448e2017-03-24 14:54:29 +000080$(document).ready(function(){initNavTree('convolution9x9_8cl.xhtml','');});
Jenkins514be652019-02-28 12:25:18 +000081/* @license-end */
Anthony Barbier871448e2017-03-24 14:54:29 +000082</script>
83<div id="doc-content">
84<!-- window showing the filter options -->
85<div id="MSearchSelectWindow"
86 onmouseover="return searchBox.OnSearchSelectShow()"
87 onmouseout="return searchBox.OnSearchSelectHide()"
88 onkeydown="return searchBox.OnSearchSelectKey(event)">
Anthony Barbier8140e1e2017-12-14 23:48:46 +000089</div>
Anthony Barbier871448e2017-03-24 14:54:29 +000090
91<!-- iframe showing the search results (closed by default) -->
92<div id="MSearchResultsWindow">
93<iframe src="javascript:void(0)" frameborder="0"
94 name="MSearchResults" id="MSearchResults">
95</iframe>
96</div>
97
98<div class="header">
99 <div class="summary">
100<a href="#define-members">Macros</a> &#124;
101<a href="#func-members">Functions</a> </div>
102 <div class="headertitle">
103<div class="title">convolution9x9.cl File Reference</div> </div>
104</div><!--header-->
105<div class="contents">
Jenkinsb9abeae2018-11-22 11:58:08 +0000106<div class="textblock"><code>#include &quot;<a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml">helpers.h</a>&quot;</code><br />
Anthony Barbier871448e2017-03-24 14:54:29 +0000107</div>
108<p><a href="convolution9x9_8cl_source.xhtml">Go to the source code of this file.</a></p>
109<table class="memberdecls">
110<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
111Macros</h2></td></tr>
112<tr class="memitem:afb8c72ce35c4a1f4a2588d6573e54aa1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>&#160;&#160;&#160;short</td></tr>
113<tr class="separator:afb8c72ce35c4a1f4a2588d6573e54aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
114<tr class="memitem:a26babb0c719990ecbdf3abc6de920875"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>&#160;&#160;&#160;int</td></tr>
115<tr class="separator:a26babb0c719990ecbdf3abc6de920875"><td class="memSeparator" colspan="2">&#160;</td></tr>
116<tr class="memitem:ac06f3e24d3fffd3c465d8b2a6e7c985e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>&#160;&#160;&#160;uchar</td></tr>
117<tr class="separator:ac06f3e24d3fffd3c465d8b2a6e7c985e"><td class="memSeparator" colspan="2">&#160;</td></tr>
118</table><table class="memberdecls">
119<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
120Functions</h2></td></tr>
121<tr class="memitem:a4dee2ac27c2b32072c6f88998be20f77"><td class="memItemLeft" align="right" valign="top">short8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a> (__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short left4_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff, const short right4_coeff)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000122<tr class="memdesc:a4dee2ac27c2b32072c6f88998be20f77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a 1D horizontal convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). <a href="#a4dee2ac27c2b32072c6f88998be20f77">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000123<tr class="separator:a4dee2ac27c2b32072c6f88998be20f77"><td class="memSeparator" colspan="2">&#160;</td></tr>
124<tr class="memitem:ae8ed083f963d8f868df868c090062877"><td class="memItemLeft" align="right" valign="top">int8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#ae8ed083f963d8f868df868c090062877">convolution9x1</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short up1_coeff, const short up2_coeff, const short up3_coeff, const short up4_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff, const short down3_coeff, const short down4_coeff)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000125<tr class="memdesc:ae8ed083f963d8f868df868c090062877"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a 1D vertical convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). <a href="#ae8ed083f963d8f868df868c090062877">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000126<tr class="separator:ae8ed083f963d8f868df868c090062877"><td class="memSeparator" colspan="2">&#160;</td></tr>
127<tr class="memitem:a3063e4ad24c780785326a1e0e776d5f5"><td class="memItemLeft" align="right" valign="top">short8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#a3063e4ad24c780785326a1e0e776d5f5">convolution9x9</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short mat0, const short mat1, const short mat2, const short mat3, const short mat4, const short mat5, const short mat6, const short mat7, const short mat8, const short mat9, const short mat10, const short mat11, const short mat12, const short mat13, const short mat14, const short mat15, const short mat16, const short mat17, const short mat18, const short mat19, const short mat20, const short mat21, const short mat22, const short mat23, const short mat24, const short mat25, const short mat26, const short mat27, const short mat28, const short mat29, const short mat30, const short mat31, const short mat32, const short mat33, const short mat34, const short mat35, const short mat36, const short mat37, const short mat38, const short mat39, const short mat40, const short mat41, const short mat42, const short mat43, const short mat44, const short mat45, const short mat46, const short mat47, const short mat48, const short mat49, const short mat50, const short mat51, const short mat52, const short mat53, const short mat54, const short mat55, const short mat56, const short mat57, const short mat58, const short mat59, const short mat60, const short mat61, const short mat62, const short mat63, const short mat64, const short mat65, const short mat66, const short mat67, const short mat68, const short mat69, const short mat70, const short mat71, const short mat72, const short mat73, const short mat74, const short mat75, const short mat76, const short mat77, const short mat78, const short mat79, const short mat80, uint scale)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000128<tr class="memdesc:a3063e4ad24c780785326a1e0e776d5f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 9x9 convolution matrix to a single channel U8 input image and return the result. <a href="#a3063e4ad24c780785326a1e0e776d5f5">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000129<tr class="separator:a3063e4ad24c780785326a1e0e776d5f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
130<tr class="memitem:ab34cfd0b9595e0cc56a8d8f72167183b"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#ab34cfd0b9595e0cc56a8d8f72167183b">convolution_separable1x9_static</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_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000131<tr class="memdesc:ab34cfd0b9595e0cc56a8d8f72167183b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 1x9 static convolution matrix to a single channel U8 input image and output a single temporary channel image. <a href="#ab34cfd0b9595e0cc56a8d8f72167183b">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000132<tr class="separator:ab34cfd0b9595e0cc56a8d8f72167183b"><td class="memSeparator" colspan="2">&#160;</td></tr>
133<tr class="memitem:ae1941d028c5183ce9c021a8428dbc494"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#ae1941d028c5183ce9c021a8428dbc494">convolution_separable9x1_static</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_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000134<tr class="memdesc:ae1941d028c5183ce9c021a8428dbc494"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a 9x1 static convolution matrix to a single channel U8 input image and output a single channel image. <a href="#ae1941d028c5183ce9c021a8428dbc494">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000135<tr class="separator:ae1941d028c5183ce9c021a8428dbc494"><td class="memSeparator" colspan="2">&#160;</td></tr>
136<tr class="memitem:aa63067ca6091c7190c01fd037f5f2199"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="convolution9x9_8cl.xhtml#aa63067ca6091c7190c01fd037f5f2199">convolution9x9_static</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_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000137<tr class="memdesc:aa63067ca6091c7190c01fd037f5f2199"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a static 9x9 convolution matrix to a single channel U8 input image and output a single channel image including borders. <a href="#aa63067ca6091c7190c01fd037f5f2199">More...</a><br /></td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000138<tr class="separator:aa63067ca6091c7190c01fd037f5f2199"><td class="memSeparator" colspan="2">&#160;</td></tr>
139</table>
140<h2 class="groupheader">Macro Definition Documentation</h2>
Jenkinsb9abeae2018-11-22 11:58:08 +0000141<a id="a26babb0c719990ecbdf3abc6de920875"></a>
142<h2 class="memtitle"><span class="permalink"><a href="#a26babb0c719990ecbdf3abc6de920875">&#9670;&nbsp;</a></span>COMPUTE_TYPE</h2>
143
Anthony Barbier871448e2017-03-24 14:54:29 +0000144<div class="memitem">
145<div class="memproto">
146 <table class="memname">
147 <tr>
148 <td class="memname">#define COMPUTE_TYPE&#160;&#160;&#160;int</td>
149 </tr>
150 </table>
151</div><div class="memdoc">
152
Jenkinsb9abeae2018-11-22 11:58:08 +0000153<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00031">31</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Anthony Barbier871448e2017-03-24 14:54:29 +0000154
Anthony Barbier871448e2017-03-24 14:54:29 +0000155</div>
156</div>
Jenkinsb9abeae2018-11-22 11:58:08 +0000157<a id="afb8c72ce35c4a1f4a2588d6573e54aa1"></a>
158<h2 class="memtitle"><span class="permalink"><a href="#afb8c72ce35c4a1f4a2588d6573e54aa1">&#9670;&nbsp;</a></span>DATA_TYPE</h2>
159
Anthony Barbier871448e2017-03-24 14:54:29 +0000160<div class="memitem">
161<div class="memproto">
162 <table class="memname">
163 <tr>
164 <td class="memname">#define DATA_TYPE&#160;&#160;&#160;short</td>
165 </tr>
166 </table>
167</div><div class="memdoc">
168
Jenkinsb9abeae2018-11-22 11:58:08 +0000169<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00027">27</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Anthony Barbier871448e2017-03-24 14:54:29 +0000170
Anthony Barbier871448e2017-03-24 14:54:29 +0000171</div>
172</div>
Jenkinsb9abeae2018-11-22 11:58:08 +0000173<a id="ac06f3e24d3fffd3c465d8b2a6e7c985e"></a>
174<h2 class="memtitle"><span class="permalink"><a href="#ac06f3e24d3fffd3c465d8b2a6e7c985e">&#9670;&nbsp;</a></span>DATA_TYPE_OUT</h2>
175
Anthony Barbier871448e2017-03-24 14:54:29 +0000176<div class="memitem">
177<div class="memproto">
178 <table class="memname">
179 <tr>
180 <td class="memname">#define DATA_TYPE_OUT&#160;&#160;&#160;uchar</td>
181 </tr>
182 </table>
183</div><div class="memdoc">
184
Jenkinsb9abeae2018-11-22 11:58:08 +0000185<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00035">35</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Anthony Barbier871448e2017-03-24 14:54:29 +0000186
Anthony Barbier871448e2017-03-24 14:54:29 +0000187</div>
188</div>
189<h2 class="groupheader">Function Documentation</h2>
Jenkinsb9abeae2018-11-22 11:58:08 +0000190<a id="a4dee2ac27c2b32072c6f88998be20f77"></a>
191<h2 class="memtitle"><span class="permalink"><a href="#a4dee2ac27c2b32072c6f88998be20f77">&#9670;&nbsp;</a></span>convolution1x9()</h2>
192
Anthony Barbier871448e2017-03-24 14:54:29 +0000193<div class="memitem">
194<div class="memproto">
195 <table class="memname">
196 <tr>
197 <td class="memname">short8 convolution1x9 </td>
198 <td>(</td>
199 <td class="paramtype">__global const uchar *&#160;</td>
200 <td class="paramname"><em>left_pixel</em>, </td>
201 </tr>
202 <tr>
203 <td class="paramkey"></td>
204 <td></td>
205 <td class="paramtype">const short&#160;</td>
206 <td class="paramname"><em>left1_coeff</em>, </td>
207 </tr>
208 <tr>
209 <td class="paramkey"></td>
210 <td></td>
211 <td class="paramtype">const short&#160;</td>
212 <td class="paramname"><em>left2_coeff</em>, </td>
213 </tr>
214 <tr>
215 <td class="paramkey"></td>
216 <td></td>
217 <td class="paramtype">const short&#160;</td>
218 <td class="paramname"><em>left3_coeff</em>, </td>
219 </tr>
220 <tr>
221 <td class="paramkey"></td>
222 <td></td>
223 <td class="paramtype">const short&#160;</td>
224 <td class="paramname"><em>left4_coeff</em>, </td>
225 </tr>
226 <tr>
227 <td class="paramkey"></td>
228 <td></td>
229 <td class="paramtype">const short&#160;</td>
230 <td class="paramname"><em>middle_coeff</em>, </td>
231 </tr>
232 <tr>
233 <td class="paramkey"></td>
234 <td></td>
235 <td class="paramtype">const short&#160;</td>
236 <td class="paramname"><em>right1_coeff</em>, </td>
237 </tr>
238 <tr>
239 <td class="paramkey"></td>
240 <td></td>
241 <td class="paramtype">const short&#160;</td>
242 <td class="paramname"><em>right2_coeff</em>, </td>
243 </tr>
244 <tr>
245 <td class="paramkey"></td>
246 <td></td>
247 <td class="paramtype">const short&#160;</td>
248 <td class="paramname"><em>right3_coeff</em>, </td>
249 </tr>
250 <tr>
251 <td class="paramkey"></td>
252 <td></td>
253 <td class="paramtype">const short&#160;</td>
254 <td class="paramname"><em>right4_coeff</em>&#160;</td>
255 </tr>
256 <tr>
257 <td></td>
258 <td>)</td>
259 <td></td><td></td>
260 </tr>
261 </table>
262</div><div class="memdoc">
263
264<p>Compute a 1D horizontal convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p>
265<dl class="params"><dt>Parameters</dt><dd>
266 <table class="params">
267 <tr><td class="paramdir">[in]</td><td class="paramname">left_pixel</td><td>Pointer to the left pixel </td></tr>
268 <tr><td class="paramdir">[in]</td><td class="paramname">left1_coeff</td><td>Weight of the most left pixel </td></tr>
269 <tr><td class="paramdir">[in]</td><td class="paramname">left2_coeff</td><td>Weight of the second left pixel </td></tr>
270 <tr><td class="paramdir">[in]</td><td class="paramname">left3_coeff</td><td>Weight of the third left pixel </td></tr>
271 <tr><td class="paramdir">[in]</td><td class="paramname">left4_coeff</td><td>Weight of the left pixel </td></tr>
272 <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff</td><td>Weight of the middle pixel </td></tr>
273 <tr><td class="paramdir">[in]</td><td class="paramname">right1_coeff</td><td>Weight of the right pixel </td></tr>
274 <tr><td class="paramdir">[in]</td><td class="paramname">right2_coeff</td><td>Weight of the second right pixel </td></tr>
275 <tr><td class="paramdir">[in]</td><td class="paramname">right3_coeff</td><td>Weight of the third right pixel </td></tr>
276 <tr><td class="paramdir">[in]</td><td class="paramname">right4_coeff</td><td>Weight of the most right pixel</td></tr>
277 </table>
278 </dd>
279</dl>
280<dl class="section return"><dt>Returns</dt><dd>a short8 containing 8 convoluted values. </dd></dl>
281
Jenkinsb9abeae2018-11-22 11:58:08 +0000282<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00054">54</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins0e205f72019-11-28 16:53:35 +0000283<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; uchar16 temp = vload16(0, left_pixel);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; left1 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s01234567, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; left2 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s12345678, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; left3 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s23456789, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; left4 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s3456789a, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; middle = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s456789ab, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; right1 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s56789abc, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; right2 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s6789abcd, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; right3 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s789abcde, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; right4 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s89abcdef, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; return left1 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left1_coeff + left2 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left2_coeff + left3 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left3_coeff + left4 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>,</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; 8))left4_coeff + middle * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))middle_coeff + right1 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right1_coeff + right2 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>,</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; 8))right2_coeff + right3 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right3_coeff + right4 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right4_coeff;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;}</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">helpers.h:261</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +0000284<div class="ttc" id="convolution9x9_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00027">convolution9x9.cl:27</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +0000285<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +0000286</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +0000287<p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">CONVERT</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00027">DATA_TYPE</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +0000288
289<p class="reference">Referenced by <a class="el" href="convolution9x9_8cl_source.xhtml#l00253">convolution9x9()</a>, <a class="el" href="convolution__rectangle_8cl_source.xhtml#l00064">convolution_rectangle()</a>, and <a class="el" href="convolution9x9_8cl_source.xhtml#l00314">convolution_separable1x9_static()</a>.</p>
290
Anthony Barbier871448e2017-03-24 14:54:29 +0000291</div>
292</div>
Jenkinsb9abeae2018-11-22 11:58:08 +0000293<a id="ae8ed083f963d8f868df868c090062877"></a>
294<h2 class="memtitle"><span class="permalink"><a href="#ae8ed083f963d8f868df868c090062877">&#9670;&nbsp;</a></span>convolution9x1()</h2>
295
Anthony Barbier871448e2017-03-24 14:54:29 +0000296<div class="memitem">
297<div class="memproto">
298 <table class="memname">
299 <tr>
300 <td class="memname">int8 convolution9x1 </td>
301 <td>(</td>
302 <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
303 <td class="paramname"><em>src</em>, </td>
304 </tr>
305 <tr>
306 <td class="paramkey"></td>
307 <td></td>
308 <td class="paramtype">const short&#160;</td>
309 <td class="paramname"><em>up1_coeff</em>, </td>
310 </tr>
311 <tr>
312 <td class="paramkey"></td>
313 <td></td>
314 <td class="paramtype">const short&#160;</td>
315 <td class="paramname"><em>up2_coeff</em>, </td>
316 </tr>
317 <tr>
318 <td class="paramkey"></td>
319 <td></td>
320 <td class="paramtype">const short&#160;</td>
321 <td class="paramname"><em>up3_coeff</em>, </td>
322 </tr>
323 <tr>
324 <td class="paramkey"></td>
325 <td></td>
326 <td class="paramtype">const short&#160;</td>
327 <td class="paramname"><em>up4_coeff</em>, </td>
328 </tr>
329 <tr>
330 <td class="paramkey"></td>
331 <td></td>
332 <td class="paramtype">const short&#160;</td>
333 <td class="paramname"><em>middle_coeff</em>, </td>
334 </tr>
335 <tr>
336 <td class="paramkey"></td>
337 <td></td>
338 <td class="paramtype">const short&#160;</td>
339 <td class="paramname"><em>down1_coeff</em>, </td>
340 </tr>
341 <tr>
342 <td class="paramkey"></td>
343 <td></td>
344 <td class="paramtype">const short&#160;</td>
345 <td class="paramname"><em>down2_coeff</em>, </td>
346 </tr>
347 <tr>
348 <td class="paramkey"></td>
349 <td></td>
350 <td class="paramtype">const short&#160;</td>
351 <td class="paramname"><em>down3_coeff</em>, </td>
352 </tr>
353 <tr>
354 <td class="paramkey"></td>
355 <td></td>
356 <td class="paramtype">const short&#160;</td>
357 <td class="paramname"><em>down4_coeff</em>&#160;</td>
358 </tr>
359 <tr>
360 <td></td>
361 <td>)</td>
362 <td></td><td></td>
363 </tr>
364 </table>
365</div><div class="memdoc">
366
367<p>Compute a 1D vertical convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p>
368<dl class="params"><dt>Parameters</dt><dd>
369 <table class="params">
370 <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to source image. </td></tr>
371 <tr><td class="paramdir">[in]</td><td class="paramname">up1_coeff</td><td>Weight of the most up pixel </td></tr>
372 <tr><td class="paramdir">[in]</td><td class="paramname">up2_coeff</td><td>Weight of the second up pixel </td></tr>
373 <tr><td class="paramdir">[in]</td><td class="paramname">up3_coeff</td><td>Weight of the third up pixel </td></tr>
374 <tr><td class="paramdir">[in]</td><td class="paramname">up4_coeff</td><td>Weight of the up pixel </td></tr>
375 <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff</td><td>Weight of the middle pixel </td></tr>
376 <tr><td class="paramdir">[in]</td><td class="paramname">down1_coeff</td><td>Weight of the down pixel </td></tr>
377 <tr><td class="paramdir">[in]</td><td class="paramname">down2_coeff</td><td>Weight of the second down pixel </td></tr>
378 <tr><td class="paramdir">[in]</td><td class="paramname">down3_coeff</td><td>Weight of the third down pixel </td></tr>
379 <tr><td class="paramdir">[in]</td><td class="paramname">down4_coeff</td><td>Weight of the most down pixel</td></tr>
380 </table>
381 </dd>
382</dl>
383<dl class="section return"><dt>Returns</dt><dd>a short8 containing 8 convoluted values. </dd></dl>
384
Jenkinsb9abeae2018-11-22 11:58:08 +0000385<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00108">108</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins0e205f72019-11-28 16:53:35 +0000386<div class="fragment"><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; val;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; out = (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))0;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -4)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up1_coeff;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -3)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up2_coeff;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -2)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up3_coeff;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -1)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up4_coeff;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 0)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))middle_coeff;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 1)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down1_coeff;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 2)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down2_coeff;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 3)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down3_coeff;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 4)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down4_coeff;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; return out;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;}</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div>
387<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">helpers.h:261</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +0000388<div class="ttc" id="convolution9x9_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00027">convolution9x9.cl:27</a></div></div>
389<div class="ttc" id="convolution9x9_8cl_xhtml_a26babb0c719990ecbdf3abc6de920875"><div class="ttname"><a href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a></div><div class="ttdeci">#define COMPUTE_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00031">convolution9x9.cl:31</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +0100390<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +0000391<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +0000392</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +0000393<p class="reference">References <a class="el" href="convolution9x9_8cl_source.xhtml#l00031">COMPUTE_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">CONVERT</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +0000394
395<p class="reference">Referenced by <a class="el" href="convolution9x9_8cl_source.xhtml#l00347">convolution_separable9x1_static()</a>.</p>
396
Anthony Barbier871448e2017-03-24 14:54:29 +0000397</div>
398</div>
Jenkinsb9abeae2018-11-22 11:58:08 +0000399<a id="a3063e4ad24c780785326a1e0e776d5f5"></a>
400<h2 class="memtitle"><span class="permalink"><a href="#a3063e4ad24c780785326a1e0e776d5f5">&#9670;&nbsp;</a></span>convolution9x9()</h2>
401
Anthony Barbier871448e2017-03-24 14:54:29 +0000402<div class="memitem">
403<div class="memproto">
404 <table class="memname">
405 <tr>
406 <td class="memname">short8 convolution9x9 </td>
407 <td>(</td>
408 <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
409 <td class="paramname"><em>src</em>, </td>
410 </tr>
411 <tr>
412 <td class="paramkey"></td>
413 <td></td>
414 <td class="paramtype">const short&#160;</td>
415 <td class="paramname"><em>mat0</em>, </td>
416 </tr>
417 <tr>
418 <td class="paramkey"></td>
419 <td></td>
420 <td class="paramtype">const short&#160;</td>
421 <td class="paramname"><em>mat1</em>, </td>
422 </tr>
423 <tr>
424 <td class="paramkey"></td>
425 <td></td>
426 <td class="paramtype">const short&#160;</td>
427 <td class="paramname"><em>mat2</em>, </td>
428 </tr>
429 <tr>
430 <td class="paramkey"></td>
431 <td></td>
432 <td class="paramtype">const short&#160;</td>
433 <td class="paramname"><em>mat3</em>, </td>
434 </tr>
435 <tr>
436 <td class="paramkey"></td>
437 <td></td>
438 <td class="paramtype">const short&#160;</td>
439 <td class="paramname"><em>mat4</em>, </td>
440 </tr>
441 <tr>
442 <td class="paramkey"></td>
443 <td></td>
444 <td class="paramtype">const short&#160;</td>
445 <td class="paramname"><em>mat5</em>, </td>
446 </tr>
447 <tr>
448 <td class="paramkey"></td>
449 <td></td>
450 <td class="paramtype">const short&#160;</td>
451 <td class="paramname"><em>mat6</em>, </td>
452 </tr>
453 <tr>
454 <td class="paramkey"></td>
455 <td></td>
456 <td class="paramtype">const short&#160;</td>
457 <td class="paramname"><em>mat7</em>, </td>
458 </tr>
459 <tr>
460 <td class="paramkey"></td>
461 <td></td>
462 <td class="paramtype">const short&#160;</td>
463 <td class="paramname"><em>mat8</em>, </td>
464 </tr>
465 <tr>
466 <td class="paramkey"></td>
467 <td></td>
468 <td class="paramtype">const short&#160;</td>
469 <td class="paramname"><em>mat9</em>, </td>
470 </tr>
471 <tr>
472 <td class="paramkey"></td>
473 <td></td>
474 <td class="paramtype">const short&#160;</td>
475 <td class="paramname"><em>mat10</em>, </td>
476 </tr>
477 <tr>
478 <td class="paramkey"></td>
479 <td></td>
480 <td class="paramtype">const short&#160;</td>
481 <td class="paramname"><em>mat11</em>, </td>
482 </tr>
483 <tr>
484 <td class="paramkey"></td>
485 <td></td>
486 <td class="paramtype">const short&#160;</td>
487 <td class="paramname"><em>mat12</em>, </td>
488 </tr>
489 <tr>
490 <td class="paramkey"></td>
491 <td></td>
492 <td class="paramtype">const short&#160;</td>
493 <td class="paramname"><em>mat13</em>, </td>
494 </tr>
495 <tr>
496 <td class="paramkey"></td>
497 <td></td>
498 <td class="paramtype">const short&#160;</td>
499 <td class="paramname"><em>mat14</em>, </td>
500 </tr>
501 <tr>
502 <td class="paramkey"></td>
503 <td></td>
504 <td class="paramtype">const short&#160;</td>
505 <td class="paramname"><em>mat15</em>, </td>
506 </tr>
507 <tr>
508 <td class="paramkey"></td>
509 <td></td>
510 <td class="paramtype">const short&#160;</td>
511 <td class="paramname"><em>mat16</em>, </td>
512 </tr>
513 <tr>
514 <td class="paramkey"></td>
515 <td></td>
516 <td class="paramtype">const short&#160;</td>
517 <td class="paramname"><em>mat17</em>, </td>
518 </tr>
519 <tr>
520 <td class="paramkey"></td>
521 <td></td>
522 <td class="paramtype">const short&#160;</td>
523 <td class="paramname"><em>mat18</em>, </td>
524 </tr>
525 <tr>
526 <td class="paramkey"></td>
527 <td></td>
528 <td class="paramtype">const short&#160;</td>
529 <td class="paramname"><em>mat19</em>, </td>
530 </tr>
531 <tr>
532 <td class="paramkey"></td>
533 <td></td>
534 <td class="paramtype">const short&#160;</td>
535 <td class="paramname"><em>mat20</em>, </td>
536 </tr>
537 <tr>
538 <td class="paramkey"></td>
539 <td></td>
540 <td class="paramtype">const short&#160;</td>
541 <td class="paramname"><em>mat21</em>, </td>
542 </tr>
543 <tr>
544 <td class="paramkey"></td>
545 <td></td>
546 <td class="paramtype">const short&#160;</td>
547 <td class="paramname"><em>mat22</em>, </td>
548 </tr>
549 <tr>
550 <td class="paramkey"></td>
551 <td></td>
552 <td class="paramtype">const short&#160;</td>
553 <td class="paramname"><em>mat23</em>, </td>
554 </tr>
555 <tr>
556 <td class="paramkey"></td>
557 <td></td>
558 <td class="paramtype">const short&#160;</td>
559 <td class="paramname"><em>mat24</em>, </td>
560 </tr>
561 <tr>
562 <td class="paramkey"></td>
563 <td></td>
564 <td class="paramtype">const short&#160;</td>
565 <td class="paramname"><em>mat25</em>, </td>
566 </tr>
567 <tr>
568 <td class="paramkey"></td>
569 <td></td>
570 <td class="paramtype">const short&#160;</td>
571 <td class="paramname"><em>mat26</em>, </td>
572 </tr>
573 <tr>
574 <td class="paramkey"></td>
575 <td></td>
576 <td class="paramtype">const short&#160;</td>
577 <td class="paramname"><em>mat27</em>, </td>
578 </tr>
579 <tr>
580 <td class="paramkey"></td>
581 <td></td>
582 <td class="paramtype">const short&#160;</td>
583 <td class="paramname"><em>mat28</em>, </td>
584 </tr>
585 <tr>
586 <td class="paramkey"></td>
587 <td></td>
588 <td class="paramtype">const short&#160;</td>
589 <td class="paramname"><em>mat29</em>, </td>
590 </tr>
591 <tr>
592 <td class="paramkey"></td>
593 <td></td>
594 <td class="paramtype">const short&#160;</td>
595 <td class="paramname"><em>mat30</em>, </td>
596 </tr>
597 <tr>
598 <td class="paramkey"></td>
599 <td></td>
600 <td class="paramtype">const short&#160;</td>
601 <td class="paramname"><em>mat31</em>, </td>
602 </tr>
603 <tr>
604 <td class="paramkey"></td>
605 <td></td>
606 <td class="paramtype">const short&#160;</td>
607 <td class="paramname"><em>mat32</em>, </td>
608 </tr>
609 <tr>
610 <td class="paramkey"></td>
611 <td></td>
612 <td class="paramtype">const short&#160;</td>
613 <td class="paramname"><em>mat33</em>, </td>
614 </tr>
615 <tr>
616 <td class="paramkey"></td>
617 <td></td>
618 <td class="paramtype">const short&#160;</td>
619 <td class="paramname"><em>mat34</em>, </td>
620 </tr>
621 <tr>
622 <td class="paramkey"></td>
623 <td></td>
624 <td class="paramtype">const short&#160;</td>
625 <td class="paramname"><em>mat35</em>, </td>
626 </tr>
627 <tr>
628 <td class="paramkey"></td>
629 <td></td>
630 <td class="paramtype">const short&#160;</td>
631 <td class="paramname"><em>mat36</em>, </td>
632 </tr>
633 <tr>
634 <td class="paramkey"></td>
635 <td></td>
636 <td class="paramtype">const short&#160;</td>
637 <td class="paramname"><em>mat37</em>, </td>
638 </tr>
639 <tr>
640 <td class="paramkey"></td>
641 <td></td>
642 <td class="paramtype">const short&#160;</td>
643 <td class="paramname"><em>mat38</em>, </td>
644 </tr>
645 <tr>
646 <td class="paramkey"></td>
647 <td></td>
648 <td class="paramtype">const short&#160;</td>
649 <td class="paramname"><em>mat39</em>, </td>
650 </tr>
651 <tr>
652 <td class="paramkey"></td>
653 <td></td>
654 <td class="paramtype">const short&#160;</td>
655 <td class="paramname"><em>mat40</em>, </td>
656 </tr>
657 <tr>
658 <td class="paramkey"></td>
659 <td></td>
660 <td class="paramtype">const short&#160;</td>
661 <td class="paramname"><em>mat41</em>, </td>
662 </tr>
663 <tr>
664 <td class="paramkey"></td>
665 <td></td>
666 <td class="paramtype">const short&#160;</td>
667 <td class="paramname"><em>mat42</em>, </td>
668 </tr>
669 <tr>
670 <td class="paramkey"></td>
671 <td></td>
672 <td class="paramtype">const short&#160;</td>
673 <td class="paramname"><em>mat43</em>, </td>
674 </tr>
675 <tr>
676 <td class="paramkey"></td>
677 <td></td>
678 <td class="paramtype">const short&#160;</td>
679 <td class="paramname"><em>mat44</em>, </td>
680 </tr>
681 <tr>
682 <td class="paramkey"></td>
683 <td></td>
684 <td class="paramtype">const short&#160;</td>
685 <td class="paramname"><em>mat45</em>, </td>
686 </tr>
687 <tr>
688 <td class="paramkey"></td>
689 <td></td>
690 <td class="paramtype">const short&#160;</td>
691 <td class="paramname"><em>mat46</em>, </td>
692 </tr>
693 <tr>
694 <td class="paramkey"></td>
695 <td></td>
696 <td class="paramtype">const short&#160;</td>
697 <td class="paramname"><em>mat47</em>, </td>
698 </tr>
699 <tr>
700 <td class="paramkey"></td>
701 <td></td>
702 <td class="paramtype">const short&#160;</td>
703 <td class="paramname"><em>mat48</em>, </td>
704 </tr>
705 <tr>
706 <td class="paramkey"></td>
707 <td></td>
708 <td class="paramtype">const short&#160;</td>
709 <td class="paramname"><em>mat49</em>, </td>
710 </tr>
711 <tr>
712 <td class="paramkey"></td>
713 <td></td>
714 <td class="paramtype">const short&#160;</td>
715 <td class="paramname"><em>mat50</em>, </td>
716 </tr>
717 <tr>
718 <td class="paramkey"></td>
719 <td></td>
720 <td class="paramtype">const short&#160;</td>
721 <td class="paramname"><em>mat51</em>, </td>
722 </tr>
723 <tr>
724 <td class="paramkey"></td>
725 <td></td>
726 <td class="paramtype">const short&#160;</td>
727 <td class="paramname"><em>mat52</em>, </td>
728 </tr>
729 <tr>
730 <td class="paramkey"></td>
731 <td></td>
732 <td class="paramtype">const short&#160;</td>
733 <td class="paramname"><em>mat53</em>, </td>
734 </tr>
735 <tr>
736 <td class="paramkey"></td>
737 <td></td>
738 <td class="paramtype">const short&#160;</td>
739 <td class="paramname"><em>mat54</em>, </td>
740 </tr>
741 <tr>
742 <td class="paramkey"></td>
743 <td></td>
744 <td class="paramtype">const short&#160;</td>
745 <td class="paramname"><em>mat55</em>, </td>
746 </tr>
747 <tr>
748 <td class="paramkey"></td>
749 <td></td>
750 <td class="paramtype">const short&#160;</td>
751 <td class="paramname"><em>mat56</em>, </td>
752 </tr>
753 <tr>
754 <td class="paramkey"></td>
755 <td></td>
756 <td class="paramtype">const short&#160;</td>
757 <td class="paramname"><em>mat57</em>, </td>
758 </tr>
759 <tr>
760 <td class="paramkey"></td>
761 <td></td>
762 <td class="paramtype">const short&#160;</td>
763 <td class="paramname"><em>mat58</em>, </td>
764 </tr>
765 <tr>
766 <td class="paramkey"></td>
767 <td></td>
768 <td class="paramtype">const short&#160;</td>
769 <td class="paramname"><em>mat59</em>, </td>
770 </tr>
771 <tr>
772 <td class="paramkey"></td>
773 <td></td>
774 <td class="paramtype">const short&#160;</td>
775 <td class="paramname"><em>mat60</em>, </td>
776 </tr>
777 <tr>
778 <td class="paramkey"></td>
779 <td></td>
780 <td class="paramtype">const short&#160;</td>
781 <td class="paramname"><em>mat61</em>, </td>
782 </tr>
783 <tr>
784 <td class="paramkey"></td>
785 <td></td>
786 <td class="paramtype">const short&#160;</td>
787 <td class="paramname"><em>mat62</em>, </td>
788 </tr>
789 <tr>
790 <td class="paramkey"></td>
791 <td></td>
792 <td class="paramtype">const short&#160;</td>
793 <td class="paramname"><em>mat63</em>, </td>
794 </tr>
795 <tr>
796 <td class="paramkey"></td>
797 <td></td>
798 <td class="paramtype">const short&#160;</td>
799 <td class="paramname"><em>mat64</em>, </td>
800 </tr>
801 <tr>
802 <td class="paramkey"></td>
803 <td></td>
804 <td class="paramtype">const short&#160;</td>
805 <td class="paramname"><em>mat65</em>, </td>
806 </tr>
807 <tr>
808 <td class="paramkey"></td>
809 <td></td>
810 <td class="paramtype">const short&#160;</td>
811 <td class="paramname"><em>mat66</em>, </td>
812 </tr>
813 <tr>
814 <td class="paramkey"></td>
815 <td></td>
816 <td class="paramtype">const short&#160;</td>
817 <td class="paramname"><em>mat67</em>, </td>
818 </tr>
819 <tr>
820 <td class="paramkey"></td>
821 <td></td>
822 <td class="paramtype">const short&#160;</td>
823 <td class="paramname"><em>mat68</em>, </td>
824 </tr>
825 <tr>
826 <td class="paramkey"></td>
827 <td></td>
828 <td class="paramtype">const short&#160;</td>
829 <td class="paramname"><em>mat69</em>, </td>
830 </tr>
831 <tr>
832 <td class="paramkey"></td>
833 <td></td>
834 <td class="paramtype">const short&#160;</td>
835 <td class="paramname"><em>mat70</em>, </td>
836 </tr>
837 <tr>
838 <td class="paramkey"></td>
839 <td></td>
840 <td class="paramtype">const short&#160;</td>
841 <td class="paramname"><em>mat71</em>, </td>
842 </tr>
843 <tr>
844 <td class="paramkey"></td>
845 <td></td>
846 <td class="paramtype">const short&#160;</td>
847 <td class="paramname"><em>mat72</em>, </td>
848 </tr>
849 <tr>
850 <td class="paramkey"></td>
851 <td></td>
852 <td class="paramtype">const short&#160;</td>
853 <td class="paramname"><em>mat73</em>, </td>
854 </tr>
855 <tr>
856 <td class="paramkey"></td>
857 <td></td>
858 <td class="paramtype">const short&#160;</td>
859 <td class="paramname"><em>mat74</em>, </td>
860 </tr>
861 <tr>
862 <td class="paramkey"></td>
863 <td></td>
864 <td class="paramtype">const short&#160;</td>
865 <td class="paramname"><em>mat75</em>, </td>
866 </tr>
867 <tr>
868 <td class="paramkey"></td>
869 <td></td>
870 <td class="paramtype">const short&#160;</td>
871 <td class="paramname"><em>mat76</em>, </td>
872 </tr>
873 <tr>
874 <td class="paramkey"></td>
875 <td></td>
876 <td class="paramtype">const short&#160;</td>
877 <td class="paramname"><em>mat77</em>, </td>
878 </tr>
879 <tr>
880 <td class="paramkey"></td>
881 <td></td>
882 <td class="paramtype">const short&#160;</td>
883 <td class="paramname"><em>mat78</em>, </td>
884 </tr>
885 <tr>
886 <td class="paramkey"></td>
887 <td></td>
888 <td class="paramtype">const short&#160;</td>
889 <td class="paramname"><em>mat79</em>, </td>
890 </tr>
891 <tr>
892 <td class="paramkey"></td>
893 <td></td>
894 <td class="paramtype">const short&#160;</td>
895 <td class="paramname"><em>mat80</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>scale</em>&#160;</td>
902 </tr>
903 <tr>
904 <td></td>
905 <td>)</td>
906 <td></td><td></td>
907 </tr>
908 </table>
909</div><div class="memdoc">
910
911<p>Apply a 9x9 convolution matrix to a single channel U8 input image and return the result. </p>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000912<p>Convolution matrix layout:<br />
913[ mat0, mat1, mat2, mat3 , mat4, mat5, mat6, mat7, mat8 ]<br />
914[ mat9, mat10, mat11, mat12, mat13, mat14, mat15, mat16, mat17 ]<br />
915[ mat18, mat19, mat20, mat21, mat22, mat23, mat24, mat25, mat26 ]<br />
916[ mat27, mat28, mat29, mat30, mat31, mat32, mat33, mat34, mat35 ]<br />
917[ mat36, mat37, mat38, mat39, mat40, mat41, mat42, mat43, mat44 ]<br />
918[ mat45, mat46, mat47, mat48, mat49, mat50, mat51, mat52, mat53 ]<br />
Anthony Barbier871448e2017-03-24 14:54:29 +0000919[ mat54, mat55, mat56, mat57, mat58, mat59, mat60, mat61, mat62 ] [ mat63, mat64, mat65, mat66, mat67, mat68, mat69, mat70, mat71 ] [ mat72, mat73, mat74, mat75, mat76, mat77, mat78, mat79, mat80 ]</p>
920<dl class="params"><dt>Parameters</dt><dd>
921 <table class="params">
Jenkins514be652019-02-28 12:25:18 +0000922 <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>A pointer to source <a class="el" href="struct_image.xhtml" title="Structure to hold Image information.">Image</a> structure. </td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000923 <tr><td class="paramdir">[in]</td><td class="paramname">mat0</td><td>Coefficient from the convolution matrix </td></tr>
924 <tr><td class="paramdir">[in]</td><td class="paramname">mat1</td><td>Coefficient from the convolution matrix </td></tr>
925 <tr><td class="paramdir">[in]</td><td class="paramname">mat2</td><td>Coefficient from the convolution matrix </td></tr>
926 <tr><td class="paramdir">[in]</td><td class="paramname">mat3</td><td>Coefficient from the convolution matrix </td></tr>
927 <tr><td class="paramdir">[in]</td><td class="paramname">mat4</td><td>Coefficient from the convolution matrix </td></tr>
928 <tr><td class="paramdir">[in]</td><td class="paramname">mat5</td><td>Coefficient from the convolution matrix </td></tr>
929 <tr><td class="paramdir">[in]</td><td class="paramname">mat6</td><td>Coefficient from the convolution matrix </td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000930 <tr><td class="paramdir">[in]</td><td class="paramname">mat7</td><td>Coefficient from the convolution matrix </td></tr>
931 <tr><td class="paramdir">[in]</td><td class="paramname">mat8</td><td>Coefficient from the convolution matrix </td></tr>
932 <tr><td class="paramdir">[in]</td><td class="paramname">mat9</td><td>Coefficient from the convolution matrix </td></tr>
933 <tr><td class="paramdir">[in]</td><td class="paramname">mat10</td><td>Coefficient from the convolution matrix </td></tr>
934 <tr><td class="paramdir">[in]</td><td class="paramname">mat11</td><td>Coefficient from the convolution matrix </td></tr>
935 <tr><td class="paramdir">[in]</td><td class="paramname">mat12</td><td>Coefficient from the convolution matrix </td></tr>
936 <tr><td class="paramdir">[in]</td><td class="paramname">mat13</td><td>Coefficient from the convolution matrix </td></tr>
937 <tr><td class="paramdir">[in]</td><td class="paramname">mat14</td><td>Coefficient from the convolution matrix </td></tr>
938 <tr><td class="paramdir">[in]</td><td class="paramname">mat15</td><td>Coefficient from the convolution matrix </td></tr>
939 <tr><td class="paramdir">[in]</td><td class="paramname">mat16</td><td>Coefficient from the convolution matrix </td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +0000940 <tr><td class="paramdir">[in]</td><td class="paramname">mat17</td><td>Coefficient from the convolution matrix </td></tr>
941 <tr><td class="paramdir">[in]</td><td class="paramname">mat18</td><td>Coefficient from the convolution matrix </td></tr>
942 <tr><td class="paramdir">[in]</td><td class="paramname">mat19</td><td>Coefficient from the convolution matrix </td></tr>
943 <tr><td class="paramdir">[in]</td><td class="paramname">mat20</td><td>Coefficient from the convolution matrix </td></tr>
944 <tr><td class="paramdir">[in]</td><td class="paramname">mat21</td><td>Coefficient from the convolution matrix </td></tr>
945 <tr><td class="paramdir">[in]</td><td class="paramname">mat22</td><td>Coefficient from the convolution matrix </td></tr>
946 <tr><td class="paramdir">[in]</td><td class="paramname">mat23</td><td>Coefficient from the convolution matrix </td></tr>
947 <tr><td class="paramdir">[in]</td><td class="paramname">mat24</td><td>Coefficient from the convolution matrix </td></tr>
948 <tr><td class="paramdir">[in]</td><td class="paramname">mat25</td><td>Coefficient from the convolution matrix </td></tr>
949 <tr><td class="paramdir">[in]</td><td class="paramname">mat26</td><td>Coefficient from the convolution matrix </td></tr>
950 <tr><td class="paramdir">[in]</td><td class="paramname">mat27</td><td>Coefficient from the convolution matrix </td></tr>
951 <tr><td class="paramdir">[in]</td><td class="paramname">mat28</td><td>Coefficient from the convolution matrix </td></tr>
952 <tr><td class="paramdir">[in]</td><td class="paramname">mat29</td><td>Coefficient from the convolution matrix </td></tr>
953 <tr><td class="paramdir">[in]</td><td class="paramname">mat30</td><td>Coefficient from the convolution matrix </td></tr>
954 <tr><td class="paramdir">[in]</td><td class="paramname">mat31</td><td>Coefficient from the convolution matrix </td></tr>
955 <tr><td class="paramdir">[in]</td><td class="paramname">mat32</td><td>Coefficient from the convolution matrix </td></tr>
956 <tr><td class="paramdir">[in]</td><td class="paramname">mat33</td><td>Coefficient from the convolution matrix </td></tr>
957 <tr><td class="paramdir">[in]</td><td class="paramname">mat34</td><td>Coefficient from the convolution matrix </td></tr>
958 <tr><td class="paramdir">[in]</td><td class="paramname">mat35</td><td>Coefficient from the convolution matrix </td></tr>
959 <tr><td class="paramdir">[in]</td><td class="paramname">mat36</td><td>Coefficient from the convolution matrix </td></tr>
960 <tr><td class="paramdir">[in]</td><td class="paramname">mat37</td><td>Coefficient from the convolution matrix </td></tr>
961 <tr><td class="paramdir">[in]</td><td class="paramname">mat38</td><td>Coefficient from the convolution matrix </td></tr>
962 <tr><td class="paramdir">[in]</td><td class="paramname">mat39</td><td>Coefficient from the convolution matrix </td></tr>
963 <tr><td class="paramdir">[in]</td><td class="paramname">mat40</td><td>Coefficient from the convolution matrix </td></tr>
964 <tr><td class="paramdir">[in]</td><td class="paramname">mat41</td><td>Coefficient from the convolution matrix </td></tr>
965 <tr><td class="paramdir">[in]</td><td class="paramname">mat42</td><td>Coefficient from the convolution matrix </td></tr>
966 <tr><td class="paramdir">[in]</td><td class="paramname">mat43</td><td>Coefficient from the convolution matrix </td></tr>
967 <tr><td class="paramdir">[in]</td><td class="paramname">mat44</td><td>Coefficient from the convolution matrix </td></tr>
968 <tr><td class="paramdir">[in]</td><td class="paramname">mat45</td><td>Coefficient from the convolution matrix </td></tr>
969 <tr><td class="paramdir">[in]</td><td class="paramname">mat46</td><td>Coefficient from the convolution matrix </td></tr>
970 <tr><td class="paramdir">[in]</td><td class="paramname">mat47</td><td>Coefficient from the convolution matrix </td></tr>
971 <tr><td class="paramdir">[in]</td><td class="paramname">mat48</td><td>Coefficient from the convolution matrix </td></tr>
972 <tr><td class="paramdir">[in]</td><td class="paramname">mat49</td><td>Coefficient from the convolution matrix </td></tr>
973 <tr><td class="paramdir">[in]</td><td class="paramname">mat50</td><td>Coefficient from the convolution matrix </td></tr>
974 <tr><td class="paramdir">[in]</td><td class="paramname">mat51</td><td>Coefficient from the convolution matrix </td></tr>
975 <tr><td class="paramdir">[in]</td><td class="paramname">mat52</td><td>Coefficient from the convolution matrix </td></tr>
976 <tr><td class="paramdir">[in]</td><td class="paramname">mat53</td><td>Coefficient from the convolution matrix </td></tr>
977 <tr><td class="paramdir">[in]</td><td class="paramname">mat54</td><td>Coefficient from the convolution matrix </td></tr>
978 <tr><td class="paramdir">[in]</td><td class="paramname">mat55</td><td>Coefficient from the convolution matrix </td></tr>
979 <tr><td class="paramdir">[in]</td><td class="paramname">mat56</td><td>Coefficient from the convolution matrix </td></tr>
980 <tr><td class="paramdir">[in]</td><td class="paramname">mat57</td><td>Coefficient from the convolution matrix </td></tr>
981 <tr><td class="paramdir">[in]</td><td class="paramname">mat58</td><td>Coefficient from the convolution matrix </td></tr>
982 <tr><td class="paramdir">[in]</td><td class="paramname">mat59</td><td>Coefficient from the convolution matrix </td></tr>
983 <tr><td class="paramdir">[in]</td><td class="paramname">mat60</td><td>Coefficient from the convolution matrix </td></tr>
984 <tr><td class="paramdir">[in]</td><td class="paramname">mat61</td><td>Coefficient from the convolution matrix </td></tr>
985 <tr><td class="paramdir">[in]</td><td class="paramname">mat62</td><td>Coefficient from the convolution matrix </td></tr>
986 <tr><td class="paramdir">[in]</td><td class="paramname">mat63</td><td>Coefficient from the convolution matrix </td></tr>
987 <tr><td class="paramdir">[in]</td><td class="paramname">mat64</td><td>Coefficient from the convolution matrix </td></tr>
988 <tr><td class="paramdir">[in]</td><td class="paramname">mat65</td><td>Coefficient from the convolution matrix </td></tr>
989 <tr><td class="paramdir">[in]</td><td class="paramname">mat66</td><td>Coefficient from the convolution matrix </td></tr>
990 <tr><td class="paramdir">[in]</td><td class="paramname">mat67</td><td>Coefficient from the convolution matrix </td></tr>
991 <tr><td class="paramdir">[in]</td><td class="paramname">mat68</td><td>Coefficient from the convolution matrix </td></tr>
992 <tr><td class="paramdir">[in]</td><td class="paramname">mat69</td><td>Coefficient from the convolution matrix </td></tr>
993 <tr><td class="paramdir">[in]</td><td class="paramname">mat70</td><td>Coefficient from the convolution matrix </td></tr>
994 <tr><td class="paramdir">[in]</td><td class="paramname">mat71</td><td>Coefficient from the convolution matrix </td></tr>
995 <tr><td class="paramdir">[in]</td><td class="paramname">mat72</td><td>Coefficient from the convolution matrix </td></tr>
996 <tr><td class="paramdir">[in]</td><td class="paramname">mat73</td><td>Coefficient from the convolution matrix </td></tr>
997 <tr><td class="paramdir">[in]</td><td class="paramname">mat74</td><td>Coefficient from the convolution matrix </td></tr>
998 <tr><td class="paramdir">[in]</td><td class="paramname">mat75</td><td>Coefficient from the convolution matrix </td></tr>
999 <tr><td class="paramdir">[in]</td><td class="paramname">mat76</td><td>Coefficient from the convolution matrix </td></tr>
Anthony Barbier871448e2017-03-24 14:54:29 +00001000 <tr><td class="paramdir">[in]</td><td class="paramname">mat77</td><td>Coefficient from the convolution matrix </td></tr>
1001 <tr><td class="paramdir">[in]</td><td class="paramname">mat78</td><td>Coefficient from the convolution matrix </td></tr>
1002 <tr><td class="paramdir">[in]</td><td class="paramname">mat79</td><td>Coefficient from the convolution matrix </td></tr>
1003 <tr><td class="paramdir">[in]</td><td class="paramname">mat80</td><td>Coefficient from the convolution matrix </td></tr>
1004 <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Convolution matrix scale (Sum of the coefficients, or 1 if the sum is 0) </td></tr>
1005 </table>
1006 </dd>
1007</dl>
1008
Jenkins514be652019-02-28 12:25:18 +00001009<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00253">253</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins0e205f72019-11-28 16:53:35 +00001010<div class="fragment"><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;{</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; pixels;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; pixels = <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, -4), mat0, mat1, mat2, mat3, mat4, mat5, mat6, mat7, mat8);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, -3), mat9, mat10, mat11, mat12, mat13, mat14, mat15, mat16, mat17);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, -2), mat18, mat19, mat20, mat21, mat22, mat23, mat24, mat25, mat26);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, -1), mat27, mat28, mat29, mat30, mat31, mat32, mat33, mat34, mat35);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 0), mat36, mat37, mat38, mat39, mat40, mat41, mat42, mat43, mat44);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 1), mat45, mat46, mat47, mat48, mat49, mat50, mat51, mat52, mat53);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 2), mat54, mat55, mat56, mat57, mat58, mat59, mat60, mat61, mat62);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 3), mat63, mat64, mat65, mat66, mat67, mat68, mat69, mat70, mat71);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; pixels += <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 4), mat72, mat73, mat74, mat75, mat76, mat77, mat78, mat79, mat80);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a439f0d3ec27d4db453534d05f9f0bd18">if</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a> &gt; 0)</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; {</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; pixels /= (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a>;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; }</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keywordflow">return</span> convert_short8_sat(pixels);</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;}</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div>
Jenkinsb9abeae2018-11-22 11:58:08 +00001011<div class="ttc" id="convolution9x9_8cl_xhtml_a4dee2ac27c2b32072c6f88998be20f77"><div class="ttname"><a href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a></div><div class="ttdeci">short8 convolution1x9(__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short left4_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff, const short right4_coeff)</div><div class="ttdoc">Compute a 1D horizontal convolution of size 9 for 8 bytes assuming the input is made of 1 channel of ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00054">convolution9x9.cl:54</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001012<div class="ttc" id="convolution9x9_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00027">convolution9x9.cl:27</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +01001013<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_acec6d8ad52a28972fa74e071c1a63b6a"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">arm_compute::test::validation::scale</a></div><div class="ttdeci">scale</div><div class="ttdef"><b>Definition:</b> <a href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00317">PixelWiseMultiplication.cpp:317</a></div></div>
Jenkins514be652019-02-28 12:25:18 +00001014<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a439f0d3ec27d4db453534d05f9f0bd18"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a439f0d3ec27d4db453534d05f9f0bd18">arm_compute::test::validation::if</a></div><div class="ttdeci">if(same_rank)</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_select_8cpp_source.xhtml#l00174">Select.cpp:174</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +01001015<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001016<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001017</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +00001018<p class="reference">References <a class="el" href="convolution9x9_8cl_source.xhtml#l00054">convolution1x9()</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00317">arm_compute::test::validation::scale</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +00001019
1020<p class="reference">Referenced by <a class="el" href="convolution9x9_8cl_source.xhtml#l00383">convolution9x9_static()</a>.</p>
1021
Anthony Barbier871448e2017-03-24 14:54:29 +00001022</div>
1023</div>
Jenkinsb9abeae2018-11-22 11:58:08 +00001024<a id="aa63067ca6091c7190c01fd037f5f2199"></a>
1025<h2 class="memtitle"><span class="permalink"><a href="#aa63067ca6091c7190c01fd037f5f2199">&#9670;&nbsp;</a></span>convolution9x9_static()</h2>
1026
Anthony Barbier871448e2017-03-24 14:54:29 +00001027<div class="memitem">
1028<div class="memproto">
1029 <table class="memname">
1030 <tr>
1031 <td class="memname">__kernel void convolution9x9_static </td>
1032 <td>(</td>
1033 <td class="paramtype">__global uchar *&#160;</td>
1034 <td class="paramname"><em>src_ptr</em>, </td>
1035 </tr>
1036 <tr>
1037 <td class="paramkey"></td>
1038 <td></td>
1039 <td class="paramtype">uint&#160;</td>
1040 <td class="paramname"><em>src_stride_x</em>, </td>
1041 </tr>
1042 <tr>
1043 <td class="paramkey"></td>
1044 <td></td>
1045 <td class="paramtype">uint&#160;</td>
1046 <td class="paramname"><em>src_step_x</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_y</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_y</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_offset_first_element_in_bytes</em>, </td>
1065 </tr>
1066 <tr>
1067 <td class="paramkey"></td>
1068 <td></td>
1069 <td class="paramtype">__global uchar *&#160;</td>
1070 <td class="paramname"><em>dst_ptr</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>dst_stride_x</em>, </td>
1077 </tr>
1078 <tr>
1079 <td class="paramkey"></td>
1080 <td></td>
1081 <td class="paramtype">uint&#160;</td>
1082 <td class="paramname"><em>dst_step_x</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_stride_y</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_step_y</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_offset_first_element_in_bytes</em>&#160;</td>
1101 </tr>
1102 <tr>
1103 <td></td>
1104 <td>)</td>
1105 <td></td><td></td>
1106 </tr>
1107 </table>
1108</div><div class="memdoc">
1109
1110<p>Apply a static 9x9 convolution matrix to a single channel U8 input image and output a single channel image including borders. </p>
Anthony Barbier8140e1e2017-12-14 23:48:46 +00001111<dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients(MAT0, MAT1, ... MAT80, SCALE), DATA_TYPE_OUT need to be passed at compile time:<br />
Anthony Barbier871448e2017-03-24 14:54:29 +00001112e.g. -DMAT0=0 -DMAT1=1, ... -DMAT80=80, -DSCALE=6, -DDATA_TYPE_OUT=int</dd></dl>
1113<dl class="params"><dt>Parameters</dt><dd>
1114 <table class="params">
1115 <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr>
1116 <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>
1117 <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>
1118 <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>
1119 <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>
1120 <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>
1121 <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U8, S16 </td></tr>
1122 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1123 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1124 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1125 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1126 <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1127 </table>
1128 </dd>
1129</dl>
1130
Jenkins514be652019-02-28 12:25:18 +00001131<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00383">383</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins4ba87db2019-05-23 17:11:51 +01001132<div class="fragment"><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160;{</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; short8 pixels = <a class="code" href="convolution9x9_8cl.xhtml#a3063e4ad24c780785326a1e0e776d5f5">convolution9x9</a>(&amp;<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>,</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13,</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; MAT14, MAT15, MAT16, MAT17, MAT18, MAT19, MAT20, MAT21, MAT22, MAT23, MAT24, MAT25,</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; MAT26, MAT27, MAT28, MAT29, MAT30, MAT31, MAT32, MAT33, MAT34, MAT35, MAT36, MAT37,</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; MAT38, MAT39, MAT40, MAT41, MAT42, MAT43, MAT44, MAT45, MAT46, MAT47, MAT48, MAT49,</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; MAT50, MAT51, MAT52, MAT53, MAT54, MAT55, MAT56, MAT57, MAT58, MAT59, MAT60, MAT61,</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; MAT62, MAT63, MAT64, MAT65, MAT66, MAT67, MAT68, MAT69, MAT70, MAT71, MAT72, MAT73,</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; MAT74, MAT75, MAT76, MAT77, MAT78, MAT79, MAT80, SCALE);</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; <span class="comment">// Store the result as is in dst</span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; vstore8(<a class="code" href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a>(pixels, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 8)), 0, (__global <a class="code" href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160;}</div><div class="ttc" id="convolution9x9_8cl_xhtml_ac06f3e24d3fffd3c465d8b2a6e7c985e"><div class="ttname"><a href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a></div><div class="ttdeci">#define DATA_TYPE_OUT</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00035">convolution9x9.cl:35</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001133<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">helpers.h:311</a></div></div>
Jenkins52ba29e2018-08-29 15:32:11 +00001134<div class="ttc" id="direct__convolution1x1_8cl_xhtml_a1f15728672380ade7a238f5e783d54d2"><div class="ttname"><a href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a></div><div class="ttdeci">#define CONVERT_SAT(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="direct__convolution1x1_8cl_source.xhtml#l00030">direct_convolution1x1.cl:30</a></div></div>
Jenkins514be652019-02-28 12:25:18 +00001135<div class="ttc" id="convolution9x9_8cl_xhtml_a3063e4ad24c780785326a1e0e776d5f5"><div class="ttname"><a href="convolution9x9_8cl.xhtml#a3063e4ad24c780785326a1e0e776d5f5">convolution9x9</a></div><div class="ttdeci">short8 convolution9x9(Image *src, const short mat0, const short mat1, const short mat2, const short mat3, const short mat4, const short mat5, const short mat6, const short mat7, const short mat8, const short mat9, const short mat10, const short mat11, const short mat12, const short mat13, const short mat14, const short mat15, const short mat16, const short mat17, const short mat18, const short mat19, const short mat20, const short mat21, const short mat22, const short mat23, const short mat24, const short mat25, const short mat26, const short mat27, const short mat28, const short mat29, const short mat30, const short mat31, const short mat32, const short mat33, const short mat34, const short mat35, const short mat36, const short mat37, const short mat38, const short mat39, const short mat40, const short mat41, const short mat42, const short mat43, const short mat44, const short mat45, const short mat46, const short mat47, const short mat48, const short mat49, const short mat50, const short mat51, const short mat52, const short mat53, const short mat54, const short mat55, const short mat56, const short mat57, const short mat58, const short mat59, const short mat60, const short mat61, const short mat62, const short mat63, const short mat64, const short mat65, const short mat66, const short mat67, const short mat68, const short mat69, const short mat70, const short mat71, const short mat72, const short mat73, const short mat74, const short mat75, const short mat76, const short mat77, const short mat78, const short mat79, const short mat80, uint scale)</div><div class="ttdoc">Apply a 9x9 convolution matrix to a single channel U8 input image and return the result.</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00253">convolution9x9.cl:253</a></div></div>
1136<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001137<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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00349">helpers.h:349</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +01001138<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001139<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001140</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +00001141<p class="reference">References <a class="el" href="direct__convolution1x1_8cl_source.xhtml#l00030">CONVERT_SAT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00253">convolution9x9()</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00035">DATA_TYPE_OUT</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +00001142
Anthony Barbier871448e2017-03-24 14:54:29 +00001143</div>
1144</div>
Jenkinsb9abeae2018-11-22 11:58:08 +00001145<a id="ab34cfd0b9595e0cc56a8d8f72167183b"></a>
1146<h2 class="memtitle"><span class="permalink"><a href="#ab34cfd0b9595e0cc56a8d8f72167183b">&#9670;&nbsp;</a></span>convolution_separable1x9_static()</h2>
1147
Anthony Barbier871448e2017-03-24 14:54:29 +00001148<div class="memitem">
1149<div class="memproto">
1150 <table class="memname">
1151 <tr>
1152 <td class="memname">__kernel void convolution_separable1x9_static </td>
1153 <td>(</td>
1154 <td class="paramtype">__global uchar *&#160;</td>
1155 <td class="paramname"><em>src_ptr</em>, </td>
1156 </tr>
1157 <tr>
1158 <td class="paramkey"></td>
1159 <td></td>
1160 <td class="paramtype">uint&#160;</td>
1161 <td class="paramname"><em>src_stride_x</em>, </td>
1162 </tr>
1163 <tr>
1164 <td class="paramkey"></td>
1165 <td></td>
1166 <td class="paramtype">uint&#160;</td>
1167 <td class="paramname"><em>src_step_x</em>, </td>
1168 </tr>
1169 <tr>
1170 <td class="paramkey"></td>
1171 <td></td>
1172 <td class="paramtype">uint&#160;</td>
1173 <td class="paramname"><em>src_stride_y</em>, </td>
1174 </tr>
1175 <tr>
1176 <td class="paramkey"></td>
1177 <td></td>
1178 <td class="paramtype">uint&#160;</td>
1179 <td class="paramname"><em>src_step_y</em>, </td>
1180 </tr>
1181 <tr>
1182 <td class="paramkey"></td>
1183 <td></td>
1184 <td class="paramtype">uint&#160;</td>
1185 <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td>
1186 </tr>
1187 <tr>
1188 <td class="paramkey"></td>
1189 <td></td>
1190 <td class="paramtype">__global uchar *&#160;</td>
1191 <td class="paramname"><em>dst_ptr</em>, </td>
1192 </tr>
1193 <tr>
1194 <td class="paramkey"></td>
1195 <td></td>
1196 <td class="paramtype">uint&#160;</td>
1197 <td class="paramname"><em>dst_stride_x</em>, </td>
1198 </tr>
1199 <tr>
1200 <td class="paramkey"></td>
1201 <td></td>
1202 <td class="paramtype">uint&#160;</td>
1203 <td class="paramname"><em>dst_step_x</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>dst_stride_y</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>dst_step_y</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>dst_offset_first_element_in_bytes</em>&#160;</td>
1222 </tr>
1223 <tr>
1224 <td></td>
1225 <td>)</td>
1226 <td></td><td></td>
1227 </tr>
1228 </table>
1229</div><div class="memdoc">
1230
1231<p>Apply a 1x9 static convolution matrix to a single channel U8 input image and output a single temporary channel image. </p>
Anthony Barbier8140e1e2017-12-14 23:48:46 +00001232<dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients (MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8) and DATA_TYPE need to be passed at compile time:<br />
Anthony Barbier871448e2017-03-24 14:54:29 +00001233e.g. -DMAT0=7 -DMAT1=8, ... -DMAT8=8, -DCOMPUTE_TYPE=int</dd></dl>
1234<dl class="params"><dt>Parameters</dt><dd>
1235 <table class="params">
1236 <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr>
1237 <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>
1238 <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>
1239 <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>
1240 <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>
1241 <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>
1242 <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U16, S16, S32 </td></tr>
1243 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1244 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1245 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1246 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1247 <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1248 </table>
1249 </dd>
1250</dl>
1251
Jenkins514be652019-02-28 12:25:18 +00001252<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00314">314</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins0e205f72019-11-28 16:53:35 +00001253<div class="fragment"><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;{</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; <span class="comment">// Output pixels</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; pixels = <a class="code" href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(&amp;<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -4, 0), MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8);</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; vstore8(pixels, 0, (__global <a class="code" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160;}</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div>
1254<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">helpers.h:311</a></div></div>
Jenkinsb9abeae2018-11-22 11:58:08 +00001255<div class="ttc" id="convolution9x9_8cl_xhtml_a4dee2ac27c2b32072c6f88998be20f77"><div class="ttname"><a href="convolution9x9_8cl.xhtml#a4dee2ac27c2b32072c6f88998be20f77">convolution1x9</a></div><div class="ttdeci">short8 convolution1x9(__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short left4_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff, const short right4_coeff)</div><div class="ttdoc">Compute a 1D horizontal convolution of size 9 for 8 bytes assuming the input is made of 1 channel of ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00054">convolution9x9.cl:54</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001256<div class="ttc" id="convolution9x9_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00027">convolution9x9.cl:27</a></div></div>
Jenkins514be652019-02-28 12:25:18 +00001257<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001258<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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00349">helpers.h:349</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +01001259<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001260<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001261</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +00001262<p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00054">convolution1x9()</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +00001263
Anthony Barbier871448e2017-03-24 14:54:29 +00001264</div>
1265</div>
Jenkinsb9abeae2018-11-22 11:58:08 +00001266<a id="ae1941d028c5183ce9c021a8428dbc494"></a>
1267<h2 class="memtitle"><span class="permalink"><a href="#ae1941d028c5183ce9c021a8428dbc494">&#9670;&nbsp;</a></span>convolution_separable9x1_static()</h2>
1268
Anthony Barbier871448e2017-03-24 14:54:29 +00001269<div class="memitem">
1270<div class="memproto">
1271 <table class="memname">
1272 <tr>
1273 <td class="memname">__kernel void convolution_separable9x1_static </td>
1274 <td>(</td>
1275 <td class="paramtype">__global uchar *&#160;</td>
1276 <td class="paramname"><em>src_ptr</em>, </td>
1277 </tr>
1278 <tr>
1279 <td class="paramkey"></td>
1280 <td></td>
1281 <td class="paramtype">uint&#160;</td>
1282 <td class="paramname"><em>src_stride_x</em>, </td>
1283 </tr>
1284 <tr>
1285 <td class="paramkey"></td>
1286 <td></td>
1287 <td class="paramtype">uint&#160;</td>
1288 <td class="paramname"><em>src_step_x</em>, </td>
1289 </tr>
1290 <tr>
1291 <td class="paramkey"></td>
1292 <td></td>
1293 <td class="paramtype">uint&#160;</td>
1294 <td class="paramname"><em>src_stride_y</em>, </td>
1295 </tr>
1296 <tr>
1297 <td class="paramkey"></td>
1298 <td></td>
1299 <td class="paramtype">uint&#160;</td>
1300 <td class="paramname"><em>src_step_y</em>, </td>
1301 </tr>
1302 <tr>
1303 <td class="paramkey"></td>
1304 <td></td>
1305 <td class="paramtype">uint&#160;</td>
1306 <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td>
1307 </tr>
1308 <tr>
1309 <td class="paramkey"></td>
1310 <td></td>
1311 <td class="paramtype">__global uchar *&#160;</td>
1312 <td class="paramname"><em>dst_ptr</em>, </td>
1313 </tr>
1314 <tr>
1315 <td class="paramkey"></td>
1316 <td></td>
1317 <td class="paramtype">uint&#160;</td>
1318 <td class="paramname"><em>dst_stride_x</em>, </td>
1319 </tr>
1320 <tr>
1321 <td class="paramkey"></td>
1322 <td></td>
1323 <td class="paramtype">uint&#160;</td>
1324 <td class="paramname"><em>dst_step_x</em>, </td>
1325 </tr>
1326 <tr>
1327 <td class="paramkey"></td>
1328 <td></td>
1329 <td class="paramtype">uint&#160;</td>
1330 <td class="paramname"><em>dst_stride_y</em>, </td>
1331 </tr>
1332 <tr>
1333 <td class="paramkey"></td>
1334 <td></td>
1335 <td class="paramtype">uint&#160;</td>
1336 <td class="paramname"><em>dst_step_y</em>, </td>
1337 </tr>
1338 <tr>
1339 <td class="paramkey"></td>
1340 <td></td>
1341 <td class="paramtype">uint&#160;</td>
1342 <td class="paramname"><em>dst_offset_first_element_in_bytes</em>&#160;</td>
1343 </tr>
1344 <tr>
1345 <td></td>
1346 <td>)</td>
1347 <td></td><td></td>
1348 </tr>
1349 </table>
1350</div><div class="memdoc">
1351
1352<p>Apply a 9x1 static convolution matrix to a single channel U8 input image and output a single channel image. </p>
Anthony Barbier8140e1e2017-12-14 23:48:46 +00001353<dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients (MAT9, MAT10, ... MAT17, SCALE), COMPUTE_TYPE and DATA_TYPE_OUT need to be passed at compile time:<br />
Anthony Barbier871448e2017-03-24 14:54:29 +00001354e.g. -DMAT9=9 -DMAT10=10, ... -DMAT17=17, -DSCALE=6, -DCOMPUTE_TYPE=int, -DDATA_TYPE_OUT=int</dd></dl>
1355<dl class="params"><dt>Parameters</dt><dd>
1356 <table class="params">
1357 <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U16, S16, S32 </td></tr>
1358 <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>
1359 <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>
1360 <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>
1361 <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>
1362 <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>
1363 <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U8, S16 </td></tr>
1364 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
1365 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
1366 <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
1367 <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
1368 <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
1369 </table>
1370 </dd>
1371</dl>
1372
Jenkins514be652019-02-28 12:25:18 +00001373<p class="definition">Definition at line <a class="el" href="convolution9x9_8cl_source.xhtml#l00347">347</a> of file <a class="el" href="convolution9x9_8cl_source.xhtml">convolution9x9.cl</a>.</p>
Jenkins4ba87db2019-05-23 17:11:51 +01001374<div class="fragment"><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160;{</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160;</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <span class="comment">// Output pixels</span></div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; pixels = <a class="code" href="convolution9x9_8cl.xhtml#ae8ed083f963d8f868df868c090062877">convolution9x1</a>(&amp;<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, MAT9, MAT10, MAT11, MAT12, MAT13, MAT14, MAT15, MAT16, MAT17);</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="comment">// Divide by the scale</span></div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; pixels = pixels / (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))SCALE;</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; vstore8(<a class="code" href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a>(pixels, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 8)), 0, (__global <a class="code" href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160;}</div><div class="ttc" id="convolution9x9_8cl_xhtml_ac06f3e24d3fffd3c465d8b2a6e7c985e"><div class="ttname"><a href="convolution9x9_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a></div><div class="ttdeci">#define DATA_TYPE_OUT</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00035">convolution9x9.cl:35</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001375<div class="ttc" id="convolution9x9_8cl_xhtml_ae8ed083f963d8f868df868c090062877"><div class="ttname"><a href="convolution9x9_8cl.xhtml#ae8ed083f963d8f868df868c090062877">convolution9x1</a></div><div class="ttdeci">int8 convolution9x1(Image *src, const short up1_coeff, const short up2_coeff, const short up3_coeff, const short up4_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff, const short down3_coeff, const short down4_coeff)</div><div class="ttdoc">Compute a 1D vertical convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00108">convolution9x9.cl:108</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001376<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">helpers.h:311</a></div></div>
Jenkins52ba29e2018-08-29 15:32:11 +00001377<div class="ttc" id="direct__convolution1x1_8cl_xhtml_a1f15728672380ade7a238f5e783d54d2"><div class="ttname"><a href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a></div><div class="ttdeci">#define CONVERT_SAT(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="direct__convolution1x1_8cl_source.xhtml#l00030">direct_convolution1x1.cl:30</a></div></div>
Jenkins514be652019-02-28 12:25:18 +00001378<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001379<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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00349">helpers.h:349</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001380<div class="ttc" id="convolution9x9_8cl_xhtml_a26babb0c719990ecbdf3abc6de920875"><div class="ttname"><a href="convolution9x9_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a></div><div class="ttdeci">#define COMPUTE_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution9x9_8cl_source.xhtml#l00031">convolution9x9.cl:31</a></div></div>
Jenkins975dfe12019-09-02 11:47:54 +01001381<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure &amp; src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div>
Jenkins0e205f72019-11-28 16:53:35 +00001382<div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div>
Anthony Barbier871448e2017-03-24 14:54:29 +00001383</div><!-- fragment -->
Jenkins0e205f72019-11-28 16:53:35 +00001384<p class="reference">References <a class="el" href="convolution9x9_8cl_source.xhtml#l00031">COMPUTE_TYPE</a>, <a class="el" href="direct__convolution1x1_8cl_source.xhtml#l00030">CONVERT_SAT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00108">convolution9x1()</a>, <a class="el" href="convolution9x9_8cl_source.xhtml#l00035">DATA_TYPE_OUT</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p>
Jenkins514be652019-02-28 12:25:18 +00001385
Anthony Barbier871448e2017-03-24 14:54:29 +00001386</div>
1387</div>
1388</div><!-- contents -->
1389</div><!-- doc-content -->
1390<!-- start footer part -->
1391<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1392 <ul>
Anthony Barbier8140e1e2017-12-14 23:48:46 +00001393 <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="convolution9x9_8cl.xhtml">convolution9x9.cl</a></li>
Jenkins7f09cf72020-01-22 18:08:16 +00001394 <li class="footer">Generated on Wed Jan 22 2020 18:07:47 for Compute Library by
Anthony Barbier871448e2017-03-24 14:54:29 +00001395 <a href="http://www.doxygen.org/index.html">
Jenkins514be652019-02-28 12:25:18 +00001396 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
Anthony Barbier871448e2017-03-24 14:54:29 +00001397 </ul>
1398</div>
1399</body>
1400</html>