当前位置:网站首页>Calibration...
Calibration...
2022-06-26 02:03:00 【ooolmf】
void Cmy3DScanMFCDlg::OnBnClickedButton3()// Start
{
// TODO: Add control notification handler code here
plistb->AddString(_T(" Start calibration :"));
cd.camera_points.clear();
cd.cornerpoints_temp.clear();
cd.cornerpoints.clear();
cd.worldpoints.clear();
grating.samples_FAI.clear();
delete grating.src_grating_cllect;
grating.src_grating_cllect = new cv::Mat[cam.group_num][13];
cam.calib_num = cam.group_num;
cam.calib_button_flag = 1;
}
void Cmy3DScanMFCDlg::OnBnClickedButton9()
{
// TODO: Add control notification handler code here
//bool flag = cd.collectWorldPoints(grating.src_grating[0]);
bool flag = cd.collectWorldPointsCircle(grating.src_grating[0]);
if (!flag)
{
CString CStemp;
CStemp.Format(_T("%d"), cam.group_num +1-cam.calib_num);
plistb->AddString(_T(" The first ")+ CStemp+_T(" Calibration failed !"));
}
else
{
CString CStemp;
CStemp.Format(_T("%d"), cam.group_num+1 - cam.calib_num);
plistb->AddString(_T(" The first ") + CStemp + _T(" Secondary calibration completed !"));
for (int i = 1;i < 13;++i)
{
grating.src_grating_cllect[cam.group_num - cam.calib_num][i] = grating.src_grating[i];
}
cam.calib_num--;
}
if (cam.calib_num == 0)
{
cd.cameraCalibrationChessBoard();
for (int i = 0;i < cam.group_num;++i)
{
grating.threeFrequencyHeterodyneImproved(cd.cornerpoints[i], grating.src_grating_cllect[i]);
}
cd.calculateCameraPoints();
cd.phase3DPointsMapping(grating.samples_FAI);
plistb->AddString(_T(" Calibration complete !!!") );
delete grating.src_grating_cllect;
grating.src_grating_cllect = new cv::Mat[cam.group_num][13];
}
}
边栏推荐
猜你喜欢

One minute to understand the difference between synchronous, asynchronous, blocking and non blocking

jenkins汉化及汉化无效解决方案

一分钟了解同步、异步、阻塞和非阻塞的区别

cv==biaoding---open----cv001

关于strlen与sizeof的区别

Abnova actn4 DNA probe solution

A lost note for konjaku beginner

论文阅读 Exploring Temporal Information for Dynamic Network Embedding

Visual studio 2013 redistributable is installed, but MySQL installation fails

Abnova CMV CISH probe solution
随机推荐
如何制定一个可实现的年度目标?
Pre ++, post ++ and pre -- and post -- (+a, a++ and --a, a--)
创建OpenGl窗口
求n的乘阶
Mot - clé C facile à comprendre statique
Dazhou suggested that we media bloggers do these four things in the early stage
Is the securities account recommended by qiniu safe?
启牛推荐的证券账户安全吗?
keda 2.7.1 scaledJob 代码简要分析
元气少女王钰洁 受邀担任第六季完美童模全球总决赛代言人
One minute to understand the difference between synchronous, asynchronous, blocking and non blocking
【无标题】vsbiji esp....32
二造实务案例答题技巧和举例汇总,满满都是精髓
将lua print输出到cocos2d控制台输出窗口中
Abnova actn4 DNA probe solution
The role of xargs
PTA class a simulated third bomb: 1140-1143
About vs scanf, 'scanf' appears: this function or variable may be unsafe Solutions to the problem of consumer usi
vscode调试时提示更新到最新调试版本
输入3个整数,从大到小输出出来