Improper Disparity map obtained for stereo scene reconstruction
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have done stereo calibration using the Stereo Camera Calibrator App available in MATLAB R2014b.
When I obtain the results of calibration, the maximum reprojection error showed on the graph is around 0.55 (little less than 0.6). However, the translation of Camera 2 wrt Camera 1 obtained is correct (I know that the baseline is 200cm. The app detects it as 199.98cm, which I guess is fine). Also, it is only from this parameter that I believe the various other parameters obtained after calibration is right. (Of course, apart from the reprojected points which should match with the detected corners.) Is there any other way I can check if my calibration results are proper (in this stage)?
I have attached the stereo parameters ( stereoParams ). Using this, I want to calculate the x, y, z distance of any object (1m to 2m away from baseline, as this is where checkerboard too was placed for calibration). I did the following:
- using stereoParams, I found the distance to checkerboard (as object). I did this using detectCheckerboardPoints (to both left and right images) and triangulate.I got the correct results.
- I placed a wheel (object) and found disparity. Mine is a 10MP image, so I used DisparityRange = [400, 640]; BlockSize = 55. Why are there two objects (wheels) detected? I am getting an error in the values of distances too.
What are the other parameters I can tune to get a better disparity output?
Any help will be appreciated.
Attachments (left and right images from Camera A and B respectively and stereo parameters) are uploaded on Dropbox .
0 Commenti
Risposte (1)
Dima Lisin
il 10 Mag 2015
Modificato: Dima Lisin
il 10 Mag 2015
He Meghana,
Your calibration looks fine. The problem here is that the wheel is too close to the cameras. The overlap between the rectified images is too small, and the disparity is too large. You should get much better results if you either move the wheel farther away from the cameras, or move the cameras closer together.
Also, you may want to try pre-processing the images with histogram equalization using histeq and low pass filtering using imgaussfilt before computing disparity.
4 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!