pylibfreenect2 icon indicating copy to clipboard operation
pylibfreenect2 copied to clipboard

Depth-RGB alignment

Open linwanml opened this issue 7 years ago • 4 comments

Is there a method to read the depth value from the depth video by using python and opencv?

linwanml avatar Feb 16 '18 10:02 linwanml

Assuming you are talking about reading depth values from a pre-recorded depth sequence, I think you can just use opencv’s VideoCapture.

r9y9 avatar Feb 16 '18 10:02 r9y9

Yes, I have already read the value with opencv. The depth intensity in opencv is 0-255. Is there a transform equation to map each depth intensity(0-255) into millimeter values?

linwanml avatar Feb 16 '18 11:02 linwanml

That depends on how you saved depth data. For example, assuming the maximum depth in milli meter was 4500, If you scaled the depth values by 255/4500 and saved it as 8bit integers, then you can recover depth by multiplying 4500/255.

r9y9 avatar Feb 16 '18 15:02 r9y9

Ok, thank you for the answers. I have one more question, and then I will close the issue. Are there some documents, links or papers that I can have a look about these information?

linwanml avatar Feb 16 '18 15:02 linwanml