Items with no label
3335 Discussions

why all the coordinates from the QueryVertices are zero?

MJala
Novice
1,474 Views

For the following code:

Reads the depth data from the sensor and fills in the matrix 

***/

 

void SR300Camera::fillInZCoords()

 

{

 

Image::ImageData depthImage;

 

Image *depthMap = sample->depth;

 

depthMap->AcquireAccess(Image::ACCESS_READ, &depthImage);

 

Image::ImageInfo imgInfo =<span class="pln" ...
0 Kudos
1 Reply
idata
Employee
185 Views

Hi MonaJalal,

 

 

Thanks for reaching out.

 

 

This code is very similar to the other thread that you opened: https://communities.intel.com/thread/114468 https://communities.intel.com/thread/114468, in that thread I asked you to provide the Visual Studio solution to test it, but if you want we are going to continue the support here to avoid confusions.

 

 

Having said this, I just tested the function QueryVertices in the https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?sample_projection_cpp.html Projection Sample using breakpoints, and it seems that the function works fine, consider that it has a large amount of pixels and some are zero, so please check all the pixels in the array.

 

 

The best recommendation that I can give you is to adapt your code to the function in the sample, but if you still have issues, could you please provide us the Visual Studio solution that you are using? We want to test it under the same conditions as you.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
0 Kudos
Reply