当前位置:网站首页>标定。。。
标定。。。
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];
}
}
边栏推荐
- 阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
- PTA class a simulated 8th bomb: 1164-1167
- Xiaomi tablet 5 Pro unlock bootloader
- PTA class a simulated third bomb: 1140-1143
- 如何使用命令将文件夹中的文件名(包括路径)写入到txt文件中
- Energetic girl wangyujie was invited to be the spokesperson for the global finals of the sixth season perfect children's model
- Application and chemical properties of elastase
- The answer skills and examples of practical cases of the second construction company are full of essence
- Eight principles of element positioning
- 缓存技术之第一次亲密接触
猜你喜欢

Energetic girl wangyujie was invited to be the spokesperson for the global finals of the sixth season perfect children's model

V4L2+QT视频优化策略

Abnova anti GBA monoclonal antibody solution

Mot - clé C facile à comprendre statique

recvmsg & sendmsg

王老吉药业“关爱烈日下最可爱的人”公益活动在杭启动

readv & writev

A lost note for konjaku beginner

General introduction to gun make (2)

阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
随机推荐
PTA class a simulated sixth bomb: 1156-1159
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
Chrome浏览器开发者工具使用
Show spirit chenzitong was invited to be the chief experience officer of the global finals of the sixth season perfect children's model
论文阅读 Exploring Temporal Information for Dynamic Network Embedding
安装了Visual Studio 2013 Redistributable,mysql还是安装失败
如何制定可实现中长期目标?
Several methods of JQ obtaining objects
shell curl 执行脚本,带传参数,自定义参数
The 19th - 22nd week of scientific research training - about tnet and memnet
Talking about interface test (2)
How to set an achievable annual goal?
Sweet cool girl jinshuyi was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Distributed systems (II) understanding of distributed transactions
recv & send
Redis-SDS
Dataframe extracts data from a column and converts it into a list
Differences and functions of TOS cos DSCP
App test (I)
Is the securities account recommended by qiniu safe?