<?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: ROI question in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ROI-question/m-p/921280#M15724</link>
    <description>#include "ipp.h"&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt;  IppStatus Status;&lt;BR /&gt;  int ImgW, ImgH, ImgStep;&lt;BR /&gt;  Ipp32f *pImg;&lt;BR /&gt;&lt;BR /&gt;  ImgW = 5; ImgH = 5;&lt;BR /&gt;  pImg = ippiMalloc_32f_C1(ImgW, ImgH, &amp;amp;ImgStep);&lt;BR /&gt;&lt;BR /&gt;  Status = ippsZero_8u((Ipp8u*)pImg, ImgStep * ImgH);&lt;BR /&gt;  Ipp32f Value = 1.0f; int y, x; Ipp32f *pTmp;&lt;BR /&gt;  for ( y = 0; y &amp;lt; ImgH; y++ )&lt;BR /&gt;  {&lt;BR /&gt;    pTmp = pImg + y * ImgStep / sizeof(Ipp32f);&lt;BR /&gt;    for ( x = 0; x &amp;lt; ImgW; x++ )&lt;BR /&gt;    {&lt;BR /&gt;      *pTmp = Value; pTmp++; Value++;&lt;BR /&gt;    }  &lt;BR /&gt;  }&lt;BR /&gt;//  int i; pTmp = pImg;&lt;BR /&gt;//  for ( i = 0; i &amp;lt; ImgStep / sizeof(Ipp32f) * ImgH; i++ ) &lt;BR /&gt;//  {printf("%f
", *pTmp); pTmp++;}&lt;BR /&gt;// *pImg&lt;BR /&gt;//   1,  2,  3,  4,  5 &lt;BR /&gt;//   6,  7,  8,  9, 10&lt;BR /&gt;//  11, 12, 13, 14, 15&lt;BR /&gt;//  16, 17, 18, 19, 20&lt;BR /&gt;//  21, 22, 23, 24, 25&lt;BR /&gt;&lt;BR /&gt;  int RoiL, RoiT;&lt;BR /&gt;  IppiSize roiSize;&lt;BR /&gt;  Ipp32f *pRoi;&lt;BR /&gt;  Ipp64f Sum;&lt;BR /&gt;  RoiL = 1; RoiT = 1;&lt;BR /&gt;  roiSize.width = 3; roiSize.height = 3;&lt;BR /&gt;  pRoi = pImg + RoiL + RoiT * ImgStep / sizeof(Ipp32f);&lt;BR /&gt;  Status = ippiSum_32f_C1R(pRoi, ImgStep, roiSize, &lt;BR /&gt;                           &amp;amp;Sum, ippAlgHintAccurate);&lt;BR /&gt;  printf("%f
", Sum);&lt;BR /&gt;&lt;BR /&gt;  ippiFree(pImg);&lt;BR /&gt;&lt;BR /&gt;  return 0;&lt;BR /&gt;}</description>
    <pubDate>Tue, 28 Dec 2004 12:50:22 GMT</pubDate>
    <dc:creator>seiji-torigoe</dc:creator>
    <dc:date>2004-12-28T12:50:22Z</dc:date>
    <item>
      <title>ROI question</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ROI-question/m-p/921279#M15723</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;How do I apply a region of interest to an image? Many of the functions just take a height and width parameter with IPP size. So, for instance I want to sum up all of the pixels of a region of a picture that is not anchored at 0,0? Is this possible? It would seem to be if I used ippirect for the values, but that doesn't seem to be an option. If I fiddled with the original buffer starting point and my stride and the ippisize I can probable get it to work, but this is a lot of irritation. Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;~Steve</description>
      <pubDate>Tue, 28 Dec 2004 00:30:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ROI-question/m-p/921279#M15723</guid>
      <dc:creator>diehard21</dc:creator>
      <dc:date>2004-12-28T00:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: ROI question</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ROI-question/m-p/921280#M15724</link>
      <description>#include "ipp.h"&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt;  IppStatus Status;&lt;BR /&gt;  int ImgW, ImgH, ImgStep;&lt;BR /&gt;  Ipp32f *pImg;&lt;BR /&gt;&lt;BR /&gt;  ImgW = 5; ImgH = 5;&lt;BR /&gt;  pImg = ippiMalloc_32f_C1(ImgW, ImgH, &amp;amp;ImgStep);&lt;BR /&gt;&lt;BR /&gt;  Status = ippsZero_8u((Ipp8u*)pImg, ImgStep * ImgH);&lt;BR /&gt;  Ipp32f Value = 1.0f; int y, x; Ipp32f *pTmp;&lt;BR /&gt;  for ( y = 0; y &amp;lt; ImgH; y++ )&lt;BR /&gt;  {&lt;BR /&gt;    pTmp = pImg + y * ImgStep / sizeof(Ipp32f);&lt;BR /&gt;    for ( x = 0; x &amp;lt; ImgW; x++ )&lt;BR /&gt;    {&lt;BR /&gt;      *pTmp = Value; pTmp++; Value++;&lt;BR /&gt;    }  &lt;BR /&gt;  }&lt;BR /&gt;//  int i; pTmp = pImg;&lt;BR /&gt;//  for ( i = 0; i &amp;lt; ImgStep / sizeof(Ipp32f) * ImgH; i++ ) &lt;BR /&gt;//  {printf("%f
", *pTmp); pTmp++;}&lt;BR /&gt;// *pImg&lt;BR /&gt;//   1,  2,  3,  4,  5 &lt;BR /&gt;//   6,  7,  8,  9, 10&lt;BR /&gt;//  11, 12, 13, 14, 15&lt;BR /&gt;//  16, 17, 18, 19, 20&lt;BR /&gt;//  21, 22, 23, 24, 25&lt;BR /&gt;&lt;BR /&gt;  int RoiL, RoiT;&lt;BR /&gt;  IppiSize roiSize;&lt;BR /&gt;  Ipp32f *pRoi;&lt;BR /&gt;  Ipp64f Sum;&lt;BR /&gt;  RoiL = 1; RoiT = 1;&lt;BR /&gt;  roiSize.width = 3; roiSize.height = 3;&lt;BR /&gt;  pRoi = pImg + RoiL + RoiT * ImgStep / sizeof(Ipp32f);&lt;BR /&gt;  Status = ippiSum_32f_C1R(pRoi, ImgStep, roiSize, &lt;BR /&gt;                           &amp;amp;Sum, ippAlgHintAccurate);&lt;BR /&gt;  printf("%f
", Sum);&lt;BR /&gt;&lt;BR /&gt;  ippiFree(pImg);&lt;BR /&gt;&lt;BR /&gt;  return 0;&lt;BR /&gt;}</description>
      <pubDate>Tue, 28 Dec 2004 12:50:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ROI-question/m-p/921280#M15724</guid>
      <dc:creator>seiji-torigoe</dc:creator>
      <dc:date>2004-12-28T12:50:22Z</dc:date>
    </item>
  </channel>
</rss>

