<?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 This is for the F200, but the in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047602#M48612</link>
    <description>&lt;P&gt;This is for the F200, but the OpenCV conversion should be similar:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=wIkIdjN6Oyw" target="_blank"&gt;https://www.youtube.com/watch?v=wIkIdjN6Oyw&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2015 09:24:00 GMT</pubDate>
    <dc:creator>samontab</dc:creator>
    <dc:date>2015-11-05T09:24:00Z</dc:date>
    <item>
      <title>R200 Processing depth images, OpenCV</title>
      <link>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047601#M48611</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have decided I want to do some smoothing of the depth images before I construct a point cloud from the data. I might be trying different algorithms, so working in the PXC format and writing filters myself might not be the best use of time when OpenCV can do that for me. So I try and make an OpenCV Mat.&lt;/P&gt;

&lt;P&gt;From my understanding. When I set up the depth stream it is 16-bit unsigned. I then try to set up an OpenCV Mat as so (I have looked around at other forum posts prior to this).&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(55, 62, 77); font-family: helvetica, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.36px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(219, 237, 254);"&gt;cv::Mat matDepth(cv::Size(dHeight, dWidth), CV_16U, ddata.planes[0], ddata.pitches[0]);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;It doesn't complain but when I use imshow() I'm left with a black image with just a bar across the image which does not correspond to the image. I tried converting the Mat to 8 bit but still issues there. Am I setting up the matrix wrongly? If I am right I want to smooth on the 16 bit image anyway so I am not losing detail.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 20:44:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047601#M48611</guid>
      <dc:creator>Thomas_5207</dc:creator>
      <dc:date>2015-11-04T20:44:19Z</dc:date>
    </item>
    <item>
      <title>This is for the F200, but the</title>
      <link>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047602#M48612</link>
      <description>&lt;P&gt;This is for the F200, but the OpenCV conversion should be similar:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=wIkIdjN6Oyw" target="_blank"&gt;https://www.youtube.com/watch?v=wIkIdjN6Oyw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047602#M48612</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2015-11-05T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Quote:samontab wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047603#M48613</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;samontab wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;This is for the F200, but the OpenCV conversion should be similar:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=wIkIdjN6Oyw"&gt;https://www.youtube.com/watch?v=wIkIdjN6Oyw&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thank you, I actually had already looked at that video prior. I realised just a few minutes ago it was because I had my size defined as cv::Size(height, width), instead of cv::Size(width, height). OpenCVs [row, col] format or [col, row] format tricks me up yet again! It works now.&lt;/P&gt;

&lt;P&gt;I am just trying to work on how to make the conversion back to PXCImage.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:33:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/R200-Processing-depth-images-OpenCV/m-p/1047603#M48613</guid>
      <dc:creator>Thomas_5207</dc:creator>
      <dc:date>2015-11-05T09:33:49Z</dc:date>
    </item>
  </channel>
</rss>

