<?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 and ippiResizeCenter usage in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-and-ippiResizeCenter-usage/m-p/991133#M22326</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have several questions related to ippiResize and ippiResizeCenter.&lt;BR /&gt;&lt;BR /&gt;ippiResize_8u_C1R(const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcROI,&lt;BR /&gt;                                      Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,&lt;BR /&gt;                                      double xFactor, double yFactor, int interpolation)&lt;BR /&gt;&lt;BR /&gt;ippiResizeCenter_8u_C1R(const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcRoi,&lt;BR /&gt;&lt;BR /&gt;                                            Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,&lt;BR /&gt;&lt;BR /&gt;                                            double xFactor, double yFactor,&lt;BR /&gt;&lt;BR /&gt;                                            double xCenter, double yCenter, int interpolation);&lt;BR /&gt;&lt;BR /&gt;My question is essentially a question on coordinate systems used.&lt;BR /&gt;Let's start with ippiResize with roi= (0,0,width, height) and xScaleFactor=yScaleFactor=2. After scaling, the image will be of size (2 * width, 2 * height). My question is: is pixel (0, 0) at the top left corner of the scaled image?  Let me rephrase my question: when you specify a roi for a image, which can be srcROI for pSrc and destROI for pDest, it is always specified in the coordinate system attached to the associated image. Am I right?&lt;BR /&gt;In other words, if pSrc = srcROI = (0,0,128,128) and xScaleFactor=yScaleFactor=2 and pDestROI = (0,0,128,128), the result will be the top left quarter of the scaled image. Is my understanding right?   &lt;BR /&gt;&lt;BR /&gt;Now question for ippiResizeCenter. The Intel doc says:&lt;BR /&gt;&lt;BR /&gt;xCenter, yCenter Coordinates of the point that does not shift after resizing&lt;BR /&gt;&lt;BR /&gt;What does this mean? What coordinate system is used to specify xCenter and yXenter?  Why are they double instead of integer? I thought coordinates in an image are always pixel coordinates, which are always integer.&lt;BR /&gt;&lt;BR /&gt;Could somebody please enlighten me?  Thanks in advance.</description>
    <pubDate>Mon, 09 May 2005 09:32:16 GMT</pubDate>
    <dc:creator>axu</dc:creator>
    <dc:date>2005-05-09T09:32:16Z</dc:date>
    <item>
      <title>ippiResize and ippiResizeCenter usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-and-ippiResizeCenter-usage/m-p/991133#M22326</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have several questions related to ippiResize and ippiResizeCenter.&lt;BR /&gt;&lt;BR /&gt;ippiResize_8u_C1R(const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcROI,&lt;BR /&gt;                                      Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,&lt;BR /&gt;                                      double xFactor, double yFactor, int interpolation)&lt;BR /&gt;&lt;BR /&gt;ippiResizeCenter_8u_C1R(const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcRoi,&lt;BR /&gt;&lt;BR /&gt;                                            Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,&lt;BR /&gt;&lt;BR /&gt;                                            double xFactor, double yFactor,&lt;BR /&gt;&lt;BR /&gt;                                            double xCenter, double yCenter, int interpolation);&lt;BR /&gt;&lt;BR /&gt;My question is essentially a question on coordinate systems used.&lt;BR /&gt;Let's start with ippiResize with roi= (0,0,width, height) and xScaleFactor=yScaleFactor=2. After scaling, the image will be of size (2 * width, 2 * height). My question is: is pixel (0, 0) at the top left corner of the scaled image?  Let me rephrase my question: when you specify a roi for a image, which can be srcROI for pSrc and destROI for pDest, it is always specified in the coordinate system attached to the associated image. Am I right?&lt;BR /&gt;In other words, if pSrc = srcROI = (0,0,128,128) and xScaleFactor=yScaleFactor=2 and pDestROI = (0,0,128,128), the result will be the top left quarter of the scaled image. Is my understanding right?   &lt;BR /&gt;&lt;BR /&gt;Now question for ippiResizeCenter. The Intel doc says:&lt;BR /&gt;&lt;BR /&gt;xCenter, yCenter Coordinates of the point that does not shift after resizing&lt;BR /&gt;&lt;BR /&gt;What does this mean? What coordinate system is used to specify xCenter and yXenter?  Why are they double instead of integer? I thought coordinates in an image are always pixel coordinates, which are always integer.&lt;BR /&gt;&lt;BR /&gt;Could somebody please enlighten me?  Thanks in advance.</description>
      <pubDate>Mon, 09 May 2005 09:32:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-and-ippiResizeCenter-usage/m-p/991133#M22326</guid>
      <dc:creator>axu</dc:creator>
      <dc:date>2005-05-09T09:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: ippiResize and ippiResizeCenter usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-and-ippiResizeCenter-usage/m-p/991134#M22327</link>
      <description>&lt;DIV&gt;To get clarification, you may submit an issue to Intel Premier Support where our support staff will provide assistance for your issue.&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;BR /&gt;Ying S&lt;BR /&gt;Intel IPP &lt;/DIV&gt;</description>
      <pubDate>Sat, 21 May 2005 03:38:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResize-and-ippiResizeCenter-usage/m-p/991134#M22327</guid>
      <dc:creator>Ying_S_Intel</dc:creator>
      <dc:date>2005-05-21T03:38:58Z</dc:date>
    </item>
  </channel>
</rss>

