<?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: WarpAffine and ROI specification in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/WarpAffine-and-ROI-specification/m-p/891654#M11567</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;Could you post your code/image here? so we can review it and see if there is any problem. &lt;BR /&gt;&lt;BR /&gt;I had some simple code that demontrate the funtion usage before. Hope it can provide some help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void testfunction()&lt;BR /&gt;{&lt;BR /&gt;Ipp8u x[8*8]={0};&lt;BR /&gt;Ipp8u y[8*8]={0};&lt;BR /&gt;IppiRect rect = {0,0,4,4};&lt;BR /&gt;IppiRect dstRect = {0,0,4,2};&lt;BR /&gt;&lt;BR /&gt;IppiSize sz = {8,8}, roi = {4,4};&lt;BR /&gt;double quad[4][2];&lt;BR /&gt;double bound[2][2];&lt;BR /&gt;&lt;BR /&gt;const double coeffs[2][3]={{1,0,2},{0,1,0}};&lt;BR /&gt;&lt;BR /&gt;ippiSet_8u_C1R( 10, x, 8,roi );&lt;BR /&gt;&lt;BR /&gt;ippiGetAffineQuad(rect, quad,coeffs);&lt;BR /&gt;ippiGetAffineBound(rect,bound,coeffs);&lt;BR /&gt;ippiWarpAffine_8u_C1R(x,sz, 8, rect, y,8,dstRect, coeffs,IPPI_INTER_NN);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here, the data for X is:&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;...........&lt;BR /&gt;&lt;BR /&gt;This affine transform is to move data in source image to left by 2.&lt;BR /&gt;&lt;BR /&gt;So after calling ippiGetAffineQuad(rect, quad,coeffs), we get quad data:&lt;BR /&gt;2, 0&lt;BR /&gt;5, 0&lt;BR /&gt;5, 3,&lt;BR /&gt;2, 3 &lt;BR /&gt;&lt;BR /&gt;Because ROI for Y is {0,0,4,2}, So Y data is:&lt;BR /&gt;0 0 10 10 0 0 0 0&lt;BR /&gt;0 0 10 10 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;...........&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 24 Aug 2009 07:13:30 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2009-08-24T07:13:30Z</dc:date>
    <item>
      <title>WarpAffine and ROI specification</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/WarpAffine-and-ROI-specification/m-p/891653#M11566</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt; I have an image that is being warped using an affine transformation. When using the GetAffineBound function to calculate the destination ROI, I get negative pixel coordinates for the left corner. However if I specify the negative pixels in the dstROI parameter in warpAffine, I get a ippStsSizeErr because one of the entries in the dstROI is negative. How can I get the whole image transformed in this case where the transformation causes the destination coordinates to be negative ?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 18 Aug 2009 18:52:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/WarpAffine-and-ROI-specification/m-p/891653#M11566</guid>
      <dc:creator>harihar_n</dc:creator>
      <dc:date>2009-08-18T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: WarpAffine and ROI specification</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/WarpAffine-and-ROI-specification/m-p/891654#M11567</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;Could you post your code/image here? so we can review it and see if there is any problem. &lt;BR /&gt;&lt;BR /&gt;I had some simple code that demontrate the funtion usage before. Hope it can provide some help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void testfunction()&lt;BR /&gt;{&lt;BR /&gt;Ipp8u x[8*8]={0};&lt;BR /&gt;Ipp8u y[8*8]={0};&lt;BR /&gt;IppiRect rect = {0,0,4,4};&lt;BR /&gt;IppiRect dstRect = {0,0,4,2};&lt;BR /&gt;&lt;BR /&gt;IppiSize sz = {8,8}, roi = {4,4};&lt;BR /&gt;double quad[4][2];&lt;BR /&gt;double bound[2][2];&lt;BR /&gt;&lt;BR /&gt;const double coeffs[2][3]={{1,0,2},{0,1,0}};&lt;BR /&gt;&lt;BR /&gt;ippiSet_8u_C1R( 10, x, 8,roi );&lt;BR /&gt;&lt;BR /&gt;ippiGetAffineQuad(rect, quad,coeffs);&lt;BR /&gt;ippiGetAffineBound(rect,bound,coeffs);&lt;BR /&gt;ippiWarpAffine_8u_C1R(x,sz, 8, rect, y,8,dstRect, coeffs,IPPI_INTER_NN);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here, the data for X is:&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;10 10 10 10 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;...........&lt;BR /&gt;&lt;BR /&gt;This affine transform is to move data in source image to left by 2.&lt;BR /&gt;&lt;BR /&gt;So after calling ippiGetAffineQuad(rect, quad,coeffs), we get quad data:&lt;BR /&gt;2, 0&lt;BR /&gt;5, 0&lt;BR /&gt;5, 3,&lt;BR /&gt;2, 3 &lt;BR /&gt;&lt;BR /&gt;Because ROI for Y is {0,0,4,2}, So Y data is:&lt;BR /&gt;0 0 10 10 0 0 0 0&lt;BR /&gt;0 0 10 10 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;0 0 0 0 0 0 0 0&lt;BR /&gt;...........&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Aug 2009 07:13:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/WarpAffine-and-ROI-specification/m-p/891654#M11567</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2009-08-24T07:13:30Z</dc:date>
    </item>
  </channel>
</rss>

