<?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 Re: Rotate an image in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935928#M17166</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;there is a piece of code to demonstrate&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;#define Width 200&lt;BR /&gt;#define Height 100&lt;/P&gt;
&lt;P&gt;Ipp8u src[Width * Height * 3];&lt;BR /&gt;Ipp8u dst[Height * Width * 3];&lt;BR /&gt;int srcStep = Width * 3;&lt;BR /&gt;int dstStep = Height * 3;&lt;BR /&gt;IppiRect srcROI = {0,0, Width, Height};&lt;BR /&gt;IppiSize srcSize = {Width, Height};&lt;BR /&gt;IppiSize dstROI = {0, 0, Height, Width}; &lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ippiRotate_8u_C1R(src, srcSize, srcStep, srcROI, dst, dstStep, dstROI, 90, 0, Height - 1, IPPI_INTER_NN);&lt;/P&gt;
&lt;P&gt;And of course, you cam use ippiMirror function if you need only 90/180/and so on rotation&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Oct 2004 20:48:11 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2004-10-04T20:48:11Z</dc:date>
    <item>
      <title>Rotate an image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935926#M17164</link>
      <description>&lt;DIV&gt;Hi&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm trying to rotate a bitmap by 90 degrees, but cannot seem to manage it. My bitmap is 200 * 100 24 bit. In particular it is the roi mapping that I am having difficulty with, I can get 180 degrees to work, but 90 degrees results in a cropped image. Can anyone point me in the right direction, preferably with a code snippet.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Chris&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Oct 2004 03:50:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935926#M17164</guid>
      <dc:creator>metalmickey</dc:creator>
      <dc:date>2004-10-04T03:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate an image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935927#M17165</link>
      <description>&lt;DIV&gt;Chris,&lt;/DIV&gt;
&lt;DIV&gt;Since you have a rectangular image (200x100) the rotation of 90 degrees will crop the image as ithas to since its trying to put 200 pixels in the vertical 100 pixel direction. If you rotate the full 180 then the (upside down) rectangle fits without cropping. To avoid cropping therefore you will need to create a new image and copy the rotated image to it. The new image can be 200 w x 100 h to avoid cropping or 200 x 200 if you don't mind black sides. &lt;/DIV&gt;
&lt;DIV&gt;Rick&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Oct 2004 06:42:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935927#M17165</guid>
      <dc:creator>barehill</dc:creator>
      <dc:date>2004-10-04T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate an image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935928#M17166</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;there is a piece of code to demonstrate&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;#define Width 200&lt;BR /&gt;#define Height 100&lt;/P&gt;
&lt;P&gt;Ipp8u src[Width * Height * 3];&lt;BR /&gt;Ipp8u dst[Height * Width * 3];&lt;BR /&gt;int srcStep = Width * 3;&lt;BR /&gt;int dstStep = Height * 3;&lt;BR /&gt;IppiRect srcROI = {0,0, Width, Height};&lt;BR /&gt;IppiSize srcSize = {Width, Height};&lt;BR /&gt;IppiSize dstROI = {0, 0, Height, Width}; &lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ippiRotate_8u_C1R(src, srcSize, srcStep, srcROI, dst, dstStep, dstROI, 90, 0, Height - 1, IPPI_INTER_NN);&lt;/P&gt;
&lt;P&gt;And of course, you cam use ippiMirror function if you need only 90/180/and so on rotation&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Oct 2004 20:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935928#M17166</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2004-10-04T20:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate an image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935929#M17167</link>
      <description>&lt;DIV&gt;Thank you, got my head around it now.&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Oct 2004 01:24:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-an-image/m-p/935929#M17167</guid>
      <dc:creator>metalmickey</dc:creator>
      <dc:date>2004-10-07T01:24:28Z</dc:date>
    </item>
  </channel>
</rss>

