<?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 problem about usage of ippiRotateCenter in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-about-usage-of-ippiRotateCenter/m-p/813947#M4113</link>
    <description>Hello, I want to rotate an image on its center. I am trying to use ippiRotateCenter. The below code I have written does not perform what I expect. I also attach the input image, the result I get with the below code and the result of matlab's imrotate function. I think matlab's result is ideal. Any idea is welcome.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]    int inputWidth = 512;
    int inputHeight = 512;
    int rotWidth = 725;
    int rotHeight = 725;
    
    double angle = 45.0;

    int stepBytesRot;
    Ipp32f* inputRotated = ippiMalloc_32f_C1(rotWidth, rotHeight, &amp;amp;stepBytesRot);
    IppiSize srcSize = { inputWidth, inputHeight }, dstSize = { rotWidth, rotHeight };

    double xCenter = floor((double)inputWidth/2);
    double yCenter = floor((double)inputHeight/2);

    IppiRect srcRect = { 0, 0, inputWidth, inputHeight};
    IppiRect dstRect = { 0, 0, rotWidth, rotHeight};
    
    int interpolationType = IPPI_INTER_NN;

    sts = ippiRotateCenter_32f_C1R(inputImage, srcSize, stepBytesInput, srcRect,
        inputRotated, stepBytesRot, dstRect,
        -angle, xCenter, yCenter, interpolationType);

    assert(sts!=ippStsNullPtrErr); assert(sts!=ippStsSizeErr); assert(sts!=ippStsStepErr);
    assert(sts!=ippStsInterpolationErr); assert(sts!=ippStsRectErr); assert(sts!=ippStsWrongIntersectQuad);[/bash]&lt;/PRE&gt;  &lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Tue, 31 May 2011 19:16:55 GMT</pubDate>
    <dc:creator>Kadir_Kirtac</dc:creator>
    <dc:date>2011-05-31T19:16:55Z</dc:date>
    <item>
      <title>problem about usage of ippiRotateCenter</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-about-usage-of-ippiRotateCenter/m-p/813947#M4113</link>
      <description>Hello, I want to rotate an image on its center. I am trying to use ippiRotateCenter. The below code I have written does not perform what I expect. I also attach the input image, the result I get with the below code and the result of matlab's imrotate function. I think matlab's result is ideal. Any idea is welcome.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]    int inputWidth = 512;
    int inputHeight = 512;
    int rotWidth = 725;
    int rotHeight = 725;
    
    double angle = 45.0;

    int stepBytesRot;
    Ipp32f* inputRotated = ippiMalloc_32f_C1(rotWidth, rotHeight, &amp;amp;stepBytesRot);
    IppiSize srcSize = { inputWidth, inputHeight }, dstSize = { rotWidth, rotHeight };

    double xCenter = floor((double)inputWidth/2);
    double yCenter = floor((double)inputHeight/2);

    IppiRect srcRect = { 0, 0, inputWidth, inputHeight};
    IppiRect dstRect = { 0, 0, rotWidth, rotHeight};
    
    int interpolationType = IPPI_INTER_NN;

    sts = ippiRotateCenter_32f_C1R(inputImage, srcSize, stepBytesInput, srcRect,
        inputRotated, stepBytesRot, dstRect,
        -angle, xCenter, yCenter, interpolationType);

    assert(sts!=ippStsNullPtrErr); assert(sts!=ippStsSizeErr); assert(sts!=ippStsStepErr);
    assert(sts!=ippStsInterpolationErr); assert(sts!=ippStsRectErr); assert(sts!=ippStsWrongIntersectQuad);[/bash]&lt;/PRE&gt;  &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2011 19:16:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/problem-about-usage-of-ippiRotateCenter/m-p/813947#M4113</guid>
      <dc:creator>Kadir_Kirtac</dc:creator>
      <dc:date>2011-05-31T19:16:55Z</dc:date>
    </item>
    <item>
      <title>problem about usage of ippiRotateCenter</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-about-usage-of-ippiRotateCenter/m-p/813948#M4114</link>
      <description>Hi Kadir,&lt;BR /&gt;&lt;BR /&gt;The example from IPP Reference Manual will help you. Please look at the attached file.&lt;BR /&gt;You should to recalculate dstRect and parameters xShift and yShift using auxiliary functions before call of the function ippiRotate.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt; Beg</description>
      <pubDate>Thu, 02 Jun 2011 15:08:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/problem-about-usage-of-ippiRotateCenter/m-p/813948#M4114</guid>
      <dc:creator>Yuri_Tikhomirov__Int</dc:creator>
      <dc:date>2011-06-02T15:08:41Z</dc:date>
    </item>
  </channel>
</rss>

