<?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 Hi Arvind, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069801#M24521</link>
    <description>&lt;P&gt;Hi Arvind,&lt;/P&gt;

&lt;P&gt;I've forwarded your question to our development team. Stay tuned. Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2016 00:01:21 GMT</pubDate>
    <dc:creator>Shaojuan_Z_Intel</dc:creator>
    <dc:date>2016-08-13T00:01:21Z</dc:date>
    <item>
      <title>Query on ippiRotate_8u_C1R</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069800#M24520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using "ippiRotate_8u_C1R" to rotate one image by 180 degrees. Below find code for the rotation&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//! set centre/shift of rotation for luma
&amp;nbsp;&amp;nbsp; &amp;nbsp;dShiftX = (double)((usiDstWidth - usiSrcWidth) &amp;gt;&amp;gt; 1);
&amp;nbsp;&amp;nbsp; &amp;nbsp;dShiftY = (double)((usiDstHeight - usiSrcHeight) &amp;gt;&amp;gt; 1);
&amp;nbsp;&amp;nbsp; &amp;nbsp;//! set for luma
&amp;nbsp;&amp;nbsp; &amp;nbsp;ippiAddRotateShift(((double)(usiSrcWidth&amp;gt;&amp;gt;1)),&amp;nbsp;((double)(usiSrcHeight&amp;gt;&amp;gt;1)), 
	dAngle, &amp;amp;dShiftX, &amp;amp;dShiftY);
&amp;nbsp;&amp;nbsp; &amp;nbsp;//! call for luma
&amp;nbsp;&amp;nbsp; &amp;nbsp;iRelVal = ippiRotate_8u_C1R((const Ipp8u*)pucSrc,
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IppiSizeSrc,usiSrcWidth, IppiRectSrcROI,
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(Ipp8u* )pucDst,usiDstWidth,IppiRectDstROI,&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dAngle, (dShiftX + iDeltaX), (dShiftY + iDeltaY), IPPI_INTER_NN);&lt;/PRE&gt;

&lt;P&gt;Here the source and the destination buffers are of the same size i.e. have the same width and height. This should work since we are trying to rotate the image by 180 degrees.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;X&gt; If the variables iDeltaX and iDeltaY are both set to 0, we are getting a green path at the output.&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;You can observe green patches on the top and the left borders of the image (refer attached image).&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;X&gt; To resolve the problem, we tried tweaking the values of these variables and had to set both of them to -1 i.e (iDeltaX and iDeltaY are both set to -1) to avoid the green patch. This is the lady on the right hand side of the attached image.&amp;nbsp;&lt;/X&gt;&lt;/X&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;We would like to understand why do we have to manipulate the dShiftX and dShiftY values in order to get the correct image.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:02:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069800#M24520</guid>
      <dc:creator>Arvind_R_1</dc:creator>
      <dc:date>2016-07-22T15:02:56Z</dc:date>
    </item>
    <item>
      <title>Hi Arvind,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069801#M24521</link>
      <description>&lt;P&gt;Hi Arvind,&lt;/P&gt;

&lt;P&gt;I've forwarded your question to our development team. Stay tuned. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 00:01:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069801#M24521</guid>
      <dc:creator>Shaojuan_Z_Intel</dc:creator>
      <dc:date>2016-08-13T00:01:21Z</dc:date>
    </item>
    <item>
      <title>Hi Arvind,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069802#M24522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Arvind,&lt;/P&gt;

&lt;P&gt;Does the source image have odd width or height? If so, the operation (usiSrcWidth&amp;gt;&amp;gt;1) or (usiSrcHeight&amp;gt;&amp;gt;1) can lead to a loss of precision.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Valentin&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:48:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Query-on-ippiRotate-8u-C1R/m-p/1069802#M24522</guid>
      <dc:creator>Valentin_K_Intel</dc:creator>
      <dc:date>2016-08-15T13:48:48Z</dc:date>
    </item>
  </channel>
</rss>

