資源簡(jiǎn)介
在使用OpenCV3.0標(biāo)定相機(jī)后,知道相機(jī)的內(nèi)參和畸變矩陣后,可以使用該程序批量校正圖片
代碼片段和文件信息
#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
評(píng)論
共有 條評(píng)論