cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
Loading...
Searching...
No Matches
camera.h
1#ifndef CELLUVIEW_CAMERA_H
2#define CELLUVIEW_CAMERA_H
3
4
5#include <opencv2/core.hpp>
6#include <opencv2/videoio.hpp>
7#include <iostream>
8#include <stdlib.h>
9#include <thread>
10#include "imageProcessor.h"
11
12#include "frame.h"
13
17class Camera: public imageProcessor{
18public:
19 Camera() = default;
20 void start(int deviceID = 0, int apiID=0);
21 void stop();
22 bool getIsOn();
23 void captureMetadata();
24 void setExposure(int);
25 void updateSettings(std::map<std::string, std::string>);
26 void setNote(std::string);
27
31 std::string getParamLabel(){return paramLabel;};
32
36 void receiveFrame(frame newFrame){return;};
37
38
39
40private:
41 frame f;
42 void postFrame();
43 void threadLoop();
44 cv::VideoCapture videoCapture;
45 std::thread cameraThread;
46 std::string exposureState = "OFF";
47 bool isOn = false;
48 std::string paramLabel = "exposure";
49 std::string paramLabel2 = "note";
50 bool doMeta = false;
51 std::string note = " ";
52
53};
54
55#endif // CELLUVIEW_CAMERA_H
Definition: camera.h:17
void start(int deviceID=0, int apiID=0)
Definition: camera.cpp:46
bool getIsOn()
Definition: camera.cpp:76
void captureMetadata()
Definition: camera.cpp:83
std::string getParamLabel()
Definition: camera.h:31
void receiveFrame(frame newFrame)
Definition: camera.h:36
void stop()
Definition: camera.cpp:56
void updateSettings(std::map< std::string, std::string >)
Definition: camera.cpp:90
void setNote(std::string)
Definition: camera.cpp:111
void setExposure(int)
Definition: camera.cpp:65
Definition: frame.h:20
Definition: imageProcessor.h:15