<?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 Sorry I was able to get in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Saving-loading-depth-stream-frames/m-p/1051313#M50106</link>
    <description>&lt;P&gt;Sorry I was able to get things to work. I use imread with the flag&amp;nbsp;CV_LOAD_IMAGE_ANYDEPTH. Things are all good :).&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 10:48:59 GMT</pubDate>
    <dc:creator>Thomas_5207</dc:creator>
    <dc:date>2015-11-06T10:48:59Z</dc:date>
    <item>
      <title>Saving/loading depth stream frames</title>
      <link>https://community.intel.com/t5/Software-Archive/Saving-loading-depth-stream-frames/m-p/1051312#M50105</link>
      <description>&lt;P&gt;Hey.&lt;/P&gt;

&lt;P&gt;So I plan to process depth frames using OpenCV offline. I want to save a particular depth stream frame as an image openCV can interpret. This is later to be processed in OpenCV and converted into a PXCImage again for constructing point clouds.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have functions to convert my PXCImage to CV_16U image mats (and back again). The conversion back to PXCImage works if I do it on the fly so I know these work. Also the saved image looks similar to my depth stream. However, if I first save to disk then try and load that image later on I get weird results.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am saving my image in PGM format (said to be uncompressed) using&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;cv::imwrite("output.pgm", outputMat);&lt;/PRE&gt;

&lt;P&gt;I load my image back using&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;cv::imread("output.pgm", -1);&lt;/PRE&gt;

&lt;P&gt;But when I convert back to PXCImage and try to show, I just get a bunch of diagonal lines. Is the type somehow getting messed up here?&lt;/P&gt;

&lt;P&gt;Any help much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 09:54:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Saving-loading-depth-stream-frames/m-p/1051312#M50105</guid>
      <dc:creator>Thomas_5207</dc:creator>
      <dc:date>2015-11-06T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Sorry I was able to get</title>
      <link>https://community.intel.com/t5/Software-Archive/Saving-loading-depth-stream-frames/m-p/1051313#M50106</link>
      <description>&lt;P&gt;Sorry I was able to get things to work. I use imread with the flag&amp;nbsp;CV_LOAD_IMAGE_ANYDEPTH. Things are all good :).&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 10:48:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Saving-loading-depth-stream-frames/m-p/1051313#M50106</guid>
      <dc:creator>Thomas_5207</dc:creator>
      <dc:date>2015-11-06T10:48:59Z</dc:date>
    </item>
  </channel>
</rss>

