mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
Added old firmware and pcb design files
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
#ifndef EMBRYOPROCESSER_H
|
||||
#define EMBRYOPROCESSER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include <QImage>
|
||||
|
||||
#include <opencv2/core/core.hpp>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include "opencv2/objdetect/objdetect.hpp"
|
||||
#include "opencv2/features2d/features2d.hpp"
|
||||
#include <vector>
|
||||
|
||||
#define CAMERA1 0
|
||||
#define CAMERA2 1
|
||||
#define CAMERA3 2
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
||||
class EmbryoProcesser : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit EmbryoProcesser(QObject *parent = 0);
|
||||
void tempVariableSetup(); //Fills variables temporarily until settings saving has been accomplished
|
||||
|
||||
void setupEmbryoCam(); //Opens the video device using requested settings
|
||||
void setupEmbryoDetector(); //Creates an instance of the detector
|
||||
void destroyEmbryoDetector(); //Destroys the instance of the detector
|
||||
|
||||
void setupAndStartThread();
|
||||
void stopAndDestroyThread();
|
||||
void run(); //Overridden function that is run when the thread is started
|
||||
|
||||
public slots:
|
||||
void onThreadStart();
|
||||
|
||||
signals:
|
||||
void qimgOriginalReady(QImage);
|
||||
void qimgProcessedReady(QImage);
|
||||
void qimgSettingsPreviewReady(QImage);
|
||||
|
||||
|
||||
private:
|
||||
bool ableToProcess;
|
||||
|
||||
QThread *thread;
|
||||
|
||||
VideoCapture embryoCam;
|
||||
bool isEmbryoCamOpen;
|
||||
double requestedEmbryoCamNum;
|
||||
CvPoint requestedEmbryoCamResolution;
|
||||
int requestedEmbryoCamFramerate;
|
||||
|
||||
|
||||
SimpleBlobDetector::Params embryoDetectParams;
|
||||
Ptr<FeatureDetector> embryoDetector;
|
||||
vector<cv::KeyPoint> potentialEmbryos;
|
||||
|
||||
};
|
||||
|
||||
#endif // EMBRYOPROCESSER_H
|
||||
Reference in New Issue
Block a user