<?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: Question about ippiGetAffineQuad in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736485#M29198</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The behavior you’re seeing is due to how IppiRect defines width and height. In IPP, IppiRect uses exclusive coordinates: the rectangle spans from (x, y) up to but not including (x+width, y+height). So a rect {0,0,3,3} actually covers pixels (0,0) through (2,2), giving you a 3×3 region but with maximum coordinates at 2. That’s why ippiGetAffineQuad returns (0,0), (2,0), (2,2), (0,2) instead of (3,3).&lt;BR /&gt;If you want the quad to reach (3,3), you’d need to define the rect as {0,0,4,4}. In short: IPP rectangles are half-open intervals, so the “width” and “height” are counts, not max coordinates.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 04:39:19 GMT</pubDate>
    <dc:creator>James271Rivera</dc:creator>
    <dc:date>2026-02-10T04:39:19Z</dc:date>
    <item>
      <title>Question about ippiGetAffineQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736427#M29196</link>
      <description>&lt;P&gt;This is a bit of an XY problem. As a a start&amp;nbsp;ippiGetAffineQuad seems to give a strange answer. In the following code an identity matrix (see coeffs2) is applied to a rect2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void TestGetAffineQuad()
{
   constexpr IppiRect rect2 = {0,0,3,3};
   double quad[4][2] = {};
   constexpr double coeffs2[2][3]={{1,0,0},{0,1,0}};

   IppStatus st = ippiGetAffineQuad(rect2, quad, coeffs2);
}&lt;/LI-CODE&gt;&lt;P&gt;The quad answer is {(0, 0), (2,0), (2,2), (0,2)} but I expected to be with coordinates 3 (i.e. {(0,0), (3,0), (3,3), (0,3)}) since width and height is 3. If the rect has dimension 5 it comes back with 4 in the quad.&amp;nbsp;We use IPP 2022.3.0 which is part of the latest oneAPI 2025.3 download.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 17:49:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736427#M29196</guid>
      <dc:creator>gast128</dc:creator>
      <dc:date>2026-02-09T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ippiGetAffineQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736485#M29198</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The behavior you’re seeing is due to how IppiRect defines width and height. In IPP, IppiRect uses exclusive coordinates: the rectangle spans from (x, y) up to but not including (x+width, y+height). So a rect {0,0,3,3} actually covers pixels (0,0) through (2,2), giving you a 3×3 region but with maximum coordinates at 2. That’s why ippiGetAffineQuad returns (0,0), (2,0), (2,2), (0,2) instead of (3,3).&lt;BR /&gt;If you want the quad to reach (3,3), you’d need to define the rect as {0,0,4,4}. In short: IPP rectangles are half-open intervals, so the “width” and “height” are counts, not max coordinates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 04:39:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736485#M29198</guid>
      <dc:creator>James271Rivera</dc:creator>
      <dc:date>2026-02-10T04:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ippiGetAffineQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736519#M29199</link>
      <description>&lt;P&gt;Thx, I never thought of that myself. The quad and coeffs are in double coordinates so that&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;put me on the wrong track assuming the same behavior for a rectangle.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 08:34:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736519#M29199</guid>
      <dc:creator>gast128</dc:creator>
      <dc:date>2026-02-10T08:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ippiGetAffineQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736529#M29200</link>
      <description>&lt;P&gt;...not sure if it is solved btw since it seems that&amp;nbsp;ippiGetAffineTransform does include the border. Consider the following example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void f()
{
    static constexpr IppiRect rect2 = { 1, 1, 5, 5 };
    static constexpr double dstQuad2[4][2] =
            {{1.0, 1.0}, 
             {5.0, 1.0}, 
             {5.0, 5.0}, 
             {1.0, 5.0}};

    double coeffs[2][3] = {};
    IppStatus st = ippiGetAffineTransform(rect2, dstQuad2, coeffs);
}&lt;/LI-CODE&gt;&lt;P&gt;This gives the identity matrix which suggest that here the borders are inclusive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 09:24:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736529#M29200</guid>
      <dc:creator>gast128</dc:creator>
      <dc:date>2026-02-10T09:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ippiGetAffineQuad</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736530#M29201</link>
      <description>&lt;P&gt;N.v.m.; can't edit / delete my own post. In my last example it's also exclusive border; 1 + width = 1 + 4 = 5 coordinate.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 09:35:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiGetAffineQuad/m-p/1736530#M29201</guid>
      <dc:creator>gast128</dc:creator>
      <dc:date>2026-02-10T09:35:48Z</dc:date>
    </item>
  </channel>
</rss>

