s-gupta / rcnn-depth

Learning Rich Features from RGB-D Images for Object Detection and Segmentation
BSD 2-Clause "Simplified" License
365 stars 150 forks source link

Rescalling of depth map #26

Open Astrosun opened 8 years ago

Astrosun commented 8 years ago

Hi,

I have prepared my data set which contains RGBD 4 channels. I find that the depth image is of uint16 type which leads to that pixel value range in my depth image is from 1 to 2^16 which is different from the range of RGB channel (uint8) which is from 1 to 2^8.

I rescale the depth image range from( 1 to 2^16) to (1 to 2^8) by using matlab function "im2uint8" to make sure that all the 4 channels are in the same scale.

Just want to double check that whether this is the correct way to deal with it?

Thanks!