当前位置:网站首页>标定。。。
标定。。。
2022-06-26 00:26:00 【ooolmf】
void Cmy3DScanMFCDlg::OnBnClickedButton3()//开始
{
// TODO: 在此添加控件通知处理程序代码
plistb->AddString(_T("开始标定:"));
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: 在此添加控件通知处理程序代码
//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("第")+ CStemp+_T("次标定失败!"));
}
else
{
CString CStemp;
CStemp.Format(_T("%d"), cam.group_num+1 - cam.calib_num);
plistb->AddString(_T("第") + CStemp + _T("次标定完成!"));
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("标定完成!!!") );
delete grating.src_grating_cllect;
grating.src_grating_cllect = new cv::Mat[cam.group_num][13];
}
}
边栏推荐
- Three factors affecting personal growth
- PTA class a simulated sixth bomb: 1156-1159
- Show spirit chenzitong was invited to be the chief experience officer of the global finals of the sixth season perfect children's model
- 图形渲染管线
- wifi 的理论速度计算方法
- Distributed systems (II) understanding of distributed transactions
- Easy to understand C language keyword static
- Gun make (5) variables in makefile
- Dataframe extracts data from a column and converts it into a list
- wifi 相关知识详解
猜你喜欢
随机推荐
Dazhou suggested that we media bloggers do these four things in the early stage
Dataframe converts the data type of a column
Perfdog
Chinese and English instructions of collagen enzyme Worthington
Pixel6 unlock bootloader
Tcp网络通信中各个状态的含义
Record a weird picture upload problem
JQ user defined attribute value
Input 3 integers and output them from large to small
About vs scanf, 'scanf' appears: this function or variable may be unsafe Solutions to the problem of consumer usi
Web Testing
王老吉药业“关爱烈日下最可爱的人”公益活动在杭启动
甜酷少女金书伊 受邀担任第六季完美童模全球总决赛代言人
17.11 std::atomic续谈、std::async深入谈
Redis-SDS
Easy to understand C language keyword static
Multi type study of Worthington collagen protease
Three factors affecting personal growth
A solution to cross domain problems
输入3个整数,从大到小输出出来









