|
ProjectedTextures
Prototype software for spacial augmented reality applications.
|
#include <PsEyeCam.h>
Public Slots | |
| void | setExposure (int exposure) |
| void | setGain (int gain) |
Public Slots inherited from Camera | |
| void | setViewMatrix (QMatrix4x4 viewMat) |
| virtual void | setExposure (int exposure)=0 |
| virtual void | setGain (int gain)=0 |
Public Member Functions | |
| PsEyeCam (QString name, GUID uuid, CLEyeCameraResolution resolution, QString mode, int gain, int exposure, int targetFps, int bufferSize, QString calibrationFile) | |
| ~PsEyeCam (void) | |
Public Member Functions inherited from Camera | |
| 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 () |
Protected Member Functions inherited from Camera | |
| void | run () |
| void | submitFrame (Mat m, bool mono) |
| void | updateFPS (int timeElapsed) |
| QImage | matToQImage (const Mat &mat) |
Protected Attributes | |
| bool | color |
| CLEyeCameraInstance | eyeCam |
| IplImage * | pCapImage |
| PBYTE | pCapBuffer |
| Mat | matC4 |
| Mat | matC3 |
| Mat | matC1 |
Protected Attributes inherited from Camera | |
| 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 | |
Signals inherited from Camera | |
| void | newFrame () |
| void | newFps (int fps) |
Static Protected Attributes inherited from Camera | |
| static const int | fpsQueueLength = 32 |
a camera class using the CLEye API for PlayStation Eye cameras
| PsEyeCam::PsEyeCam | ( | QString | name, |
| GUID | uuid, | ||
| CLEyeCameraResolution | resolution, | ||
| QString | mode, | ||
| int | gain, | ||
| int | exposure, | ||
| int | targetFps, | ||
| int | bufferSize, | ||
| QString | calibrationFile | ||
| ) |
for the rest of the parameters, see Camera
| uuid | the unique id of each PS-Eye camera |
| resolution | can be VGA or QVGA |
| mode | can be "CLEYE_MONO_PROCESSED", "CLEYE_COLOR_PROCESSED", "CLEYE_MONO_RAW", "CLEYE_COLOR_RAW" |
| PsEyeCam::~PsEyeCam | ( | void | ) |
|
protectedvirtual |
actually capture the frame
Implements Camera.
|
slot |
|
slot |
|
protected |
color or grayscale
|
protected |
CLEye-class representing a camera
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.4