<?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 There is no tech difficulty in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/why-IamgeData-has-no-ToBitmap-for-C/m-p/1120320#M75798</link>
    <description>&lt;P&gt;There is no tech difficulty to implement this.&amp;nbsp;We will consider this feature.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;If it’s a common request, we will implement in the future. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 00:12:14 GMT</pubDate>
    <dc:creator>Xusheng_L_Intel</dc:creator>
    <dc:date>2016-03-23T00:12:14Z</dc:date>
    <item>
      <title>why IamgeData has no ToBitmap for C++?</title>
      <link>https://community.intel.com/t5/Software-Archive/why-IamgeData-has-no-ToBitmap-for-C/m-p/1120319#M75797</link>
      <description>&lt;P&gt;why IamgeData has no ToBitmap for C++? I want to translate the iamge data to a picture with bitmap or jpg or png after acquireaccess.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The following is my code: &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;sample = sm-&amp;gt;QuerySample();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cpic = sample-&amp;gt;color;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (cpic-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ,PXCImage::PIXEL_FORMAT_RGB32, &amp;amp;cData)&amp;lt;PXC_STATUS_NO_ERROR) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;wprintf(L"没能正常获取深度图像！\n");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;info = cpic-&amp;gt;QueryInfo();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;wprintf(L"图像的深度值\n");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;unsigned char * cpixels = (unsigned char *)cData.planes[0];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int dpitches = cData.pitches[0] / sizeof(unsigned char);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (int y = 0; y &amp;lt; (int)info.height; y++) { &amp;nbsp; // R&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int x = 0; x &amp;lt; (int)info.width; x++) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fprintf(fpDataBmp,"%u ", cpixels[y*dpitches + x*sizeof(unsigned char)*4]);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fprintf(fpDataBmp,"\n");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fclose(fpDataBmp);&lt;/P&gt;

&lt;P&gt;does the for loop get the R values for a picture?&lt;/P&gt;

&lt;P&gt;I import these data into matlab and imshow them. but I got a very black gray picture. what mistake did I make?&lt;/P&gt;

&lt;P&gt;Sincerely&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:52:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/why-IamgeData-has-no-ToBitmap-for-C/m-p/1120319#M75797</guid>
      <dc:creator>iswarmrob</dc:creator>
      <dc:date>2016-03-22T12:52:24Z</dc:date>
    </item>
    <item>
      <title>There is no tech difficulty</title>
      <link>https://community.intel.com/t5/Software-Archive/why-IamgeData-has-no-ToBitmap-for-C/m-p/1120320#M75798</link>
      <description>&lt;P&gt;There is no tech difficulty to implement this.&amp;nbsp;We will consider this feature.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;If it’s a common request, we will implement in the future. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 00:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/why-IamgeData-has-no-ToBitmap-for-C/m-p/1120320#M75798</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2016-03-23T00:12:14Z</dc:date>
    </item>
  </channel>
</rss>

