5,710
edits
Changes
→Alignment Method 2: Rectify images based on Visual SFM results
https://farm9.staticflickr.com/8747/16953941458_920724b2b7_z.jpg
*[https://farm9.staticflickr.com/8747/16953941458_c5b631a44d_o.jpg full resolution]
=Camera Calibration=
*acquire series of images. we used raspistill, called from supercollider
*create image list with opencv:
<syntaxhighlight lang="bash">/Users/rtwomey/code/opencv-2.4.10/build/bin/cpp-example-imagelist_creator images.xml *.jpg</syntaxhighlight>
*calibrate camera:
<syntaxhighlight lang="bash">/Users/rtwomey/code/opencv-2.4.10/build/bin/cpp-example-calibration -w 9 -h 6 -s 24 images.xml</syntaxhighlight>
*gives results like:
<syntaxhighlight lang="bash">
RMS error reported by calibrateCamera: 0.554561
Calibration succeeded. avg reprojection error = 0.55
</syntaxhighlight>
=Results=