<?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 Error creating a projection in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380870#M1916</link>
    <description>&lt;P&gt;Hi, i´m trying to create a projection, i have actually created it following the steps of the SDK documentation,but when i run my program i get an error of reading access, i think i might be doing something wrong with projection, i dón´t know if i need to use projection while i´m recording with the camera... i´m taking a frame from a recorded file with de r200 an trying to obtain the dept and color values with ProjectColortoCamera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is:  " Exception produced at 0x00000000 is CameraViewer.cpp_d.exe: 0xC0000005: Access violation when executing location 0x00000000. "&lt;/P&gt;&lt;P&gt;Here is my code, any ideas of why i´m getting this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void readFrame(pxcCHAR *file, bool record) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCSenseManager* sm = PXCSenseManager::CreateInstance();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Set file playback name &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Enable stream and Initialize &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480, 0);//En la página ponía 0, 0, simplemente.&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 0, 0, 0);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Set realtime=false and pause=true &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetRealtime(false);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetPause(true);&lt;/P&gt;&lt;P&gt;  // Streaming loop &lt;/P&gt;&lt;P&gt;  for (int i = 0; i &amp;lt; 4; i++) {&lt;/P&gt;&lt;P&gt;  // Set to work on every frame of data &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFrameByIndex(i);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;FlushFrame();&lt;/P&gt;&lt;P&gt;  // Ready for the frame to be ready &lt;/P&gt;&lt;P&gt;  pxcStatus sts = sm-&amp;gt;AcquireFrame(true);&lt;/P&gt;&lt;P&gt;  if (sts &amp;lt; PXC_STATUS_NO_ERROR) break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Retrieve the sample and work on it. The image is in sample-&amp;gt;color. &lt;/P&gt;&lt;P&gt;  PXCCapture::Sample* sample = sm-&amp;gt;QuerySample();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCImage::ImageData data;&lt;/P&gt;&lt;P&gt;  PXCImage::PixelFormat format;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  format= PXCImage::PIXEL_FORMAT_DEPTH_RAW;&lt;/P&gt;&lt;P&gt;  sample-&amp;gt;depth-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ, format, &amp;amp;data);&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  int width = sample-&amp;gt;color-&amp;gt;QueryInfo().width;&lt;/P&gt;&lt;P&gt;  int height = sample-&amp;gt;color-&amp;gt;QueryInfo().height;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  if (!format)&lt;/P&gt;&lt;P&gt;  format = sample-&amp;gt;depth-&amp;gt;QueryInfo().format;&lt;/P&gt;&lt;P&gt;  //printf("Zona 5\n");&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  PXCPoint3DF32* cp = new PXCPoint3DF32[width * height*100];&lt;/P&gt;&lt;P&gt;  PXCPoint3DF32* cvp = new PXCPoint3DF32[width * height*100];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  int *mappedPixels;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for (int j = 0, k = 0; j &amp;lt; height; j++)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  for (int i = 0; i &amp;lt; width; i++, k++)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  //Create 3D point with the colour (x,y) coordinates and corresponding z value  &lt;/P&gt;&lt;P&gt;  if (k == 100000) break;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;x = i;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;y = j;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;z = mappedPixels[j * width + i];&lt;/P&gt;&lt;P&gt;  cp++;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCCapture::Device* device;                       //  Here i get the error!!!!!&lt;/P&gt;&lt;P&gt;  Projection *projection = device-&amp;gt;CreateProjection();&lt;/P&gt;&lt;P&gt;  projection-&amp;gt;ProjectColorToCamera(height*width,cp, cvp);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  projection-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  printf("Acabado\n\n");&lt;/P&gt;&lt;P&gt;  // Resume processing the next frame &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;ReleaseFrame();&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Clean up &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 14:51:34 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2017-04-28T14:51:34Z</dc:date>
    <item>
      <title>Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380870#M1916</link>
      <description>&lt;P&gt;Hi, i´m trying to create a projection, i have actually created it following the steps of the SDK documentation,but when i run my program i get an error of reading access, i think i might be doing something wrong with projection, i dón´t know if i need to use projection while i´m recording with the camera... i´m taking a frame from a recorded file with de r200 an trying to obtain the dept and color values with ProjectColortoCamera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is:  " Exception produced at 0x00000000 is CameraViewer.cpp_d.exe: 0xC0000005: Access violation when executing location 0x00000000. "&lt;/P&gt;&lt;P&gt;Here is my code, any ideas of why i´m getting this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void readFrame(pxcCHAR *file, bool record) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCSenseManager* sm = PXCSenseManager::CreateInstance();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Set file playback name &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Enable stream and Initialize &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480, 0);//En la página ponía 0, 0, simplemente.&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 0, 0, 0);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Set realtime=false and pause=true &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetRealtime(false);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetPause(true);&lt;/P&gt;&lt;P&gt;  // Streaming loop &lt;/P&gt;&lt;P&gt;  for (int i = 0; i &amp;lt; 4; i++) {&lt;/P&gt;&lt;P&gt;  // Set to work on every frame of data &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFrameByIndex(i);&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;FlushFrame();&lt;/P&gt;&lt;P&gt;  // Ready for the frame to be ready &lt;/P&gt;&lt;P&gt;  pxcStatus sts = sm-&amp;gt;AcquireFrame(true);&lt;/P&gt;&lt;P&gt;  if (sts &amp;lt; PXC_STATUS_NO_ERROR) break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Retrieve the sample and work on it. The image is in sample-&amp;gt;color. &lt;/P&gt;&lt;P&gt;  PXCCapture::Sample* sample = sm-&amp;gt;QuerySample();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCImage::ImageData data;&lt;/P&gt;&lt;P&gt;  PXCImage::PixelFormat format;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  format= PXCImage::PIXEL_FORMAT_DEPTH_RAW;&lt;/P&gt;&lt;P&gt;  sample-&amp;gt;depth-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ, format, &amp;amp;data);&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  int width = sample-&amp;gt;color-&amp;gt;QueryInfo().width;&lt;/P&gt;&lt;P&gt;  int height = sample-&amp;gt;color-&amp;gt;QueryInfo().height;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  if (!format)&lt;/P&gt;&lt;P&gt;  format = sample-&amp;gt;depth-&amp;gt;QueryInfo().format;&lt;/P&gt;&lt;P&gt;  //printf("Zona 5\n");&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  PXCPoint3DF32* cp = new PXCPoint3DF32[width * height*100];&lt;/P&gt;&lt;P&gt;  PXCPoint3DF32* cvp = new PXCPoint3DF32[width * height*100];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  int *mappedPixels;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for (int j = 0, k = 0; j &amp;lt; height; j++)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  for (int i = 0; i &amp;lt; width; i++, k++)&lt;/P&gt;&lt;P&gt;  {&lt;/P&gt;&lt;P&gt;  //Create 3D point with the colour (x,y) coordinates and corresponding z value  &lt;/P&gt;&lt;P&gt;  if (k == 100000) break;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;x = i;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;y = j;&lt;/P&gt;&lt;P&gt;  cp-&amp;gt;z = mappedPixels[j * width + i];&lt;/P&gt;&lt;P&gt;  cp++;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PXCCapture::Device* device;                       //  Here i get the error!!!!!&lt;/P&gt;&lt;P&gt;  Projection *projection = device-&amp;gt;CreateProjection();&lt;/P&gt;&lt;P&gt;  projection-&amp;gt;ProjectColorToCamera(height*width,cp, cvp);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  projection-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  printf("Acabado\n\n");&lt;/P&gt;&lt;P&gt;  // Resume processing the next frame &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;ReleaseFrame();&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  // Clean up &lt;/P&gt;&lt;P&gt;  sm-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380870#M1916</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-04-28T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380871#M1917</link>
      <description>&lt;P&gt;Hi Migueel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your interest in the Intel® Realsense™ Platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry to hear that you are having an error while attempting to create a projection. I was able to run the sample Projection in the SDK R2 2016 (&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?sample_projection_cpp.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?sample_projection_cpp.html&lt;/A&gt; Intel® RealSense™ SDK 2016 R2 Documentation ) without any issues (Please see image below), I would encourage you to take this sample code and used it as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any questions come up, have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
      <pubDate>Fri, 28 Apr 2017 19:05:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380871#M1917</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-04-28T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380872#M1918</link>
      <description>&lt;P&gt;Hi Jose, thank you for the post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think that the fact that i´m using a 2012 version could affect the creation of projection? Did you have trouble related to projection in previous versions of the realsense SDK´s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jose! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 16:57:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380872#M1918</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-04-30T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380873#M1919</link>
      <description>&lt;P&gt;Hi Migueel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;I have not found information about issues related to projection in previous versions, however, I'd recommend you to use the Intel RealSense SDK R2 2016.&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Yermi A.&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 23:55:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380873#M1919</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-01T23:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380874#M1920</link>
      <description>&lt;P&gt;You need to 'fill in' the device instance first by doing something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device = pSenseManager.captureManager.QueryDevice();&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 08:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380874#M1920</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-05-02T08:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380875#M1921</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;jb455 thanks for your input!&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Migueel were you able to try the Projection sample in the Intel Realsense SDK R2 2016?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;We will be waiting for your reply, have a nice day!&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
      <pubDate>Tue, 02 May 2017 21:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380875#M1921</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-02T21:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380876#M1922</link>
      <description>&lt;P&gt;Hi Jose, yes i have been able to create the projection already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help guys!!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 11:08:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380876#M1922</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-03T11:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a projection</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380877#M1923</link>
      <description>&lt;P&gt;Hi Migueel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;We are here to help! Please don't hesitate to come back if any questions come up.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Have a great day!&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
      <pubDate>Wed, 03 May 2017 15:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Error-creating-a-projection/m-p/380877#M1923</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-03T15:46:52Z</dc:date>
    </item>
  </channel>
</rss>

