opencvsamples/cpp/calibration.cpp

Ҫ̲ͷƫŤ
ӡֽ̿ޣֻA4ӡֽ̫Чã
ʵʱ
calibration -w 4 -h 5 -s 0.025 -o camera.yml -op -oe
Ƭѡȡ
calibration -w 4 -h 5 -s 0.025 -o camera.yml -op -oe image_list.xml
image_list.xmlһimagelist_creator.cpp

nframes = 10;Ҫ10֡ͼƬȷ׼ȷ
ʵʱgʼ
ݲͼ񲻶̣ͼЧ½ּһֱnframes
֮󣬳½ʾcalibratedʱѽͷɲļcamera.yml
uлǰͷͼǷҪӦýĽ
ԷֽͼԵкɫϸ죬ͼı䡣
opencvнĺΪundistort(temp, view, cameraMatrix, distCoeffs);
ͼΪ˵õcameraMatrix, distCoeffsһνõ֮ʹ

cap1.jpg cap2.jpgǲʱЧͼ
capcor1.jpg capcor2.jpgͼǵʾͼ
ori*.jpgԭʼƬ
undistort*.jpgǾͼƬ

by 
2015.2