<?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: access pixel data allocated by IppiMalloc? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896531#M12202</link>
    <description>I just fix that with &lt;BR /&gt;pImageSquare[row*nImageSqureStep/4+col]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But I am still wondering about the correctness of the above access.&lt;BR /&gt;will it bring correct result?  nImageSquareStep is larger than the true width of the pImageSquare image?&lt;BR /&gt;</description>
    <pubDate>Mon, 28 Apr 2008 07:08:09 GMT</pubDate>
    <dc:creator>ctozlm</dc:creator>
    <dc:date>2008-04-28T07:08:09Z</dc:date>
    <item>
      <title>access pixel data allocated by IppiMalloc?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896530#M12201</link>
      <description>Is there anyone can tell me that how can I access the pixel data allocated by IppiMalloc.&lt;BR /&gt; I just wondering how to use the pStepBytes variable returned by IppiMalloc. If I just want to access a pixel, can I use pStepBytes as the width of the 2d array.&lt;BR /&gt; actually, I need to get the max value from a matrix. how should I do that? I attach some codes to illustrate my doubt.&lt;BR /&gt;&lt;BR /&gt;int nImageSqureStep;&lt;BR /&gt;float* pImageSquare = ippiMalloc_32f_C1(szImage.width,szImage.height,&amp;amp;nImageSqureStep);&lt;BR /&gt;    ippiSqr_32f_C1R(src,szImage.width*4,pImageSquare,nImageSqureStep,szImage);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How should I get access the pixel of pImageSqaure , for example&lt;BR /&gt;for (int row=0;row&lt;SZIMAGE.HEIGHT&gt;    {&lt;BR /&gt;     for (int col=0;col&lt;SZIMAGE.WIDTH&gt;     {&lt;BR /&gt;      if (pImageSquare[row*nImageSqureStep+col]&amp;lt;)&lt;BR /&gt;     }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it tell me wrong when it was executed and I gurantee that other part code is correct. So I think the problem is how to acess the pixel. and how to use the width is a problem.&lt;BR /&gt;&lt;BR /&gt;Is there any other good way to get max value from the pImageSquare Array?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;/SZIMAGE.WIDTH&gt;&lt;/SZIMAGE.HEIGHT&gt;</description>
      <pubDate>Mon, 28 Apr 2008 04:19:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896530#M12201</guid>
      <dc:creator>ctozlm</dc:creator>
      <dc:date>2008-04-28T04:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: access pixel data allocated by IppiMalloc?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896531#M12202</link>
      <description>I just fix that with &lt;BR /&gt;pImageSquare[row*nImageSqureStep/4+col]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But I am still wondering about the correctness of the above access.&lt;BR /&gt;will it bring correct result?  nImageSquareStep is larger than the true width of the pImageSquare image?&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Apr 2008 07:08:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896531#M12202</guid>
      <dc:creator>ctozlm</dc:creator>
      <dc:date>2008-04-28T07:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: access pixel data allocated by IppiMalloc?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896532#M12203</link>
      <description>&lt;I&gt;Is there anyone who can help me with that problem?Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How to access the pixel in IPP&lt;BR /&gt;&lt;/I&gt;</description>
      <pubDate>Fri, 02 May 2008 01:09:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896532#M12203</guid>
      <dc:creator>ctozlm</dc:creator>
      <dc:date>2008-05-02T01:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: access pixel data allocated by IppiMalloc?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896533#M12204</link>
      <description>&lt;P&gt;float max = *pImageSquare;&lt;/P&gt;
&lt;P&gt;float *pTmp;&lt;/P&gt;
&lt;P&gt;for ( int row = 0; row &amp;lt; szImage.height; row++ ) {&lt;/P&gt;
&lt;P&gt;pTmp = (float *)( (char *)pImageSquare + nImageSquareStep * row );&lt;/P&gt;
&lt;P&gt;for ( int col = 0; col &amp;lt; szImage.width; col++ ) {&lt;/P&gt;
&lt;P&gt;if ( pTmp[col] &amp;gt; max ) max = pTmp[col];&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;but better&lt;/P&gt;
&lt;P&gt;float max;&lt;/P&gt;
&lt;P&gt;ippiMax_32f_C1R( [ImageSquare, nImageSquareStep, szImage, &amp;amp;max );&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2008 06:12:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/access-pixel-data-allocated-by-IppiMalloc/m-p/896533#M12204</guid>
      <dc:creator>Ivan_Z_Intel</dc:creator>
      <dc:date>2008-05-05T06:12:10Z</dc:date>
    </item>
  </channel>
</rss>

