<?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 Help with GetAffineTransform in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769694#M581</link>
    <description>Yes, I do check for the status, and it says "No error, its OK" .</description>
    <pubDate>Thu, 29 Dec 2011 19:13:10 GMT</pubDate>
    <dc:creator>siddy</dc:creator>
    <dc:date>2011-12-29T19:13:10Z</dc:date>
    <item>
      <title>help with GetAffineTransform</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769692#M579</link>
      <description>Hi all,&lt;BR /&gt; Please help me debug the following:&lt;BR /&gt;&lt;BR /&gt;I have a pair of lines sampled from 2 images, along the x-axis at coordinates Level1 and Level2, and along the y-axis at coordinates Level3 and Level4. This defines a quadilateral, which i define as&lt;BR /&gt;&lt;BR /&gt; IppiRect roi;&lt;BR /&gt; roi.x = Level1;&lt;BR /&gt; roi.y = Level3;&lt;BR /&gt; roi.width = Level2 - Level1 + 1;&lt;BR /&gt; roi.height = Level4 - Level3 + 1;&lt;BR /&gt;&lt;BR /&gt;// Then I calculate lags for maximum cross-correlation for each pair:&lt;BR /&gt; LagLevel3 = Xcorr(frame1, frame2, Level3,0);&lt;BR /&gt; LagLevel4 = Xcorr(frame1, frame2, Level4,0);&lt;BR /&gt; LagLevel1 = Xcorr(frame1, frame2, Level1, 1);&lt;BR /&gt; LagLevel2 = Xcorr(frame1, frame2, Level2, 1);&lt;BR /&gt;//where Xcorr is the function, and frame1 and fram2 2 are the images. 0 and 1 denote the column or row //sampling flag. Things are fine till this stage.&lt;BR /&gt;// I then create the deformed quadilateral based on this lag value for each pair, for each direction:&lt;BR /&gt; quad[0][0] = Level1 -LagLevel1;&lt;BR /&gt; quad[0][1] = Level3 - LagLevel3;&lt;BR /&gt;&lt;BR /&gt; quad[1][0] = Level2 - LagLevel2;&lt;BR /&gt; quad[1][1] = Level3 - LagLevel3;&lt;BR /&gt;&lt;BR /&gt; quad[3][0] = Level1 - LagLevel1;&lt;BR /&gt; quad[3][1] = Level4 - LagLevel4;&lt;BR /&gt;&lt;BR /&gt; quad[2][0] = Level2 - LagLevel2;&lt;BR /&gt; quad[2][1] = Level4 - LagLevel4;&lt;BR /&gt;&lt;BR /&gt;// where the subtraction has been used because of the "sense" in which Xcorr returns the values. &lt;BR /&gt;// this is followd by the usual:&lt;BR /&gt;st = ippiGetAffineTransform(roi, quad, coeffs);&lt;BR /&gt;// and the WarpAffine routine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If everything works out fine, I would get an affine transform that would coarsly register the 2 frames. However, The registration works only when I do &lt;BR /&gt;&lt;BR /&gt; quad[0][0] = Level1;&lt;BR /&gt;
 quad[0][1] = Level3 - LagLevel3;&lt;BR /&gt;
&lt;BR /&gt;
 quad[1][0] = Level2 ;&lt;BR /&gt;
 quad[1][1] = Level3 - LagLevel3;&lt;BR /&gt;
&lt;BR /&gt;
 quad[3][0] = Level1 ;&lt;BR /&gt;
 quad[3][1] = Level4 - LagLevel4;&lt;BR /&gt;
&lt;BR /&gt;
 quad[2][0] = Level2;&lt;BR /&gt;
 quad[2][1] = Level4 - LagLevel4;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The moment I change the values of Level1 and Level2 based on the lag, the registration goes off track, I am guessing this is beacuse the coeffs that are being generated are not correct. &lt;BR /&gt;&lt;BR /&gt;Am I messing up the initial setting up of the roi and/or the quad? Is the logic of displacing the levels based on the corresponding lag correct, as given above?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help,&lt;BR /&gt; ( o | &lt;BR /&gt; _)|O|&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Dec 2011 21:58:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769692#M579</guid>
      <dc:creator>siddy</dc:creator>
      <dc:date>2011-12-28T21:58:49Z</dc:date>
    </item>
    <item>
      <title>Help with GetAffineTransform</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769693#M580</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1325123768671="53" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=511291" href="https://community.intel.com/en-us/profile/511291/" class="basic"&gt;siddy&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;...&lt;BR /&gt;The moment I change the values of Level1 and Level2 based on the lag, the registration goes off track&lt;BR /&gt;...&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Regarding'...&lt;STRONG&gt;registration goes off track&lt;/STRONG&gt;...'. What about an error code? Did you check it?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 02:13:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769693#M580</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2011-12-29T02:13:57Z</dc:date>
    </item>
    <item>
      <title>Help with GetAffineTransform</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769694#M581</link>
      <description>Yes, I do check for the status, and it says "No error, its OK" .</description>
      <pubDate>Thu, 29 Dec 2011 19:13:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769694#M581</guid>
      <dc:creator>siddy</dc:creator>
      <dc:date>2011-12-29T19:13:10Z</dc:date>
    </item>
    <item>
      <title>Help with GetAffineTransform</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769695#M582</link>
      <description>Hi, take a look at the note in the IPP manual:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;ROI Processing in Geometric Transforms&lt;/P&gt;&lt;P&gt;All the transform functions described in this chapter operate in rectangular regions of interest (ROIs) that are&lt;/P&gt;&lt;P&gt;defined in both the source and destination images. The procedures for handling ROIs in geometric transform&lt;/P&gt;&lt;P&gt;functions differ from those used in other functions (see Regions of Interest in Intel IPP in chapter 2). The main&lt;/P&gt;&lt;P&gt;difference is that operations take place in the intersection of the transformed source ROI and the destination&lt;/P&gt;&lt;P&gt;ROI. More specifically, all geometric transform functions (except those which perform inverse warping operations)&lt;/P&gt;&lt;P&gt;handle ROIs with the following sequence of operations:&lt;/P&gt;&lt;P&gt; transform the rectangular ROI of the source image to quadrangle in the destination image;&lt;/P&gt;&lt;P&gt; find the intersection of this quadrangle and the rectangular ROI of the destination image;&lt;/P&gt;&lt;P&gt; update the destination image in the intersection area.&lt;/P&gt;&lt;P&gt;The coordinates in the source and destination images must have the same origin.&lt;/P&gt;&lt;P&gt;To fully describe a rectangular ROI, both its origin (coordinates of top left corner) and size must be referenced.&lt;/P&gt;&lt;P&gt;For geometrical transform functions, the source image ROI is specified by srcRoi parameter of IppiRect type,&lt;/P&gt;&lt;P&gt;meaning that all four values describing the rectangular ROI are given explicitly.&lt;/P&gt;&lt;P&gt;On the other hand, the destination image ROI for different functions can be specified either by dstRoi parameter&lt;/P&gt;&lt;P&gt;of IppiRect type, or dstRoiSize parameter of IppiSize type. In the latter case, only the destination ROI&lt;/P&gt;&lt;P&gt;size is passed, while its origin is referenced by pDst pointer.&lt;BR /&gt;&lt;BR /&gt;(page 691)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Igor&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2012 08:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/help-with-GetAffineTransform/m-p/769695#M582</guid>
      <dc:creator>igorastakhov</dc:creator>
      <dc:date>2012-01-08T08:50:31Z</dc:date>
    </item>
  </channel>
</rss>

