<?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 Help: Image Quality Problem when resize an image with ippiResizeSqrPixel_32f_C1R function in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-Image-Quality-Problem-when-resize-an-image-with/m-p/874305#M9320</link>
    <description>&lt;P&gt; &lt;IMG height="128" src="D:ProjectInterpolationPresentationref.bmp" width="128" /&gt; &lt;IMG height="128" src="D:ProjectInterpolationPresentationlanczos.bmp" width="128" /&gt;&lt;/P&gt;
&lt;P&gt; Figure1. Original image Figure2. resized with Lanczos method&lt;/P&gt;
&lt;P&gt;I am using Ipp6.0 version, The input and output image(Dicom image) only have one channel, 16bits per pixel. After Res ize with ippiResizeSqrPixel_32f_C1R function, the interpolated image obviously has much more noise than the original image with IPPI_INTER_LANCZOS, IPPI_INTER_CUBIC, IPPI_INTER_CUBIC2P_CATMULLROM. Especially for Lanczos method.&lt;/P&gt;
&lt;P&gt;Some parameters for my test: original image size: 512*512; ResizeFactor=2.0; pfImageIn, pfImageOut is a memory block allocated with new operator&lt;/P&gt;
&lt;P&gt;Here is part of my code, waiting for your help:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; int iColSrc = iImgCol; // original image's width&lt;BR /&gt; int iLinSrc = iImgLin; // original image's height&lt;BR /&gt; int iColDst = short((float)iColSrc * fResizeCol) ; // dest image's width&lt;BR /&gt; int iLinDst = short((float)iLinSrc * fResizeLin) ; // dest image's height&lt;STRONG&gt; &lt;BR /&gt;&lt;/STRONG&gt; IppiSize size = {iColSrc, iLinSrc};&lt;BR /&gt; IppiRect srect = { 0, 0, iColSrc, iLinSrc };&lt;BR /&gt; Ipp iRect drect = { 0, 0, iColDst, iLinDst };&lt;BR /&gt; Ipp8u *buf;&lt;BR /&gt; int bufsize;&lt;BR /&gt; &lt;BR /&gt; //calculation of work buffer size&lt;BR /&gt; ippStatus = ippiResizeGetBufSize(srect,drect,1,iInterType,&amp;amp;bufsize);&lt;BR /&gt; buf = ippsM alloc_8u(bufsize);&lt;BR /&gt; if(NULL==buf)&lt;BR /&gt; {&lt;BR /&gt; iErrType = MemoryErr;&lt;BR /&gt; return false;&lt;BR /&gt; }&lt;BR /&gt; // resize m_pfImageIn &lt;BR /&gt; ippStatus = ippiResizeSqrPixel_32f_C1R(pfImageIn, size, iColSrc*(int)(siz eof(Ipp32f)), srect,&lt;BR /&gt; pfImageOut, iColDst*(int)(sizeof(Ipp32f)), drect,&lt;BR /&gt; fResizeCol, fResizeLin, 0, 0, iInterType, buf);&lt;/P&gt;
&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Mar 2010 07:32:09 GMT</pubDate>
    <dc:creator>kangscut</dc:creator>
    <dc:date>2010-03-09T07:32:09Z</dc:date>
    <item>
      <title>Help: Image Quality Problem when resize an image with ippiResizeSqrPixel_32f_C1R function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-Image-Quality-Problem-when-resize-an-image-with/m-p/874305#M9320</link>
      <description>&lt;P&gt; &lt;IMG height="128" src="D:ProjectInterpolationPresentationref.bmp" width="128" /&gt; &lt;IMG height="128" src="D:ProjectInterpolationPresentationlanczos.bmp" width="128" /&gt;&lt;/P&gt;
&lt;P&gt; Figure1. Original image Figure2. resized with Lanczos method&lt;/P&gt;
&lt;P&gt;I am using Ipp6.0 version, The input and output image(Dicom image) only have one channel, 16bits per pixel. After Res ize with ippiResizeSqrPixel_32f_C1R function, the interpolated image obviously has much more noise than the original image with IPPI_INTER_LANCZOS, IPPI_INTER_CUBIC, IPPI_INTER_CUBIC2P_CATMULLROM. Especially for Lanczos method.&lt;/P&gt;
&lt;P&gt;Some parameters for my test: original image size: 512*512; ResizeFactor=2.0; pfImageIn, pfImageOut is a memory block allocated with new operator&lt;/P&gt;
&lt;P&gt;Here is part of my code, waiting for your help:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; int iColSrc = iImgCol; // original image's width&lt;BR /&gt; int iLinSrc = iImgLin; // original image's height&lt;BR /&gt; int iColDst = short((float)iColSrc * fResizeCol) ; // dest image's width&lt;BR /&gt; int iLinDst = short((float)iLinSrc * fResizeLin) ; // dest image's height&lt;STRONG&gt; &lt;BR /&gt;&lt;/STRONG&gt; IppiSize size = {iColSrc, iLinSrc};&lt;BR /&gt; IppiRect srect = { 0, 0, iColSrc, iLinSrc };&lt;BR /&gt; Ipp iRect drect = { 0, 0, iColDst, iLinDst };&lt;BR /&gt; Ipp8u *buf;&lt;BR /&gt; int bufsize;&lt;BR /&gt; &lt;BR /&gt; //calculation of work buffer size&lt;BR /&gt; ippStatus = ippiResizeGetBufSize(srect,drect,1,iInterType,&amp;amp;bufsize);&lt;BR /&gt; buf = ippsM alloc_8u(bufsize);&lt;BR /&gt; if(NULL==buf)&lt;BR /&gt; {&lt;BR /&gt; iErrType = MemoryErr;&lt;BR /&gt; return false;&lt;BR /&gt; }&lt;BR /&gt; // resize m_pfImageIn &lt;BR /&gt; ippStatus = ippiResizeSqrPixel_32f_C1R(pfImageIn, size, iColSrc*(int)(siz eof(Ipp32f)), srect,&lt;BR /&gt; pfImageOut, iColDst*(int)(sizeof(Ipp32f)), drect,&lt;BR /&gt; fResizeCol, fResizeLin, 0, 0, iInterType, buf);&lt;/P&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Mar 2010 07:32:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-Image-Quality-Problem-when-resize-an-image-with/m-p/874305#M9320</guid>
      <dc:creator>kangscut</dc:creator>
      <dc:date>2010-03-09T07:32:09Z</dc:date>
    </item>
    <item>
      <title>Help: Image Quality Problem when resize an image with ippiResiz</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-Image-Quality-Problem-when-resize-an-image-with/m-p/874306#M9321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;somehow I do not see your images. Also wondering if you can test this with the latest version which is IPP 6.1 update 4?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2010 15:40:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-Image-Quality-Problem-when-resize-an-image-with/m-p/874306#M9321</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2010-03-10T15:40:55Z</dc:date>
    </item>
  </channel>
</rss>

