Morpholo project
Public Member Functions | Protected Member Functions | List of all members
AcquisitionThread Class Reference

The AcquisitionThread class. More...

#include <acquisitionthread.h>

Inheritance diagram for AcquisitionThread:
Inheritance graph
[legend]
Collaboration diagram for AcquisitionThread:
Collaboration graph
[legend]

Public Member Functions

 AcquisitionThread (QObject *parent=NULL)
 
Mat * getFrame ()
 
void startCamera (int dev, int xRes=CAMERA_WIDTH, int yRes=CAMERA_HEIGHT, int fps=CAMERA_FPS)
 startCamera More...
 
void startVideo (QString fileName)
 startVideo More...
 
void stopCamera ()
 stopCamera More...
 

Protected Member Functions

void run () override
 

Detailed Description

The AcquisitionThread class.

This class provides functionatilities to perform real time frame acqusisition with double buffering matrices. One matrix has fed with fresh image. When another thread needs current image, the getFrame method locks and switches newestFrame with processingFrame pointer.

Member Function Documentation

◆ startCamera()

void AcquisitionThread::startCamera ( int  dev,
int  xRes = CAMERA_WIDTH,
int  yRes = CAMERA_HEIGHT,
int  fps = CAMERA_FPS 
)

startCamera

This method start acquisition parameters and starts the thread.

Parameters
devDevice number /dev/video#
xResX camera request resolution
yResY camera request resolution
fpsRequested frame per seconds

◆ startVideo()

void AcquisitionThread::startVideo ( QString  fileName)

startVideo

Method to start video reading.

Parameters
fileNameThe name of the video file

◆ stopCamera()

void AcquisitionThread::stopCamera ( )

stopCamera

This method stops thread and acquisition.


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