当前位置:网站首页>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];
}
}
边栏推荐
- The first intimate contact of caching technology
- regular expression
- biggan:large scale gan training for high fidelity natural image synthesis
- makefile 中export set ENV 的区别和作用
- LeetCode 41 ~ 50
- Command of gun make (4) rule
- Use of redis
- 如何制定可实现中长期目标?
- 缓存技术之第一次亲密接触
- Steps of program compilation precompile compilation assembly connection
猜你喜欢

CyCa children's physical etiquette Yueqing City training results assessment successfully concluded

如何为政企移动办公加上一道“安全锁”?

The 19th - 22nd week of scientific research training - about tnet and memnet

Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model

Disruptor (I) sequence

Abnova anti GBA monoclonal antibody solution

Pre ++, post ++ and pre -- and post -- (+a, a++ and --a, a--)

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

-- EGFR FISH probe solution

Mot - clé C facile à comprendre statique
随机推荐
Is the securities account recommended by qiniu safe?
Abnova anti GBA monoclonal antibody solution
biggan:large scale gan training for high fidelity natural image synthesis
A lost note for konjaku beginner
Record a weird picture upload problem
前置++,后置++与前置--与后置--(++a,a++与--a,a--)
标定。。。
Abnova actn4 DNA probe solution
The first intimate contact of caching technology
Disruptor(一)Sequence
Visual studio 2013 redistributable is installed, but MySQL installation fails
PTA class a simulated third bomb: 1140-1143
Dataframe to list
Detailed explanation of memory leak check tools
Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Command of gun make (4) rule
求n乘阶之和
Redis7.0 installation steps
makefile 中export set ENV 的区别和作用
程序 编译的步骤 预编译 编译 汇编 连接