Software Archive
Read-only legacy content
17061 Discussions

accessing depth values in c#

Arun_D_
Beginner
778 Views

I access the depth values of the raw stream in C++ as

if (sample->depth->AcquireAccess(PXCImage::ACCESS_READ, PXCImage::PIXEL_FORMAT_DEPTH, &depthData) >= PXC_STATUS_NO_ERROR){
//unsigned short depthValues[640 * 480];
memcpy(depthValues, depthData.planes[0], sizeof(unsigned short)* 640 * 480);
sample->depth->ReleaseAccess(&depthData);
}

Then I can use the 'depthValues' array to access individual depth value using 

for(int i=0;i<LIMIT;i++)
    DepthValues;

How do I access depth values in C#?

Please help. I am new to C#

 

0 Kudos
3 Replies
Vlad_C_
Beginner
778 Views

I am looking for this information too, your link is broken

0 Kudos
Reply