<?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 ippiResize produce different result than cvResize using the same interpolation method in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909533#M13969</link>
    <description>I found that cvResize works different way while Intel IPP is detected.&lt;BR /&gt;&lt;BR /&gt;Please take a look into attached samples:&lt;BR /&gt;0.bmp - original image&lt;BR /&gt;1.bmp - resized with cvResize without using Intell IPP&lt;BR /&gt;2.bmp - resized with cvResize with using Intell IPP&lt;BR /&gt;3.bmp - resized using ippiResize_8u_C1R with the same interpolation algorithm &lt;BR /&gt; as used for cvResize for image 2.bmp&lt;BR /&gt;&lt;BR /&gt;2 and 3.bmp are exactly same, but 1.bmp differs from them. Probably the reason &lt;BR /&gt;in border mode? But, I can't found any notices how I may specify it for ippiResize.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please advise, how I may get exact the same result as I have with OpenCV using &lt;BR /&gt;Intel IPP.&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;As input data for both code samples I have CvRect on anImage.&lt;BR /&gt;&lt;BR /&gt;Source code for cvResize:&lt;BR /&gt;
&lt;PRE&gt;[cpp]CvMat *tMat;&lt;BR /&gt;CvMat submat;&lt;BR /&gt;	&lt;BR /&gt;tMat = cvGetSubRect((IplImage *)anImage, &amp;amp;submat, cvrect);&lt;BR /&gt;cvResize(tMat, (IplImage*)image-&amp;gt;img_base, CV_INTER_CUBIC);[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;Source code for ippiResize:&lt;BR /&gt;
&lt;PRE&gt;[cpp]IppStatus ippStatus;&lt;BR /&gt;IplImage *srcImage;&lt;BR /&gt;IppiSize srcSize, dstSize;&lt;BR /&gt;int srcWideStep, dstWideStep;&lt;BR /&gt;double xFactor, yFactor;&lt;BR /&gt;&lt;BR /&gt;dstSize.width = image-&amp;gt;img_width;&lt;BR /&gt;dstSize.height = image-&amp;gt;img_height;&lt;BR /&gt;dstWideStep = image-&amp;gt;img_width * image-&amp;gt;img_bpp / 8;&lt;BR /&gt;&lt;BR /&gt;srcImage = (IplImage *)anImage;&lt;BR /&gt;srcSize.width = srcImage-&amp;gt;width;&lt;BR /&gt;srcSize.height = srcImage-&amp;gt;height;&lt;BR /&gt;srcWideStep = srcImage-&amp;gt;widthStep;&lt;BR /&gt;&lt;BR /&gt;assert(0 != cvrect.width &amp;amp;&amp;amp; 0 != cvrect.height);&lt;BR /&gt;&lt;BR /&gt;xFactor = (double)dstSize.width / cvrect.width;&lt;BR /&gt;yFactor = (double)dstSize.height / cvrect.height;&lt;BR /&gt;&lt;BR /&gt;ippStatus = ippiResize_8u_C1R(&lt;BR /&gt;	(Ipp8u*)srcImage-&amp;gt;imageData, srcSize, srcWideStep, *((IppiRect *)&amp;amp;cvrect),&lt;BR /&gt;	(Ipp8u*)((IplImage *)image-&amp;gt;img_base)-&amp;gt;imageData, dstWideStep, dstSize,&lt;BR /&gt;	xFactor, yFactor, IPPI_INTER_CUBIC &lt;BR /&gt;);&lt;BR /&gt;assert(ippStsNoErr == ippStatus);&lt;BR /&gt;[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;System specifications:&lt;BR /&gt;
&lt;DIV style="text-align: left;"&gt;OpenCV - 1.1&lt;BR /&gt;Intel IPP - 6.0.2.074&lt;BR /&gt;&lt;BR /&gt;Core 2 Duo T9300&lt;BR /&gt;Windows Vista SP1&lt;BR /&gt;Visual Studio 2005&lt;/DIV&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 06 May 2009 08:06:17 GMT</pubDate>
    <dc:creator>Yuriy</dc:creator>
    <dc:date>2009-05-06T08:06:17Z</dc:date>
    <item>
      <title>ippiResize produce different result than cvResize using the same interpolation method</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909533#M13969</link>
      <description>I found that cvResize works different way while Intel IPP is detected.&lt;BR /&gt;&lt;BR /&gt;Please take a look into attached samples:&lt;BR /&gt;0.bmp - original image&lt;BR /&gt;1.bmp - resized with cvResize without using Intell IPP&lt;BR /&gt;2.bmp - resized with cvResize with using Intell IPP&lt;BR /&gt;3.bmp - resized using ippiResize_8u_C1R with the same interpolation algorithm &lt;BR /&gt; as used for cvResize for image 2.bmp&lt;BR /&gt;&lt;BR /&gt;2 and 3.bmp are exactly same, but 1.bmp differs from them. Probably the reason &lt;BR /&gt;in border mode? But, I can't found any notices how I may specify it for ippiResize.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please advise, how I may get exact the same result as I have with OpenCV using &lt;BR /&gt;Intel IPP.&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;As input data for both code samples I have CvRect on anImage.&lt;BR /&gt;&lt;BR /&gt;Source code for cvResize:&lt;BR /&gt;
&lt;PRE&gt;[cpp]CvMat *tMat;&lt;BR /&gt;CvMat submat;&lt;BR /&gt;	&lt;BR /&gt;tMat = cvGetSubRect((IplImage *)anImage, &amp;amp;submat, cvrect);&lt;BR /&gt;cvResize(tMat, (IplImage*)image-&amp;gt;img_base, CV_INTER_CUBIC);[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;Source code for ippiResize:&lt;BR /&gt;
&lt;PRE&gt;[cpp]IppStatus ippStatus;&lt;BR /&gt;IplImage *srcImage;&lt;BR /&gt;IppiSize srcSize, dstSize;&lt;BR /&gt;int srcWideStep, dstWideStep;&lt;BR /&gt;double xFactor, yFactor;&lt;BR /&gt;&lt;BR /&gt;dstSize.width = image-&amp;gt;img_width;&lt;BR /&gt;dstSize.height = image-&amp;gt;img_height;&lt;BR /&gt;dstWideStep = image-&amp;gt;img_width * image-&amp;gt;img_bpp / 8;&lt;BR /&gt;&lt;BR /&gt;srcImage = (IplImage *)anImage;&lt;BR /&gt;srcSize.width = srcImage-&amp;gt;width;&lt;BR /&gt;srcSize.height = srcImage-&amp;gt;height;&lt;BR /&gt;srcWideStep = srcImage-&amp;gt;widthStep;&lt;BR /&gt;&lt;BR /&gt;assert(0 != cvrect.width &amp;amp;&amp;amp; 0 != cvrect.height);&lt;BR /&gt;&lt;BR /&gt;xFactor = (double)dstSize.width / cvrect.width;&lt;BR /&gt;yFactor = (double)dstSize.height / cvrect.height;&lt;BR /&gt;&lt;BR /&gt;ippStatus = ippiResize_8u_C1R(&lt;BR /&gt;	(Ipp8u*)srcImage-&amp;gt;imageData, srcSize, srcWideStep, *((IppiRect *)&amp;amp;cvrect),&lt;BR /&gt;	(Ipp8u*)((IplImage *)image-&amp;gt;img_base)-&amp;gt;imageData, dstWideStep, dstSize,&lt;BR /&gt;	xFactor, yFactor, IPPI_INTER_CUBIC &lt;BR /&gt;);&lt;BR /&gt;assert(ippStsNoErr == ippStatus);&lt;BR /&gt;[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;System specifications:&lt;BR /&gt;
&lt;DIV style="text-align: left;"&gt;OpenCV - 1.1&lt;BR /&gt;Intel IPP - 6.0.2.074&lt;BR /&gt;&lt;BR /&gt;Core 2 Duo T9300&lt;BR /&gt;Windows Vista SP1&lt;BR /&gt;Visual Studio 2005&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 08:06:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909533#M13969</guid>
      <dc:creator>Yuriy</dc:creator>
      <dc:date>2009-05-06T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: ippiResize produce different result than cvResize using the</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909534#M13970</link>
      <description>Using ippiResizeSqrPixel I got more similar results to native cvResize, but it is still different. Please check attached file.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 12:10:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909534#M13970</guid>
      <dc:creator>Yuriy</dc:creator>
      <dc:date>2009-05-06T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: ippiResize produce different result than cvResize using the</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909535#M13971</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I would recommend you to look through IPP documentation for details on how to use IPP Resize functions. You also may find discussion thread with attached example code on this forum.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2009 11:46:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-produce-different-result-than-cvResize-using-the-same/m-p/909535#M13971</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-05-07T11:46:51Z</dc:date>
    </item>
  </channel>
</rss>

