Finish up
This commit is contained in:
parent
5efbdcbd6a
commit
0c466644ce
23 changed files with 958 additions and 154 deletions
49
src/ui/configurecameradialog.h
Normal file
49
src/ui/configurecameradialog.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#ifndef CONFIGURECAMERADIALOG_H
|
||||
#define CONFIGURECAMERADIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "cameras.h"
|
||||
#include "profile.h"
|
||||
|
||||
namespace Ui {
|
||||
class ConfigureCameraDialog;
|
||||
}
|
||||
|
||||
class ConfigureCameraDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
static constexpr int MODE_IDLE = 0;
|
||||
static constexpr int MODE_REMAP_GET = 1;
|
||||
static constexpr int MODE_BG_GET = 2;
|
||||
static constexpr int MODE_DARK_GET = 3;
|
||||
|
||||
CameraSetup setup_;
|
||||
std::shared_ptr<Camera> camera_;
|
||||
int mode_ = MODE_IDLE;
|
||||
cv::Mat fgImage;
|
||||
|
||||
private:
|
||||
bool checkConfig();
|
||||
void gotImage(Camera::Image img);
|
||||
|
||||
private slots:
|
||||
void loadBg();
|
||||
void loadRemap();
|
||||
void loadDark();
|
||||
void captureBg();
|
||||
void captureRemap();
|
||||
void captureDark();
|
||||
void takeImage();
|
||||
|
||||
public:
|
||||
explicit ConfigureCameraDialog(const CameraSetup& setup, const std::shared_ptr<Camera> camera, double exposureTime = 1.0/60, QWidget *parent = nullptr);
|
||||
~ConfigureCameraDialog();
|
||||
CameraSetup getCameraSetup(){return setup_;}
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
Ui::ConfigureCameraDialog *ui;
|
||||
};
|
||||
|
||||
#endif // CONFIGURECAMERADIALOG_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue