Initial commit

This commit is contained in:
uvos 2021-06-10 12:09:44 +02:00
commit 5efbdcbd6a
32 changed files with 1914 additions and 0 deletions

41
src/imagepipeline.h Normal file
View file

@ -0,0 +1,41 @@
#ifndef IMAGEPIPELINE_H
#define IMAGEPIPELINE_H
#include <QObject>
#include <vector>
#include <QFutureWatcher>
#include "profile.h"
#include "cameras.h"
class ImagePipeline: public QObject
{
Q_OBJECT
private:
Cameras* cameras_;
Profile profile_;
bool invalid_ = true;
std::vector<QFutureWatcher<cv::Mat>*> futureImageWatchers_;
static cv::Mat process(const Profile profile, std::vector<Camera::Image> images);
private slots:
void apply(std::vector<Camera::Image> images);
void imageFinished();
signals:
void sigInvalidProfile(QString message);
void sigResult(Camera::Image image);
public slots:
void setProfile(const Profile& profile);
public:
ImagePipeline(Cameras* cameras, QObject* parent = nullptr);
};
#endif // IMAGEPIPELINE_H