fdp0525 / G2LTex

Code for CVPR 2018 paper --- Texture Mapping for 3D Reconstruction with RGB-D Sensor
146 stars 29 forks source link

The number of channels of depth map #17

Closed Xiaoming-Zhao closed 3 years ago

Xiaoming-Zhao commented 3 years ago

Hi, thanks a lot for your great work! I am trying to run this code on my own recording and encountered the same error mentioned in #16 with

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor

I guess this is related to color space conversion in your library. I am wondering whether you enforce the 16bit depth to be saved in some specific shape, e.g. [H, W, C] which must be 3-dimensional even C=1?

Any suggestion will be appreciated! Thanks

Xiaoming-Zhao commented 3 years ago

For anyone who encountered similar issues, after trial and error, I find that we need to keep the file name with a two-digit number as color_00.jpg until color_99.jpg. Then we can use color_100.jpg etc hereafter. A similar strategy should be applied to depth_00.png and color_00.cam.

yanqingan commented 3 years ago

For anyone who encountered similar issues, after trial and error, I find that we need to keep the file name with a two-digit number as color_00.jpg until color_99.jpg. Then we can use color_100.jpg etc hereafter. A similar strategy should be applied to depth_00.png and color_00.cam.

Thanks for the try and good suggestion.