当前位置:网站首页>Calibration...
Calibration...
2022-06-26 02:02: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];
}
}
边栏推荐
猜你喜欢

cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network

Dataframe to list

Playful girl wangyixuan was invited to serve as the Promotion Ambassador for the global finals of the sixth season perfect children's model

What happens from entering a web address in the browser's input box to seeing the contents of the web page?

Redis7.0的安装步骤

cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network

【js】免费api判断节假日、工作日和周六日

Distributed systems (II) understanding of distributed transactions

The answer skills and examples of practical cases of the second construction company are full of essence

Abnova CMV CISH probe solution
随机推荐
Principle of voice wake-up
将weishi相机图片进行转换
tos cos dscp 区别和作用
记录一个诡异的图片上传问题
vtk初始化代码学习1
Abnova actn4 DNA probe solution
Steps of program compilation precompile compilation assembly connection
Tcp网络通信中各个状态的含义
Mot - clé C facile à comprendre statique
Reverse output an integer
Gun make (3) Rules for makefile
17.11 std::atomic续谈、std::async深入谈
Finding the sum of N multiplications
Detailed explanation of WiFi related knowledge
Dataframe converts the data type of a column
Sweet cool girl jinshuyi was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Brief introduction to the usage of iloc in dataframe
shell curl 执行脚本,带传参数,自定义参数
输入3个整数,从大到小输出出来
Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) C. Felicity is Coming!