ProjectedTextures
Prototype software for spacial augmented reality applications.
|
#include <OpenCvCam.h>
Public Slots | |
void | setExposure (int exposure) |
void | setGain (int gain) |
![]() | |
void | setViewMatrix (QMatrix4x4 viewMat) |
virtual void | setExposure (int exposure)=0 |
virtual void | setGain (int gain)=0 |
Public Member Functions | |
OpenCvCam (QString name, int deviceId, int frameWidth, int frameHeight, int targetFps, int bufferSize, QString calibrationFile) | |
~OpenCvCam (void) | |
![]() | |
Camera (QString name, int frameWidth, int frameHeight, int targetFps, int bufferSize, QString calibrationFile) | |
virtual | ~Camera (void) |
void | stop () |
void | stopAndDelete () |
QString | getName () |
Mat | getFrameMat (bool grayscale=false) |
QImage | getFrameQImage (bool grayscale=false) |
bool | isConnected () |
int | getFrameWidth () |
int | getFrameHeight () |
int | getFPS () |
int | getTargetFPS () |
QString | getCalibrationFile () |
QMatrix4x4 | getProjMat () |
QMatrix4x4 | getViewMat () |
Protected Member Functions | |
void | grabFrame () |
![]() | |
void | run () |
void | submitFrame (Mat m, bool mono) |
void | updateFPS (int timeElapsed) |
QImage | matToQImage (const Mat &mat) |
Protected Attributes | |
VideoCapture | cap |
![]() | |
QString | name |
QList< Frame > | frameBuffer |
int | bufferSize |
int | maxConcurrentReads |
int | frameWidth |
int | frameHeight |
int | targetFps |
int | curFrameIdx |
QMutex | curFrameMutex |
QMutex | stopMutex |
volatile bool | doStop |
bool | connected |
QString | calibrationFile |
QMatrix4x4 | projMat |
QMatrix4x4 | viewMat |
QTime | t |
int | captureTime |
QQueue< int > | fpsQueue |
int | avgFPS |
Additional Inherited Members | |
![]() | |
void | newFrame () |
void | newFps (int fps) |
![]() | |
static const int | fpsQueueLength = 32 |
a camera class using OpenCVs camera capture functionality
OpenCvCam::OpenCvCam | ( | QString | name, |
int | deviceId, | ||
int | frameWidth, | ||
int | frameHeight, | ||
int | targetFps, | ||
int | bufferSize, | ||
QString | calibrationFile | ||
) |
for the rest of the parameters, see Camera
deviceId | the id assigned to a connected USB camera by OpenCV, starts from 0, doesn't follow any rules |
OpenCvCam::~OpenCvCam | ( | void | ) |
|
protectedvirtual |
actually capture the frame
Implements Camera.
|
inlineslot |
|
inlineslot |
|
protected |
OpenCV-class that can capture camera frames