<?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 Re:GradientVectorSobel doesn't work for signed Ipp16s Source Images in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1392276#M28045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Jun 2022 06:14:56 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2022-06-14T06:14:56Z</dc:date>
    <item>
      <title>GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1384104#M28005</link>
      <description>&lt;P&gt;When calling&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ippiGradientVectorSobel_16s32f_C1R&lt;/FONT&gt; the source image values are seemingly interpreted as unsigned values instead of being interpreted as signed values.&lt;/P&gt;
&lt;P&gt;What did I do? I tried to use&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ippiGradientVectorSobel &lt;/FONT&gt;to compute the 2nd partial derivatives. First I applied&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ippiGradientVectorPrewitt_8u16s_C1R&amp;nbsp;&lt;/FONT&gt;on the source image to get two 16-bit images, containing the signed gradient in x- and in y-direction. Afterwards I applied &lt;FONT face="courier new,courier"&gt;ippiGradientVectorSobel_16s32f_C1R&amp;nbsp;&lt;/FONT&gt;on the resulting signed 16 bit images, expecting the four resulting images to contain the 2nd partial derivatives as signed float values.&lt;/P&gt;
&lt;P&gt;Unfortunately, there seems to be some confusion with the sign of the input values. Example:&lt;/P&gt;
&lt;P&gt;The 16 bit source image passed to &lt;FONT face="courier new,courier"&gt;ippiGradientVectorSobel_16s32f_C1R&lt;/FONT&gt; contains at a location the following values:&lt;/P&gt;
&lt;P&gt;|15&amp;nbsp; 5&amp;nbsp; -3|&lt;/P&gt;
&lt;P&gt;|20&amp;nbsp; 6&amp;nbsp; -4|&lt;/P&gt;
&lt;P&gt;|20&amp;nbsp; 7&amp;nbsp; -4|&lt;/P&gt;
&lt;P&gt;The Sobel operator should compute 15 + 2 * 20 + 20 -(-3) -(-4) -(-4) = 90. However, the result computed by&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ippiGradientVectorSobel_16s32f_C1R&lt;/FONT&gt; is -262054. This would be the result, if the negative values were interpreted as unsigned short values (replace -3 by (2^16) - 3 =&amp;nbsp; 65533 and -4 by (2^16) - 4 = 65532):&lt;/P&gt;
&lt;P&gt;15 + 2 * 20 + 20 - 65533 - 2 * 65532 - 65532 =&amp;nbsp;-262054&lt;/P&gt;
&lt;P&gt;At places where only positives values are within the mask, the result is as expected correct.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1384104#M28005</guid>
      <dc:creator>Simon_77</dc:creator>
      <dc:date>2022-05-13T09:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1387054#M28020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting on Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share us a IPP version, sample reproducer and steps(if any), so that we could try reproducing the issue at our end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 04:54:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1387054#M28020</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-25T04:54:52Z</dc:date>
    </item>
    <item>
      <title>Re:GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1388971#M28027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;A gentle reminder:&lt;/P&gt;&lt;P&gt;Could you please share us a IPP version, sample reproducer and steps(if any), so that we could try reproducing the issue at our end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2022 17:17:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1388971#M28027</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-31T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1389209#M28029</link>
      <description>&lt;P&gt;I've tried to write a minimal reproducer, but the problem did no longer occur with it. When passing a large image to the function, however, the bug persists.&lt;/P&gt;
&lt;P&gt;Anyway, I've got an idea, where the problem might lie: the memory of the image I had passed was not necessarily 64-byte aligned, which is required for at leat some IPP functions as I read. I will try to enforce a 64-byte alignment and check, if the problems still occurs.&lt;/P&gt;
&lt;P&gt;The used version is still&amp;nbsp;&lt;SPAN&gt;2018.0.3. We will update to the current version of IPP on one of the next days.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:50:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1389209#M28029</guid>
      <dc:creator>Simon_77</dc:creator>
      <dc:date>2022-06-01T09:50:15Z</dc:date>
    </item>
    <item>
      <title>Re:GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1391012#M28039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I will try to enforce a 64-byte alignment and check, if the problems still occurs.&lt;/P&gt;&lt;P&gt;Sure, Please let us know if issue persists with above check or kindly let us know if issue exists even after updating to the latest IPP version.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2022 16:32:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1391012#M28039</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-06-08T16:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1391566#M28040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I found the reason for the wrong results. It was not causes by IPP. I accidentally branched into&amp;nbsp;ippiGradientVectorSobel_16&lt;STRONG&gt;u&lt;/STRONG&gt;32f_C1R instead of&amp;nbsp;ippiGradientVectorSobel_16&lt;STRONG&gt;s&lt;/STRONG&gt;32f_C1R. Order of operations, had to add a pair of brackets...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:22:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1391566#M28040</guid>
      <dc:creator>Simon_77</dc:creator>
      <dc:date>2022-06-10T07:22:52Z</dc:date>
    </item>
    <item>
      <title>Re:GradientVectorSobel doesn't work for signed Ipp16s Source Images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1392276#M28045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:14:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/GradientVectorSobel-doesn-t-work-for-signed-Ipp16s-Source-Images/m-p/1392276#M28045</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-06-14T06:14:56Z</dc:date>
    </item>
  </channel>
</rss>

