cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Camera Class Reference

#include <camera.h>

Inheritance diagram for Camera:
imageProcessor

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
imageProcessorframeCb = nullptr
 
bool enabled = false
 

Detailed Description

Class to capture frames at framerate of camera using OpenCV and send to image processing blocks through callbacks.

Member Function Documentation

◆ captureMetadata()

void Camera::captureMetadata ( )

Sets doMeta to true, to enable metadata in frame structure for the following frame.

◆ getIsOn()

bool Camera::getIsOn ( )
Returns
isOn, true if camera recording started

◆ getParamLabel()

std::string Camera::getParamLabel ( )
inlinevirtual

Not required for camera.

Implements imageProcessor.

◆ receiveFrame()

void Camera::receiveFrame ( frame  newFrame)
inlinevirtual

Not required for camera.

Implements imageProcessor.

◆ setExposure()

void Camera::setExposure ( int  exposureValue)

Modifies camera exposure value

Parameters
exposureValueexposure in EV

◆ setNote()

void Camera::setNote ( std::string  noteIn)

Sets the note value which is saved in metadata and shown under images in the gallery preview.

◆ start()

void Camera::start ( int  deviceID = 0,
int  apiID = 0 
)

Starts recording in separate camera thread.

◆ stop()

void Camera::stop ( )

Stops camera thread. Call before program exit.

◆ updateSettings()

void Camera::updateSettings ( std::map< std::string, std::string >  metadata)
virtual
Parameters
metadataupdates exposure value saved in restored metadata map

Implements imageProcessor.


The documentation for this class was generated from the following files: