Calculate distance based on stereo vision
I am studying about a problem what the distance from the camera to the object. I intend to resolve it by below method:
Get images from 2 cameras and then convert them to grayscale images.
Use cv::StereoBM to create disparity map.
Calculate distance from disparity map.
Is my resolution right? Is it necessary to calibrate the camera(from information in the Internet)? I don’t know why and when I must use it.
P/s: By the way how is the step 3 above?