decadenza / DirectStereoRectification

"Rectifying Homographies for Stereo Vision: Analytical Solution for Minimal Distortion": algorithm to compute the optimal rectifying homographies that minimise perspective distortion.
GNU General Public License v3.0
26 stars 5 forks source link

Uncalibrated rectification #8

Closed Tord-Zhang closed 1 year ago

Tord-Zhang commented 1 year ago

Hi, If I get two images not perfectly rectified, i.e., there are negative disparities, is it possible to rectify there two images with this code?

decadenza commented 1 year ago

If you have the original images and the calibration parameters, yes. Since your title is "uncalibrated rectification" I suspect you don't have these. Could you share something more?

Tord-Zhang commented 1 year ago

If you have the original images and the calibration parameters, yes. Since your title is "uncalibrated rectification" I suspect you don't have these. Could you share something more?

Thanks for your response! By "uncalibrated rectification", I mean that I got two images captured by camera with unknown intrinsics. And also I do not know the distance these two camera. It is possible to rectify?

decadenza commented 1 year ago

Unfortunately not, this code starts from known calibration intrinsic and extrinsic parameters. If possible, is always better to calibrate to improve the quality of the final 3D reconstruction. I suggest to search for the appropriate algorithm (maybe you may start from scholar.google.com). There are plenty that are able to estimate the parameters.

Good luck.