<?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 James, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098393#M67714</link>
    <description>&lt;P&gt;Hi James,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Thanks for your promt reply....&lt;/P&gt;

&lt;P&gt;I have tried&amp;nbsp;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 13.008px; line-height: 19.512px;"&gt;ProjectColorToCamera&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;function to get expected result. But still i am getting null value in output array(cvp). There also &amp;nbsp;I am getting the same null value while extracting x value by using&amp;nbsp;c&lt;STRONG&gt;vp[0].x&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Can please tell me which way I am getting wrong.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Any help will be appreciated.Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2016 12:30:21 GMT</pubDate>
    <dc:creator>nadiya_s_</dc:creator>
    <dc:date>2016-04-22T12:30:21Z</dc:date>
    <item>
      <title>Getting Null value from QueryVertices()</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098388#M67709</link>
      <description>&lt;P&gt;Hi TEam,&lt;/P&gt;

&lt;P&gt;I want to find co-ordinates from &lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;QueryVertices() but&lt;/SPAN&gt;&amp;nbsp;getting null value while executing it.&lt;/P&gt;

&lt;P&gt;Code Snippet-&lt;/P&gt;

&lt;P&gt;public class CameraViewer2&lt;BR /&gt;
	{ &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; static int cWidth &amp;nbsp;= 640;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Color image width&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; static int cHeight = 480;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Color image height&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; static int dWidth, dHeight;&amp;nbsp;&amp;nbsp; &amp;nbsp;//depth image width and height&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; static boolean exit = false;//flag&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; public static void main(String s[])&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PXCMSenseManager senseMgr = PXCMSenseManager.CreateInstance(); &amp;nbsp; &amp;nbsp; //Create a session manager instance &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pxcmStatus sts = senseMgr.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, cWidth, cHeight);&amp;nbsp;&amp;nbsp; &amp;nbsp;//STREAM_TYPE_COLOR The color stream.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sts = senseMgr.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH,cWidth,cHeight);&amp;nbsp;&amp;nbsp; &amp;nbsp;//STREAM_TYPE_DEPTH The depth stream.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sts = senseMgr.Init(); //initialize the Manager&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //getting the profile data&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PXCMCapture.Device device = senseMgr.QueryCaptureManager().QueryDevice();&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PXCMCapture.Device.StreamProfileSet profiles = new PXCMCapture.Device.StreamProfileSet();&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device.QueryStreamProfileSet(profiles);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dWidth = profiles.depth.imageInfo.width;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dHeight = profiles.depth.imageInfo.height;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Listener listener = new Listener();&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (sts == pxcmStatus.PXCM_STATUS_NO_ERROR)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (listener.exit == false)&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; &amp;nbsp; &amp;nbsp; sts = senseMgr.AcquireFrame(true);&amp;nbsp;&amp;nbsp; &amp;nbsp;//Wait until a new frame is available and lock it for processing.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (sts == pxcmStatus.PXCM_STATUS_NO_ERROR)&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;PXCMCapture.Sample sample = senseMgr.QuerySample();&amp;nbsp;&amp;nbsp; &amp;nbsp;// retrieve the color and depth samples aligned&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (sample.color != null)&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;&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; &amp;nbsp;PXCMImage depth= sample.depth;&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; &amp;nbsp;PXCMImage color= sample.color;&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; &amp;nbsp;PXCMProjection projection=device.CreateProjection();// Create the PXCMProjection instance. &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PXCMImage mappedColorImage=projection.CreateColorImageMappedToDepth( depth, &amp;nbsp;color);&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; &amp;nbsp;&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; PXCMPoint3DF32[] vertices = new PXCMPoint3DF32[cWidth * cHeight];&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; System.out.println(&lt;STRONG&gt;projection.QueryVertices(depth, vertices&lt;/STRONG&gt;)); &amp;nbsp; //getting in console-&amp;nbsp;&lt;STRONG&gt;PXCM_STATUS_NO_ERROR&lt;/STRONG&gt;&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; system.out.println(&lt;STRONG&gt;vertices[1].z&lt;/STRONG&gt;); &amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;//getting in console-&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;java.lang.NullPointerException&lt;/STRONG&gt;&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; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;is there any other wat to get the co-ordinates.any help would be appreciated.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;regards,&lt;/P&gt;

&lt;P&gt;Nadiya&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 06:49:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098388#M67709</guid>
      <dc:creator>nadiya_s_</dc:creator>
      <dc:date>2016-03-04T06:49:32Z</dc:date>
    </item>
    <item>
      <title>Are the values of dWidth and</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098389#M67710</link>
      <description>&lt;P&gt;Are the values of dWidth and dHeight the same as cWidth and cHeight? I can see you've requested the colour and depth images to be the same size but if they're not, the vertices array will be initialised to the wrong size which would cause an error. So if you do:&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;PXCMPoint3DF32[] vertices = new PXCMPoint3DF32[&lt;STRONG&gt;d&lt;/STRONG&gt;Width * &lt;STRONG&gt;d&lt;/STRONG&gt;Height]; that may fix it.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Other ways I know of to get the vertices are&amp;nbsp;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcolortocamera_pxcprojection.html"&gt;ProjectColorToCamera&lt;/A&gt;&amp;nbsp;and &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html"&gt;ProjectDepthToCamera&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:04:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098389#M67710</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2016-03-07T11:04:18Z</dc:date>
    </item>
    <item>
      <title>hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098390#M67711</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I have no tried in java (am a c++ guy), I have a doubt as in (https://software.intel.com/en-us/forums/realsense/topic/611268)&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;do you get the color image mapped to depth with same field of view of depth?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the format of depth and color that you pass is of type&amp;nbsp;&lt;/SPAN&gt;PIXEL_FORMAT_RGB32&amp;nbsp;and output is of type&amp;nbsp;PIXEL_FORMAT_RGB24. is that true??&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:05:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098390#M67711</guid>
      <dc:creator>krishna_m_1</dc:creator>
      <dc:date>2016-03-07T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Hi James,</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098391#M67712</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;

&lt;P&gt;Thanks for your prompt reply. In our case cWidth &amp;amp; dWidth and cHeight &amp;amp; &lt;SPAN style="line-height: 19.512px;"&gt;dHeight are same. While executing&amp;nbsp;&lt;/SPAN&gt;projection.QueryVertices(depth, vertices), i am getting&amp;nbsp;PXCM_STATUS_NO_ERROR&amp;nbsp;as output, but the as output we are getting&amp;nbsp;vertices&amp;nbsp;as null. so while executing&amp;nbsp;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 18px;"&gt;&lt;STRONG&gt;vertices[1].z&lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.512px;"&gt;getting null pointer exception. Is there anything that i m missing ??&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;If i use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Courier New'; font-size: 13.3333px; line-height: normal;"&gt;ProjectColorToCamera&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;i need an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="f_TableText" style="color: rgb(0, 0, 0); font-family: 'Intel Clear'; font-size: 14.6667px; line-height: normal;"&gt;array of depth coordinates in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="f_CodeExample" style="font-size: 10pt; font-family: 'Courier New'; color: rgb(0, 0, 0); line-height: normal;"&gt;&lt;A class="topiclink" href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/pxcpoint3df32.html" style="color: blue; text-decoration: underline;" target="hmcontent"&gt;Point3DF32&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="f_TableText" style="color: rgb(0, 0, 0); font-family: 'Intel Clear'; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;structure.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;ss i am not able to understand how to get the value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;please help.thanks in advance&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;nadiya&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:20:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098391#M67712</guid>
      <dc:creator>nadiya_s_</dc:creator>
      <dc:date>2016-03-07T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Hmm, I can't see anything</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098392#M67713</link>
      <description>&lt;P&gt;Hmm, I can't see anything obvious, though I'm comparing with my C# code.&lt;/P&gt;

&lt;P&gt;Bit of a long shot... are you getting this error on the first frame? If it's fine on the first frame, but null on subsequent frames, maybe you aren't disposing of all the images? That may cause some confusion (also lots of memory buildup)&lt;/P&gt;

&lt;P&gt;Yeah, I thought it was pretty nonsensical that you need the depth image mapped to the colour image already to use ProjectColorToCamera.. Here's how I did it though (sorry, you'll have to translate from C#):&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;&lt;SPAN style="color:#2b91af;"&gt;PXCMImage&lt;/SPAN&gt;.&lt;SPAN style="color:#2b91af;"&gt;ImageData&lt;/SPAN&gt;&amp;nbsp;mdata;
&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;mappedImage&amp;nbsp;=&amp;nbsp;projection.CreateDepthImageMappedToColor(depth,&amp;nbsp;image);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mappedImage.AcquireAccess(&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMImage&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;Access&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.ACCESS_READ,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMImage&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PixelFormat&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.PIXEL_FORMAT_DEPTH,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;mdata);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px; color: blue;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mwidth&amp;nbsp;=&amp;nbsp;mappedImage.info.width;
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;mheight&amp;nbsp;=&amp;nbsp;mappedImage.info.height;
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mpitch&amp;nbsp;=&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;Int32&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;)(mdata.pitches[0]&amp;nbsp;/&amp;nbsp;2.0);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;var mappedPixels&amp;nbsp;=&amp;nbsp;mdata.ToShortArray(0,&amp;nbsp;mwidth&amp;nbsp;*&amp;nbsp;mheight);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mappedImage.ReleaseAccess(mdata);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mappedImage.Dispose();

