<?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 Hi Tim, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004523#M31574</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;

&lt;P&gt;You could use CreateDepthImageMappedToColor as that methods works fine, but it will give you an image that matches the color camera, not the depth camera, so you will end up with a smaller field of view.&lt;/P&gt;

&lt;P&gt;That method returns a depth image aligned with the color image. Now you can just set every non zero pixel to the rgb value of its corresponding pixel in the color image (they are matched, so you can just use the same pixel coordinates).&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2014 02:54:32 GMT</pubDate>
    <dc:creator>samontab</dc:creator>
    <dc:date>2014-12-02T02:54:32Z</dc:date>
    <item>
      <title>Memory leak in PXCProjection::CreateColorImageMappedToDepth</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004520#M31571</link>
      <description>&lt;P&gt;It seems that there is a memory leak in the implementation of the PXCProjection::CreateColorImageMappedToDepth method.&lt;/P&gt;

&lt;P&gt;After every call, the memory usage increases, even though all the resources are being released.&lt;/P&gt;

&lt;P&gt;Actually, if I swap CreateColorImageMappedToDepth&amp;nbsp; for the other method, CreateDepthImageMappedToColor, everything runs fine with no memory leaks whatsoever.&lt;/P&gt;

&lt;P&gt;This suggests that there is a memory leak on the method, at least on v3.3 of the SDK.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2014 09:18:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004520#M31571</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2014-11-29T09:18:58Z</dc:date>
    </item>
    <item>
      <title>I think it is a bug and we</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004521#M31572</link>
      <description>&lt;P&gt;I think it is a bug and we will fix it in the future release. Thanks for supporting RealSense SDK.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2014 23:59:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004521#M31572</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2014-12-01T23:59:01Z</dc:date>
    </item>
    <item>
      <title>I'm experiencing the same</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004522#M31573</link>
      <description>&lt;P&gt;I'm experiencing the same memory leak issue with &amp;nbsp;CreateColorImageMappedToDepth. &amp;nbsp; Any guess as to when it will be fixed? &amp;nbsp; I'm able to use CreateDepthImageMappedToColor as a workaround.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; ...Tim...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 02:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004522#M31573</guid>
      <dc:creator>Tim_T_</dc:creator>
      <dc:date>2014-12-02T02:38:00Z</dc:date>
    </item>
    <item>
      <title>Hi Tim,</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004523#M31574</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;

&lt;P&gt;You could use CreateDepthImageMappedToColor as that methods works fine, but it will give you an image that matches the color camera, not the depth camera, so you will end up with a smaller field of view.&lt;/P&gt;

&lt;P&gt;That method returns a depth image aligned with the color image. Now you can just set every non zero pixel to the rgb value of its corresponding pixel in the color image (they are matched, so you can just use the same pixel coordinates).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 02:54:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004523#M31574</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2014-12-02T02:54:32Z</dc:date>
    </item>
    <item>
      <title>Thanks, yes, I'm able to use</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004524#M31575</link>
      <description>&lt;P&gt;Thanks, yes, I'm able to use CreateDepthImageMappedToColor for the moment. &amp;nbsp;As you say, it gives a smaller field of view, so it'll be nice when the CreateColorImageMappedToDepth is fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 03:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004524#M31575</guid>
      <dc:creator>Tim_T_</dc:creator>
      <dc:date>2014-12-02T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Well, in theory you should be</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004525#M31576</link>
      <description>&lt;P&gt;Well, in theory you should be able to get the extrinsic parameter of the cameras by calibrating them yourself. You have the raw IR and the color images so you could match them, and get the KRT matrices. Once you get those, you should be able to implement the method yourself.&lt;/P&gt;

&lt;P&gt;It would be nice to have it fixed in the SDK though.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 03:25:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004525#M31576</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2014-12-02T03:25:03Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004526#M31577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;@Hans: did you make sure that you actually call Release() on the PXCImage you receive from the&amp;nbsp;CreateDepthImageMappedToColor() ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 18:58:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004526#M31577</guid>
      <dc:creator>Markus_P_1</dc:creator>
      <dc:date>2015-05-22T18:58:34Z</dc:date>
    </item>
    <item>
      <title>I just tested this on the</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004527#M31578</link>
      <description>&lt;P&gt;I just tested this on the latest SDK, R3 (v5.0), and it is working fine. No more memory leaks present in CreateColorImageMappedToDepth.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:40:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004527#M31578</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2015-07-08T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004528#M31579</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have found the memory leak still persists in newest version of RealSense SDK (intel_rs_sdk_offline_package_r6_8.0.24.6528)."&lt;/P&gt;

