How to use the MultiCameraCalibration Class to calibrate two stereo cameras?
Currently, I am trying to implement a depth estimation algorithm similar to that of MatLAB's implementation: Depth Estimation with MatLAB.
Right now, I am trying to calibrate the 2 stereo cameras using the MultiCameraCalibration class by referring to the OpenCV tutorial:OpenCV Multiple Camera Calibration.
I have a few questions:
- Do you have to calibrate each camera individually, before running the multiCameraCalibration class methods?
- "to calibrate the extrinsic parameters, one pattern need to be viewed by multiple cameras (at least two) at the same time.", does this mean I have to take a picture with both cameras opened at the same time or am I supposed to take a picture from each camera from a single position?
- How do I use imagelist_creator, currently I see it as a .cpp file from my samples folder, how do I run it as a command? Furthermore, I have also referred to this link: Calibrating Camera with Square Chessboard , and it stated one must first navigate to the bin folder, and then run it, however the imagelist_creator instance is not included in that folder.
I just discovered the existence of a "ccalib-example-multi_cameras_calibration.exe", can I simply run this and calibrate my camera? Furthermore I still can't locate an executable for imaglist_creator...
I don't think there is an imagelist_creator. You have a file example hereactually I just copied the contents of the imagelist_creator.cpp into an empty c++ project and compiled it to create an executable, however I am facing a problem in which none of the images are being added to the list...
You need only those line to create an image list :
In the command line if I type the command:
Project.exe imagelist.yaml *.jpg, instead of iterating through all the jpg files in the directory it simply just outputs *.jpg as the only file name present in the image list.