improve kfactor support
add per camera gain add the ability to save plot to vector pdf add the ability to plot uint8_t mat types
This commit is contained in:
parent
1b6c3672b6
commit
24646e82ed
12 changed files with 185 additions and 110 deletions
|
|
@ -51,6 +51,9 @@ ConfigureCameraDialog::ConfigureCameraDialog(const CameraSetup& setup, std::shar
|
|||
break;
|
||||
}
|
||||
|
||||
ui->doubleSpinBoxGain->setValue(setup_.gain);
|
||||
|
||||
camera_->cam()->setGain(setup_.gain);
|
||||
camera_->cam()->setBayerMode(setup_.bayerMode);
|
||||
|
||||
uint64_t min, max;
|
||||
|
|
@ -70,6 +73,7 @@ ConfigureCameraDialog::ConfigureCameraDialog(const CameraSetup& setup, std::shar
|
|||
connect(ui->pushButtonBgShow, &QPushButton::clicked, [this](){if(setup_.bgmask.data) ui->widget_4->setImage(Camera::Image(setup_.bgmask, 0));});
|
||||
connect(ui->pushButtonDarkImageShow, &QPushButton::clicked, [this](){if(setup_.darkmap.data) ui->widget_4->setImage(Camera::Image(setup_.darkmap, 0));});
|
||||
connect(ui->comboBox_bayer, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ConfigureCameraDialog::bayerIndexChanged);
|
||||
connect(ui->doubleSpinBoxGain, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &ConfigureCameraDialog::setExposure);
|
||||
|
||||
checkConfig();
|
||||
}
|
||||
|
|
@ -87,6 +91,15 @@ void ConfigureCameraDialog::setExposure(double value)
|
|||
qDebug()<<"set exposure to "<<value*1000000.0;
|
||||
}
|
||||
|
||||
void ConfigureCameraDialog::setGain(double value)
|
||||
{
|
||||
if(!camera_->cam()->setGain(value))
|
||||
QMessageBox::warning(this, "Warning", "Failed to set exposure");
|
||||
else
|
||||
qDebug()<<"set gain to "<<value;
|
||||
setup_.gain = value;
|
||||
}
|
||||
|
||||
void ConfigureCameraDialog::bayerIndexChanged(int index)
|
||||
{
|
||||
switch(index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue