<?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 How to access IPP image data ... in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905269#M13355</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a very basic question. How do I allocate and access data of an image. I'm failing to see the pStepBytes functionality in allocate functions. I have the following code and I'm having problem.&lt;BR /&gt;&lt;BR /&gt;*******************************************&lt;BR /&gt;//Allocate a temp complex image ...&lt;BR /&gt;int nStepTempImg (0);&lt;BR /&gt;Ipp32fc* pTempImg = r_ippiMalloc_32fc_C1 (nWidth_, nHeight_, &amp;amp;nStepTempImg);&lt;BR /&gt;&lt;BR /&gt;//Now copy the image from input real image into real channel of temp image&lt;BR /&gt;int nOutIdx(0), nInIdx(0);&lt;BR /&gt;for (int i=0; i &amp;lt; nHeight_; i++)&lt;BR /&gt; {&lt;BR /&gt;  for (int j=0; j &amp;lt; nWidth_; j++)&lt;BR /&gt;  {&lt;BR /&gt;   pTempImg[nOutIdx].re = pInImgData[nInIdx];&lt;BR /&gt;   pTempImg[nOutIdx].im = 0;&lt;BR /&gt;   nOutIdx ++;&lt;BR /&gt;   nInIdx++;&lt;BR /&gt;  }//for (int j=0; j &amp;lt; nWidth; j++)&lt;BR /&gt;  nOutIdx += nStepTempImg;&lt;BR /&gt;
  nInIdx += nWidthUnwrapped_;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;*******************************************&lt;BR /&gt;&lt;BR /&gt;Is this how I'm supposed to access the image data ? I've tried other versions too, but I'm getting out of bounds memory access exception. Any help will be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;FAISAL ...&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Oct 2006 06:20:20 GMT</pubDate>
    <dc:creator>discrete_60</dc:creator>
    <dc:date>2006-10-18T06:20:20Z</dc:date>
    <item>
      <title>How to access IPP image data ...</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905269#M13355</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a very basic question. How do I allocate and access data of an image. I'm failing to see the pStepBytes functionality in allocate functions. I have the following code and I'm having problem.&lt;BR /&gt;&lt;BR /&gt;*******************************************&lt;BR /&gt;//Allocate a temp complex image ...&lt;BR /&gt;int nStepTempImg (0);&lt;BR /&gt;Ipp32fc* pTempImg = r_ippiMalloc_32fc_C1 (nWidth_, nHeight_, &amp;amp;nStepTempImg);&lt;BR /&gt;&lt;BR /&gt;//Now copy the image from input real image into real channel of temp image&lt;BR /&gt;int nOutIdx(0), nInIdx(0);&lt;BR /&gt;for (int i=0; i &amp;lt; nHeight_; i++)&lt;BR /&gt; {&lt;BR /&gt;  for (int j=0; j &amp;lt; nWidth_; j++)&lt;BR /&gt;  {&lt;BR /&gt;   pTempImg[nOutIdx].re = pInImgData[nInIdx];&lt;BR /&gt;   pTempImg[nOutIdx].im = 0;&lt;BR /&gt;   nOutIdx ++;&lt;BR /&gt;   nInIdx++;&lt;BR /&gt;  }//for (int j=0; j &amp;lt; nWidth; j++)&lt;BR /&gt;  nOutIdx += nStepTempImg;&lt;BR /&gt;
  nInIdx += nWidthUnwrapped_;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;*******************************************&lt;BR /&gt;&lt;BR /&gt;Is this how I'm supposed to access the image data ? I've tried other versions too, but I'm getting out of bounds memory access exception. Any help will be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;FAISAL ...&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2006 06:20:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905269#M13355</guid>
      <dc:creator>discrete_60</dc:creator>
      <dc:date>2006-10-18T06:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access IPP image data ...</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905270#M13356</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;please take a look on IPP Reference Manual, volume 2: Image and Video Processing, Chapter 2 Intel Integrated Performance Primitives Concepts, article Major Operation Models, part Regions of interest in Intel IPP to get a basic understanding what for step parameter is.&lt;/P&gt;
&lt;P&gt;You may also find it useful to search through this forum for questions, there is a chance that similar things already have been discussed there.&lt;/P&gt;
&lt;P&gt;Look for example, what I was able to catch in a couple minutes:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5480274/5480274/ShowThread.aspx#5480274"&gt;Resizing image&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5480302/5480302/ShowThread.aspx#5480302"&gt;Definition of plane and step&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5482936/5482936/ShowThread.aspx#5482936"&gt;Remap function&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5483213/5483213/ShowThread.aspx#5483213"&gt;ippiMalloc_32f_C3 Error in steps&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5481192/5481192/ShowThread.aspx#5481192"&gt;Newbie&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.intel.com/ISN/Community/en-US/forums/permalink/5483932/5483932/ShowThread.aspx#5483932"&gt;IPP Newbie&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2006 02:24:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905270#M13356</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-10-20T02:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to access IPP image data ...</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905271#M13357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;FONT face="Courier" size="2"&gt;
&lt;P align="left"&gt;ippiMalloc_ * functions return row step in bytes not in image elements (see doc). So, before the loop you should insert &lt;/P&gt;
&lt;P align="left"&gt;nStepTempImg/=sizeof(*pTempImg);&lt;/P&gt;
&lt;P align="left"&gt;Thanks,&lt;/P&gt;
&lt;P align="left"&gt;Alexander&lt;/P&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 21 Oct 2006 00:14:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-access-IPP-image-data/m-p/905271#M13357</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-10-21T00:14:20Z</dc:date>
    </item>
  </channel>
</rss>

