資源簡介
在使用OpenCV3.0標定相機后,知道相機的內參和畸變矩陣后,可以使用該程序批量校正圖片
代碼片段和文件信息
#include?
#include?
using?namespace?std;
using?namespace?cv;
int?main(int?argc?char**?argv)
{
Mat?camera_matrix1?=?(Mat_(3?3)?<6.0460012176613498e+002?0.?6.4785069737240292e+002?0.?6.0463648536244227e+002?5.1911372601269466e+002?0.?0.?1.);
Mat?distortion_coefficients1?=?(Mat_(5?1)?<-3.7525685727159552e-001?1.6043564295295426e-0017.6591523467471742e-004?7.6197460832968654e-004-2.3164591638565768e-002);
Mat?camera_matrix2?=?(Mat_(3?3)?<5.8951077781451363e+0020.6.5119037882983207e+002?0.5.8935768227322069e+002?4.9296854741112082e+002?0.?0.?1.);
Mat?distortion_coefficients2?=?(Mat_(5?1)?<-3.6694087023370869e-001?1.8133556487499369e-001-1.0793019481819212e-003
- 上一篇:C語言庫函數使用大全.rar
- 下一篇:一維快速傅里葉變換FFT的C++實現
評論
共有 條評論