does disparity maps give depth in meter if focal length and disparity are in pixel?

*爱你&永不变心* 提交于 2019-12-23 04:36:27

问题


I am trying to find depth using a stereo camera. I created a depth map or disparity matrix which are from 0 to 255 (pixel value). Now after creating a depth map, I want to find real depth using formula,

depth = (baseline*focallength)/disparity-value
Here,
the baseline in (meter)
focal length in (pixel)
disparity-value in (pixel)

So I want to ask if I calculate depth, will that depth in pixel or in a meter.


回答1:


If you substitute your units you get: depth = baseline (meter) * focal length (pixel) / disparity-value (pixel). So the result is in meters because pixels are canceled down.



来源:https://stackoverflow.com/questions/57251495/does-disparity-maps-give-depth-in-meter-if-focal-length-and-disparity-are-in-pix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!