資源簡介
張正友相機標定算法c++實現;
參考文檔:
Flexible Camera Calibration by viewing a plane from unknown orientation
代碼片段和文件信息
#include?“cv.h“
#include?“highgui.h“
#include?
#include?
#include?
//?example?command?line?(for?copy-n-paste):
//?calibration?-w?6?-h?8?-s?2?-n?10?-o?camera.yml?-op?-oe?[]
/*?The?list?of?views?may?look?as?following?(discard?the?starting?and?ending?------?separators):
-------------------
view000.png
view001.png
#view002.png
view003.png
view010.png
one_extra_view.jpg
-------------------
that?is?the?file?will?contain?6?lines?view002.png?will?not?be?used?for?calibration
other?ones?will?be?(those?in?which?the?chessboard?pattern?will?be?found)
*/
enum?{?DETECTION?=?0?CAPTURING?=?1?CALIBRATED?=?2?};
double?compute_reprojection_error(?const?CvMat*?object_points
????????const?CvMat*?rot_vects?const?CvMat*?trans_vects
- 上一篇:基于TCP和UDP的socket通信程序C語言
- 下一篇:C++ 成組連接算法
評論
共有 條評論