fix various bugs
add commandline parser for various options allow cameras to be operated in serial fashion allow disabeling of quirks allow changing of Photonfocus quirk timeings
This commit is contained in:
parent
3a77df6dd5
commit
b9b4b0fc2a
10 changed files with 134 additions and 36 deletions
|
|
@ -9,11 +9,12 @@
|
|||
#include <opencv2/imgproc.hpp>
|
||||
#include <QDebug>
|
||||
|
||||
ConfigureCameraDialog::ConfigureCameraDialog(const CameraSetup& setup, std::shared_ptr<Camera> camera, double exposureTime, QWidget *parent):
|
||||
ConfigureCameraDialog::ConfigureCameraDialog(const CameraSetup& setup, std::shared_ptr<Camera> camera, double exposureTime, bool nodistort, QWidget *parent):
|
||||
QDialog(parent),
|
||||
setup_(setup),
|
||||
camera_(camera),
|
||||
profileExposure_(exposureTime),
|
||||
nodistort_(nodistort),
|
||||
ui(new Ui::ConfigureCameraDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -21,6 +22,14 @@ ConfigureCameraDialog::ConfigureCameraDialog(const CameraSetup& setup, std::shar
|
|||
ui->doubleSpinBox->setValue(profileExposure_);
|
||||
setExposure(profileExposure_);
|
||||
|
||||
if(nodistort)
|
||||
{
|
||||
ui->ledRemap->setHidden(true);
|
||||
ui->label_2->setHidden(true);
|
||||
ui->pushButtonRemapClear->setHidden(true);
|
||||
ui->pushButtonRemapCreate->setHidden(true);
|
||||
}
|
||||
|
||||
switch(setup.bayerMode)
|
||||
{
|
||||
case cam::Camera::BAYER_BLUE:
|
||||
|
|
@ -215,5 +224,5 @@ bool ConfigureCameraDialog::checkConfig()
|
|||
ui->ledDark->setLit(darkMapOK);
|
||||
ui->ledRemap->setLit(remapMapOk);
|
||||
|
||||
return remapMapOk;
|
||||
return remapMapOk || nodistort_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue