Recieves frames (as cv::Mat), processes them (ideally asynchronously) and emits them as a QImage (i.e.
More...
#include <FrameConverter.hpp>
|
void | processFrame (const cv::Mat &frame, enum ColorSpace) |
| Add a new frame to be processed; if not processAll this frame may yet be dropped. More...
|
|
void | setFrameSize (QSize size) |
| Set the resolution of the frames we are processing.
|
|
void | stop () |
| Stop processing frames.
|
|
|
void | imageReady (const QImage &) |
| Emitted when we have a QImage from processing ready for display.
|
|
|
| FrameConverter (QObject *parent=0) |
|
void | setProcessAll (bool all) |
| Set whether we should process all frames, or drop some.
|
|
|
void | queue (const cv::Mat &frame, ColorSpace cs) |
| Queue a new frame to be processed (depends on processAll if it gets processed). More...
|
|
void | process (cv::Mat frame, ColorSpace cs) |
| Actually process a frame. More...
|
|
void | timerEvent (QTimerEvent *ev) |
| Called each time that mTimer ticks... More...
|
|
|
static void | matDeleter (void *mat) |
| Delete a cv::Mat object.
|
|
|
QBasicTimer | mTimer |
| Process a frame at each tick of this timer.
|
|
cv::Mat | currentFrame |
| The current frame to process into a QImage.
|
|
ColorSpace | currentCS |
| The current ColorSpace of the frame we are processing.
|
|
bool | processAll = true |
| Whether we should process all frames, or drop some to keep framerate.
|
|
QSize | frameSize |
| The resolution of the frames that we are processing.
|
|
Recieves frames (as cv::Mat), processes them (ideally asynchronously) and emits them as a QImage (i.e.
for use in a QWidget)
void FrameConverter::process |
( |
cv::Mat |
frame, |
|
|
ColorSpace |
cs |
|
) |
| |
|
private |
Actually process a frame.
Resultant QImage gets emitted by imageReady()
void FrameConverter::processFrame |
( |
const cv::Mat & |
frame, |
|
|
enum |
ColorSpace |
|
) |
| |
|
slot |
Add a new frame to be processed; if not processAll this frame may yet be dropped.
void FrameConverter::queue |
( |
const cv::Mat & |
frame, |
|
|
ColorSpace |
cs |
|
) |
| |
|
private |
Queue a new frame to be processed (depends on processAll if it gets processed).
void FrameConverter::timerEvent |
( |
QTimerEvent * |
ev | ) |
|
|
private |
Called each time that mTimer ticks...
we call process on the queue in here.
The documentation for this class was generated from the following files: