zanilzanzan / FuseNet_PyTorch

Joint scene classification and semantic segmentation with FuseNet
GNU General Public License v3.0
108 stars 34 forks source link

How do you normalize depth value to fall into 0-255? #21

Closed hyclover closed 4 years ago

hyclover commented 4 years ago

I have appreciated your great work. You noted that depth value in NYUDv2 datasets should be normalized. I found that the maximum pixel value of raw depth image is very large(ie, 19576 of 000003.png in dataset) and it has much 0 value. Is it normal? How should I do to normalize it? Look forward to your reply. Thanks!

hazirbas commented 4 years ago

Yes it is normal to have missing depth, encoded with 0. You can divide the numbers by 1000. to convert them to meter.