Software Archive
Read-only legacy content
17060 ディスカッション

accessing depth values in c#

Arun_D_
ビギナー
1,022件の閲覧回数

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 件の賞賛
3 返答(返信)
Xusheng_L_Intel
従業員
1,022件の閲覧回数
Vlad_C_
ビギナー
1,022件の閲覧回数

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

Colleen_C_Intel
従業員
1,022件の閲覧回数
返信