<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Documentation of FilterColumn is wrong in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Documentation-of-FilterColumn-is-wrong/m-p/900316#M12650</link>
    <description>The example shown in the documentation for ippiFilterColumn is wrong for many reasons:&lt;BR /&gt;&lt;BR /&gt;1.- the border is not being considered. As shown in the example, memory outside the allocated space will be read. This means also that the first and last rows of the destination image will not contain meaningful information.&lt;BR /&gt;2.- According to the result you are showing, yAnchor must be 1 and not 2.&lt;BR /&gt;3.- The example is terrible bad, because you are using 8u as data type but the kernel filter has a negative value.&lt;BR /&gt;4.- The result should be 0 everywhere, since you are using "Sobel" kernel and the data does not contain any "gradient" in vertical direction.&lt;BR /&gt;&lt;BR /&gt;Something more appropriate will be:&lt;BR /&gt;&lt;BR /&gt;______________________________________________&lt;BR /&gt;Ipp16s src[4*3] = {&lt;BR /&gt; 1, 0, 0, 4,&lt;BR /&gt; 0, 0, 3, 4,&lt;BR /&gt; 0, 2, 3, 1&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Ipp16s dst[4*3] =&lt;BR /&gt; {&lt;BR /&gt; 0, 0, 0, 0,&lt;BR /&gt; 0, 0, 0, 0,&lt;BR /&gt; 0, 0, 0, 0 &lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt;IppiSize srcRoi;&lt;BR /&gt;srcRoi.width = 4;&lt;BR /&gt;srcRoi.height = 1;&lt;BR /&gt;Ipp32s kern[] = { 1, 2, -3 };&lt;BR /&gt;int kernelSize = 3;&lt;BR /&gt;int yAnchor = 1;&lt;BR /&gt;int divisor = 1;&lt;BR /&gt; &lt;BR /&gt;ippiFilterColumn_16s_C1R ( src+4, 4*sizeof(Ipp16s), dst+4, 4*sizeof(Ipp16s), srcRoi, kern, kernelSize,&lt;BR /&gt; yAnchor, divisor);&lt;BR /&gt; &lt;BR /&gt;for (int i = 0; i &amp;lt; 3; ++i)&lt;BR /&gt;{&lt;BR /&gt; for (int j = 0; j &amp;lt; 4; ++j)&lt;BR /&gt; {&lt;BR /&gt; printf("dst[%i][%i] = %i
",&lt;BR /&gt; i, j, dst[i*4+j]);&lt;BR /&gt; } &lt;BR /&gt;}&lt;BR /&gt;______________________________________________&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;dst[0][0] = 0&lt;BR /&gt;dst[0][1] = 0&lt;BR /&gt;dst[0][2] = 0&lt;BR /&gt;dst[0][3] = 0&lt;BR /&gt;dst[1][0] = -3&lt;BR /&gt;dst[1][1] = 2&lt;BR /&gt;dst[1][2] = 9&lt;BR /&gt;dst[1][3] = -3&lt;BR /&gt;dst[2][0] = 0&lt;BR /&gt;dst[2][1] = 0&lt;BR /&gt;dst[2][2] = 0&lt;BR /&gt;dst[2][3] = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hernn Badino&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Aug 2008 15:29:23 GMT</pubDate>
    <dc:creator>Hernßn_B_</dc:creator>
    <dc:date>2008-08-21T15:29:23Z</dc:date>
    <item>
      <title>Documentation of FilterColumn is wrong</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Documentation-of-FilterColumn-is-wrong/m-p/900316#M12650</link>
      <description>The example shown in the documentation for ippiFilterColumn is wrong for many reasons:&lt;BR /&gt;&lt;BR /&gt;1.- the border is not being considered. As shown in the example, memory outside the allocated space will be read. This means also that the first and last rows of the destination image will not contain meaningful information.&lt;BR /&gt;2.- According to the result you are showing, yAnchor must be 1 and not 2.&lt;BR /&gt;3.- The example is terrible bad, because you are using 8u as data type but the kernel filter has a negative value.&lt;BR /&gt;4.- The result should be 0 everywhere, since you are using "Sobel" kernel and the data does not contain any "gradient" in vertical direction.&lt;BR /&gt;&lt;BR /&gt;Something more appropriate will be:&lt;BR /&gt;&lt;BR /&gt;______________________________________________&lt;BR /&gt;Ipp16s src[4*3] = {&lt;BR /&gt; 1, 0, 0, 4,&lt;BR /&gt; 0, 0, 3, 4,&lt;BR /&gt; 0, 2, 3, 1&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Ipp16s dst[4*3] =&lt;BR /&gt; {&lt;BR /&gt; 0, 0, 0, 0,&lt;BR /&gt; 0, 0, 0, 0,&lt;BR /&gt; 0, 0, 0, 0 &lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt;IppiSize srcRoi;&lt;BR /&gt;srcRoi.width = 4;&lt;BR /&gt;srcRoi.height = 1;&lt;BR /&gt;Ipp32s kern[] = { 1, 2, -3 };&lt;BR /&gt;int kernelSize = 3;&lt;BR /&gt;int yAnchor = 1;&lt;BR /&gt;int divisor = 1;&lt;BR /&gt; &lt;BR /&gt;ippiFilterColumn_16s_C1R ( src+4, 4*sizeof(Ipp16s), dst+4, 4*sizeof(Ipp16s), srcRoi, kern, kernelSize,&lt;BR /&gt; yAnchor, divisor);&lt;BR /&gt; &lt;BR /&gt;for (int i = 0; i &amp;lt; 3; ++i)&lt;BR /&gt;{&lt;BR /&gt; for (int j = 0; j &amp;lt; 4; ++j)&lt;BR /&gt; {&lt;BR /&gt; printf("dst[%i][%i] = %i
",&lt;BR /&gt; i, j, dst[i*4+j]);&lt;BR /&gt; } &lt;BR /&gt;}&lt;BR /&gt;______________________________________________&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;dst[0][0] = 0&lt;BR /&gt;dst[0][1] = 0&lt;BR /&gt;dst[0][2] = 0&lt;BR /&gt;dst[0][3] = 0&lt;BR /&gt;dst[1][0] = -3&lt;BR /&gt;dst[1][1] = 2&lt;BR /&gt;dst[1][2] = 9&lt;BR /&gt;dst[1][3] = -3&lt;BR /&gt;dst[2][0] = 0&lt;BR /&gt;dst[2][1] = 0&lt;BR /&gt;dst[2][2] = 0&lt;BR /&gt;dst[2][3] = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hernn Badino&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 15:29:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Documentation-of-FilterColumn-is-wrong/m-p/900316#M12650</guid>
      <dc:creator>Hernßn_B_</dc:creator>
      <dc:date>2008-08-21T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation of FilterColumn is wrong</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Documentation-of-FilterColumn-is-wrong/m-p/900317#M12651</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;thanks for pointing to this. We will correct sample.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2008 16:34:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Documentation-of-FilterColumn-is-wrong/m-p/900317#M12651</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-08-27T16:34:50Z</dc:date>
    </item>
  </channel>
</rss>

