当前位置:网站首页>标定。。。
标定。。。
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];
}
}
边栏推荐
- 图形渲染管线
- -- EGFR FISH probe solution
- What happens from entering a web address in the browser's input box to seeing the contents of the web page?
- Differences and functions of export set env in makefile
- One minute to understand the difference between synchronous, asynchronous, blocking and non blocking
- 阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
- Chemical properties and application of trypsin
- Principle of voice wake-up
- 求n的乘阶
- Dataframe extracts data from a column and converts it into a list
猜你喜欢
Sweet girl lisixia was invited to be the little host of the global finals of the sixth season perfect child model
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
如何为政企移动办公加上一道“安全锁”?
元气少女王钰洁 受邀担任第六季完美童模全球总决赛代言人
通俗易懂C语言关键字static
俏皮少女王艺璇 受邀担任第六季完美童模全球总决赛推广大使
Abnova actn4 DNA probe solution
王老吉药业“关爱烈日下最可爱的人”公益活动在杭启动
shell学习记录(四)
甜酷少女金书伊 受邀担任第六季完美童模全球总决赛代言人
随机推荐
Application and chemical properties of elastase
PTA class a simulated 8th bomb: 1164-1167
Redis的使用
Theoretical speed calculation method of WiFi
The role of xargs
Use of redis
V4L2+QT视频优化策略
Differences and functions of export set env in makefile
Perfdog
Dazhou suggested that we media bloggers do these four things in the early stage
regular expression
What happens from entering a web address in the browser's input box to seeing the contents of the web page?
easyexcel读取文件
Abnova anti GBA monoclonal antibody solution
Gun make (7) execute make
如何制定可实现中长期目标?
程序 编译的步骤 预编译 编译 汇编 连接
Code coverage test (I)
Eight principles of element positioning
JQ user defined attribute value