<?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 Resize on planar data with IPP9.0 in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Resize-on-planar-data-with-IPP9-0/m-p/1173820#M27006</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I find that ippiResize_8u_P3R is not there any more, which is currently used in our project. Therefore, I try to find an replacement, but from the website of Intel, I could only find the example to use ippiResizeLanczos_8u_C3R.&lt;/P&gt;&lt;P&gt;From the developer reference of IPP9.0, I found that the substitution of P3R (e.g. ippiResizeSqrPixel_16s_P3R) &amp;nbsp; is &lt;STRONG&gt;Use C1R flavor for each plane, &lt;/STRONG&gt;can I use such method for replace the ippiResize_8u_P3R? Is there any example for showing how to&amp;nbsp; &lt;STRONG&gt;Use C1R flavor for each plane?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Ning&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 09:26:22 GMT</pubDate>
    <dc:creator>Liu__Ning</dc:creator>
    <dc:date>2019-06-28T09:26:22Z</dc:date>
    <item>
      <title>Resize on planar data with IPP9.0</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Resize-on-planar-data-with-IPP9-0/m-p/1173820#M27006</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I find that ippiResize_8u_P3R is not there any more, which is currently used in our project. Therefore, I try to find an replacement, but from the website of Intel, I could only find the example to use ippiResizeLanczos_8u_C3R.&lt;/P&gt;&lt;P&gt;From the developer reference of IPP9.0, I found that the substitution of P3R (e.g. ippiResizeSqrPixel_16s_P3R) &amp;nbsp; is &lt;STRONG&gt;Use C1R flavor for each plane, &lt;/STRONG&gt;can I use such method for replace the ippiResize_8u_P3R? Is there any example for showing how to&amp;nbsp; &lt;STRONG&gt;Use C1R flavor for each plane?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Ning&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 09:26:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Resize-on-planar-data-with-IPP9-0/m-p/1173820#M27006</guid>
      <dc:creator>Liu__Ning</dc:creator>
      <dc:date>2019-06-28T09:26:22Z</dc:date>
    </item>
    <item>
      <title>Or can I first use the</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Resize-on-planar-data-with-IPP9-0/m-p/1173821#M27007</link>
      <description>&lt;P&gt;Or can I first use the following approach?&lt;/P&gt;&lt;P&gt;ippiCopy_8u_P3C3R&lt;/P&gt;&lt;P&gt;ippiResizeLinear_8u_C3R&lt;/P&gt;&lt;P&gt;ippiCopy_8u_C3P3R&lt;/P&gt;&lt;P&gt;Code is here,&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;srcStepTmp = src-&amp;gt;widthStep * 3;
		pSrcTmp = iplMalloc(srcStepTmp * srcRoi.height);
		dstStepTmp = dst-&amp;gt;widthStep * 3;
		pDstTmp = iplMalloc(dstStepTmp * dstRoiSize.height);
         for( i=0; i&amp;lt;3; i++ ) {
            pSrcPlane&lt;I&gt; = pSrc;
            pDstPlane&lt;I&gt; = pDst;
            pSrc += planeSize1;
            pDst += planeSize2;
         }
		 ippiCopy_8u_P3C3R(pSrcPlane, src-&amp;gt;widthStep, pSrcTmp, srcStepTmp, roi);
		
			 ippiResizeGetSize_8u(srcSize, dstRoiSize, ippLinear, 0, &amp;amp;specSize, &amp;amp;initSize);
			 pInitBuf = ippsMalloc_8u(initSize);
			 pSpec = (IppiResizeSpec_32f*)ippsMalloc_8u(specSize);
			 ippiResizeLinearInit_8u(srcSize, dstRoiSize, pSpec);
			 ippiResizeGetBufferSize_8u(pSpec, dstRoiSize, dst-&amp;gt;nChannels, &amp;amp;bufSize);
			 pBuffer = ippsMalloc_8u(bufSize);
			 ippiResizeLinear_8u_C3R(pSrcTmp, srcStepTmp, pDstTmp, dstStepTmp, dstOffset, dstRoiSize, ippBorderRepl, borderValue, pSpec, pBuffer);
			
		 ippiCopy_8u_C3P3R(pDstTmp, dstStepTmp, pDstPlane, dst-&amp;gt;widthStep, dstRoiSize);

		 iplFree(pDstPlane);
		 iplFree(pSrcPlane);&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there anything wrongly implemented?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 10:25:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Resize-on-planar-data-with-IPP9-0/m-p/1173821#M27007</guid>
      <dc:creator>Liu__Ning</dc:creator>
      <dc:date>2019-06-28T10:25:07Z</dc:date>
    </item>
  </channel>
</rss>

