mcordts / cityscapesScripts

README and scripts for the Cityscapes Dataset
MIT License
2.18k stars 608 forks source link

About Depth #91

Open zhangchbin opened 5 years ago

zhangchbin commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

ApoorvaSuresh commented 5 years ago

Hi, did you find a way?

NovaMind-Z commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

maybe 500 means places with infinite depth? By the way , do you know the baseline and fx of KITTI or Cityscapes ? Many thanks if you reply

ApoorvaSuresh commented 5 years ago

disparity precomputed disparity depth maps. To obtain the disparity values, compute for each pixel p with p > 0: d = ( float(p) - 1. ) / 256., while a value p = 0 is an invalid measurement. Warning: the images are stored as 16-bit pngs, which is non-standard and not supported by all libraries.

zhangchbin commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

maybe 500 means places with infinite depth? By the way , do you know the baseline and fx of KITTI or Cityscapes ? Many thanks if you reply

Actually, there are several camera information in the raw data of cityscapes.

NovaMind-Z commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

maybe 500 means places with infinite depth? By the way , do you know the baseline and fx of KITTI or Cityscapes ? Many thanks if you reply

Actually, there are several camera information in the raw data of cityscapes.

Thanks for your reply! I found the camera information in the raw data of CityScapes. It says baseline= 0.20, focal = 2262. Where can I find the camera information of KITTI? Are they in the raw data of KITTI?

zhangchbin commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

maybe 500 means places with infinite depth? By the way , do you know the baseline and fx of KITTI or Cityscapes ? Many thanks if you reply

Actually, there are several camera information in the raw data of cityscapes.

Thanks for your reply! I found the camera information in the raw data of CityScapes. It says baseline= 0.20, focal = 2262. Where can I find the camera information of KITTI? Are they in the raw data of KITTI?

Yes, you can also find it in others' code.

NovaMind-Z commented 5 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

maybe 500 means places with infinite depth? By the way , do you know the baseline and fx of KITTI or Cityscapes ? Many thanks if you reply

Actually, there are several camera information in the raw data of cityscapes.

Thanks for your reply! I found the camera information in the raw data of CityScapes. It says baseline= 0.20, focal = 2262. Where can I find the camera information of KITTI? Are they in the raw data of KITTI?

Yes, you can also find it in others' code.

Thanks! I find that the baseline is 0.54 and the focal is 721 in others' codes.

binwang777 commented 4 years ago

Hi, after removing the limit value, what is the max depth in Cityscapes?

xiaoaoran commented 4 years ago

Hi, after removing the limit value, what is the max depth in Cityscapes?

My result is nearly 500m when I randomly opened one image. What about you?

daidai321 commented 3 years ago

disparity precomputed disparity depth maps. To obtain the disparity values, compute for each pixel p with p > 0: d = ( float(p) - 1. ) / 256., while a value p = 0 is an invalid measurement. Warning: the images are stored as 16-bit pngs, which is non-standard and not supported by all libraries.

this is right and Do you know why this is done?

ganyz commented 3 years ago

I have converted disparity to depth by depth = baseline * fx / disparity, and the depth value will be large, maybe about 500. But actually, depth can not be large. In KITTI, it will be limited in 80m. So what is the max depth in Cityscapes? Thanks

Me too. Have you solve the problem?