&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;cp&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMPoint3DF32&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;[cwidth&amp;nbsp;*&amp;nbsp;cheight];
&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px; color: blue;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;vertices&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMPoint3DF32&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;[cwidth&amp;nbsp;*&amp;nbsp;cheight];
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;0,&amp;nbsp;k&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;nbsp;&amp;lt;&amp;nbsp;cheight;&amp;nbsp;j++)
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;  for&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;cwidth;&amp;nbsp;i++,&amp;nbsp;k++)
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;  {
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;    cp&lt;K&gt;&amp;nbsp;=&amp;nbsp;&lt;/K&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMPoint3DF32&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;(i,&amp;nbsp;j,&amp;nbsp;mappedPixels[j&amp;nbsp;*&amp;nbsp;mpitch&amp;nbsp;+&amp;nbsp;i]);
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;  }
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;}
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;projection.ProjectColorToCamera(cp,&amp;nbsp;cvp);&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:52:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098392#M67713</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2016-03-07T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Hi James,</title>
      <link>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098393#M67714</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Thanks for your promt reply....&lt;/P&gt;

&lt;P&gt;I have tried&amp;nbsp;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 13.008px; line-height: 19.512px;"&gt;ProjectColorToCamera&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;function to get expected result. But still i am getting null value in output array(cvp). There also &amp;nbsp;I am getting the same null value while extracting x value by using&amp;nbsp;c&lt;STRONG&gt;vp[0].x&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Can please tell me which way I am getting wrong.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Any help will be appreciated.Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 12:30:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Getting-Null-value-from-QueryVertices/m-p/1098393#M67714</guid>
      <dc:creator>nadiya_s_</dc:creator>
      <dc:date>2016-04-22T12:30:21Z</dc:date>
    </item>
  </channel>
</rss>

