You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
922 B
31 lines
922 B
#include "libcalibrat.h" |
|
#include "multipoint.h" |
|
|
|
libCalibrat::libCalibrat(QObject *parent) |
|
: QObject{parent} |
|
{ |
|
mp = new MultiPoint(); |
|
connect(this,SIGNAL(signalsetdevice(QString)),mp,SLOT(setdevice(QString))); |
|
connect(this,SIGNAL(signalsetIT(double)),mp,SLOT(setit(double))); |
|
connect(this,SIGNAL(signalsetparas(int,int)),mp,SLOT(setparas(int,int))); |
|
connect(this,SIGNAL(signalloadfile()),mp,SLOT(loaddata())); |
|
connect(this,SIGNAL(signalrun(cv::Mat)),mp,SLOT(runData(cv::Mat))); |
|
connect(this,&libCalibrat::signalStatus,[=](bool status){ |
|
if(status) { |
|
mp->enable = true; |
|
mp->loaddata(); |
|
} |
|
else{ |
|
mp->off(); |
|
} |
|
}); |
|
|
|
|
|
connect(mp,&MultiPoint::signalLog,[=](QString log){ |
|
emit signallogtext(log); |
|
}); |
|
|
|
connect(mp,&MultiPoint::signalsendimg,[=](cv::Mat dst){ |
|
emit signalsendimag(dst); |
|
}); |
|
}
|
|
|