level 1
小喜菜鸟wst5
楼主
在彩色数据流中
byte[] pixels = new byte[colorFrame.PixelDataLength]; //此处为640*480*4
colorFrame.CopyPixelDataTo(pixels);
这里的PixelDataLength为640*480*4,说明是按字节存储的
在深度数据流中
short[] depthPixelData = new short[depthFrame.PixelDataLength];
depthFrame.CopyPixelDataTo(depthPixelData);、
这里的PixelDataLength为640*480,说明是按像素来存储的
请大家帮忙解惑
2014年10月20日 08点10分
1
byte[] pixels = new byte[colorFrame.PixelDataLength]; //此处为640*480*4
colorFrame.CopyPixelDataTo(pixels);
这里的PixelDataLength为640*480*4,说明是按字节存储的
在深度数据流中
short[] depthPixelData = new short[depthFrame.PixelDataLength];
depthFrame.CopyPixelDataTo(depthPixelData);、
这里的PixelDataLength为640*480,说明是按像素来存储的
请大家帮忙解惑