![]() |
cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
|
#include <camera.h>
Public Member Functions | |
| void | start (int deviceID=0, int apiID=0) |
| void | stop () |
| bool | getIsOn () |
| void | captureMetadata () |
| void | setExposure (int) |
| void | updateSettings (std::map< std::string, std::string >) |
| void | setNote (std::string) |
| std::string | getParamLabel () |
| void | receiveFrame (frame newFrame) |
Public Member Functions inherited from imageProcessor | |
| virtual void | receiveFrame (frame newFrame)=0 |
| virtual void | updateSettings (std::map< std::string, std::string >)=0 |
| virtual std::string | getParamLabel ()=0 |
| void | registerCallback (imageProcessor *cb) |
| bool | toggleEnable () |
| bool | getEnabled () |
Additional Inherited Members | |
Protected Attributes inherited from imageProcessor | |
| imageProcessor * | frameCb = nullptr |
| bool | enabled = false |
Class to capture frames at framerate of camera using OpenCV and send to image processing blocks through callbacks.
| void Camera::captureMetadata | ( | ) |
Sets doMeta to true, to enable metadata in frame structure for the following frame.
| bool Camera::getIsOn | ( | ) |
|
inlinevirtual |
Not required for camera.
Implements imageProcessor.
|
inlinevirtual |
Not required for camera.
Implements imageProcessor.
| void Camera::setExposure | ( | int | exposureValue | ) |
Modifies camera exposure value
| exposureValue | exposure in EV |
| void Camera::setNote | ( | std::string | noteIn | ) |
Sets the note value which is saved in metadata and shown under images in the gallery preview.
| void Camera::start | ( | int | deviceID = 0, |
| int | apiID = 0 |
||
| ) |
Starts recording in separate camera thread.
| void Camera::stop | ( | ) |
Stops camera thread. Call before program exit.
|
virtual |
| metadata | updates exposure value saved in restored metadata map |
Implements imageProcessor.