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
Collaboration diagram for AcquisitionThread:
Collaboration graph

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 


This method start acquisition parameters and starts the thread.

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

◆ startVideo()

void AcquisitionThread::startVideo ( QString  fileName)


Method to start video reading.

fileNameThe name of the video file

◆ stopCamera()

void AcquisitionThread::stopCamera ( )


This method stops thread and acquisition.

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