c# - Kinectv2 normalizing depth values -
i using kinect v2 capture depth frames. saw kinect sdk 1.x codes in c++, used
byte depth = 255 - (byte)(256*realdepth/0x0fff);
i want know, purpose of command , need use kinect v2? if have use this, code in c#. getting error in multiplying 256*realdepth
error: operator '*' cannot applied operands of type int
, unshort
.
for give downmark, please explain reason that
that line of code used normalize depth values, coded in 11 bits in c++ api. command, 11-bit representation converted in 8-bit one, allows display depth map grayscale image.
anyway, don't need use line of code if developing application in c#, because api can you.
Comments
Post a Comment