&lt;P&gt;When I run the provided code sample "...RSSDK/sample/DF_Projection/", &amp;nbsp;and choose "CreateColorImageMappedToDepth" from the user interface, the task manager of my PC reports 100MB increase of memory consumption every second, till the used memory reaches 1.6Gb, afterwards the mapped image stops updating.&lt;/P&gt;

&lt;P&gt;Could you please fix this in the next release or give me a link to the previous release the does not have this memory leak?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;There is no memory leak in CreateDepthImageMappedToColor, but I cannot use it instead in my application, I need&amp;nbsp;CreateColorImageMappedToDepth without a memory leak.&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Anastasia&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004528#M31579</guid>
      <dc:creator>Anastasia_T_</dc:creator>
      <dc:date>2016-05-23T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Quote:David Lu (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004529#M31580</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;David Lu (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I think it is a bug and we will fix it in the future release. Thanks for supporting RealSense SDK.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 1.06667em; line-height: 1.4; max-width: none; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;Hi, David,&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 1.06667em; line-height: 1.4; max-width: none; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I'm using the F200 camera and I also meet the memory leak problem when I use PXCProjection:CreateColorImageMappedToDepth. My SDK version is 10.0 and my camera model is F200; My code is shown below:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.06667em; font-family: 'Courier New', 'DejaVu Sans Mono', monospace, sans-serif; font-size: 15px; line-height: 2.13333em; white-space: pre-wrap; color: rgb(85, 85, 85);"&gt;Mat Camera::CreateColorMappedToDepth(PXCImage *color, PXCImage *depth){
	PXCImage* colorToDepthImage =  this-&amp;gt;projection-&amp;gt;CreateColorImageMappedToDepth(depth, color);

	PXCImage::ImageData colorToDepth;
	this-&amp;gt;retStatus = colorToDepthImage-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ, PXCImage::PIXEL_FORMAT_RGB24, PXCImage::ROTATION_0_DEGREE, PXCImage::OPTION_ANY, &amp;amp;colorToDepth);
	if(this-&amp;gt;retStatus &amp;lt; PXC_STATUS_NO_ERROR){
		std::cout&amp;lt;&amp;lt;"Camera::CreateColorMappedToDepth(PXCImage *color, PXCImage *depth): Error when export data"&amp;lt;&amp;lt;endl;
		std::cout&amp;lt;&amp;lt;"Error Code: "&amp;lt;&amp;lt;this-&amp;gt;retStatus&amp;lt;&amp;lt;endl;
		exit(0);
	}
	Mat colorToDepthMat(Size(colorToDepthImage-&amp;gt;QueryInfo().width, colorToDepthImage-&amp;gt;QueryInfo().height), CV_8UC3, colorToDepth.planes[0]);

	colorToDepthImage-&amp;gt;Release();
	return colorToDepthMat;
}&lt;/PRE&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 1.06667em; line-height: 1.4; max-width: none; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 1.06667em; line-height: 1.4; max-width: none; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;"Camera" is a class I defined to obtain and process the color and depth image. I can get the image data and I can also map the color image to the depth image. But the memory increases about 100MB every second. There is the same problem for the CreatDepthImageMappedToColor.&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 1.06667em; line-height: 1.4; max-width: none; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;Could you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 02:11:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004529#M31580</guid>
      <dc:creator>Gaofeng_L_</dc:creator>
      <dc:date>2016-10-18T02:11:42Z</dc:date>
    </item>
    <item>
      <title>Looks like</title>
      <link>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004530#M31581</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Looks like CreateDepthImageMappedToColor has also a memory leak. Tested with SDK R3 and R2&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 03:25:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Memory-leak-in-PXCProjection-CreateColorImageMappedToDepth/m-p/1004530#M31581</guid>
      <dc:creator>Alex_P_5</dc:creator>
      <dc:date>2016-11-02T03:25:11Z</dc:date>
    </item>
  </channel>
</rss>

