<?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 Howto get pointer of ROI in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Howto-get-pointer-of-ROI/m-p/851648#M6624</link>
    <description>The method of calculating pointer of ROI is given on pp.2-24 of manual with a Document Number A70805-023US as following:&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;pSrc = pSrcImg + 3*(srcImgSize.width * srcRoiOffset.y + srcRoiOffset.x),&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I am not quite sure if it is correct. &lt;BR /&gt;See, considering step size of the SrcImg nad package of each pixel of the SrcImg, in case that the pixel is packed as&lt;BR /&gt; [R G B][R G B]......&lt;BR /&gt;Then the pointer should be &lt;BR /&gt; pSrc = pSrcImg + StepSizeOfSrcImg* srcRoiOffset.y + 3 * srcRoiOffset.x,&lt;BR /&gt;Here the StepSizeofSrcImg not necessarily equal with SrcImgSize.width * 3.&lt;BR /&gt;Is my understanding right?&lt;BR /&gt;&lt;BR /&gt;Otherwise if the each channel of the source image is packed seperately as [ R R R R....] [G G G ...] [B B B ... ]&lt;BR /&gt;Then the calculation could be much more complicated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Apr 2009 02:54:11 GMT</pubDate>
    <dc:creator>simbalee</dc:creator>
    <dc:date>2009-04-24T02:54:11Z</dc:date>
    <item>
      <title>Howto get pointer of ROI</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Howto-get-pointer-of-ROI/m-p/851648#M6624</link>
      <description>The method of calculating pointer of ROI is given on pp.2-24 of manual with a Document Number A70805-023US as following:&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;pSrc = pSrcImg + 3*(srcImgSize.width * srcRoiOffset.y + srcRoiOffset.x),&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I am not quite sure if it is correct. &lt;BR /&gt;See, considering step size of the SrcImg nad package of each pixel of the SrcImg, in case that the pixel is packed as&lt;BR /&gt; [R G B][R G B]......&lt;BR /&gt;Then the pointer should be &lt;BR /&gt; pSrc = pSrcImg + StepSizeOfSrcImg* srcRoiOffset.y + 3 * srcRoiOffset.x,&lt;BR /&gt;Here the StepSizeofSrcImg not necessarily equal with SrcImgSize.width * 3.&lt;BR /&gt;Is my understanding right?&lt;BR /&gt;&lt;BR /&gt;Otherwise if the each channel of the source image is packed seperately as [ R R R R....] [G G G ...] [B B B ... ]&lt;BR /&gt;Then the calculation could be much more complicated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2009 02:54:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Howto-get-pointer-of-ROI/m-p/851648#M6624</guid>
      <dc:creator>simbalee</dc:creator>
      <dc:date>2009-04-24T02:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get pointer of ROI</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Howto-get-pointer-of-ROI/m-p/851649#M6625</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;yes, your understanding is correct. The sample code in documentation did not take into account that padding may appear at the end of image row. Thanks for pointing to this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2009 07:15:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Howto-get-pointer-of-ROI/m-p/851649#M6625</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-04-24T07:15:44Z</dc:date>
    </item>
  </channel>
</rss>

