OpenCV: How to visualize a depth image

前端 未结 4 1410
终归单人心
终归单人心 2020-12-04 10:48

I am using a dataset in which it has images where each pixel is a 16 bit unsigned int storing the depth value of that pixel in mm. I am trying to visualize this as a greysca

4条回答
  •  旧巷少年郎
    2020-12-04 11:14

    Ifimshow input has floating point data type then the function assumes that pixel values are in [0; 1] range. As result all values higher than 1 are displayed white.

    So you need not divide your divisor by 255.

提交回复
热议问题