|
visageSDK
|
Implements a simple frame grabber that serves a single image to the tracker in order to demonstrate the raw image input mechanism. More...
#include <DemoFrameGrabber.h>
Public Member Functions | |
| DemoFrameGrabber (void) | |
| Contructor. More... | |
| ~DemoFrameGrabber (void) | |
| Destructor. More... | |
| unsigned char * | GrabFrame (long &timeStamp) |
| VisageTracker calls this function periodically to get the new frame to process. More... | |
| DemoFrameGrabber (AVAsset *video) | |
| Constructor. More... | |
| DemoFrameGrabber (UIImage *image) | |
| Constructor. More... | |
| ~DemoFrameGrabber (void) | |
| Destructor. More... | |
| unsigned char * | GrabFrame (long &timeStamp) |
| VisageTracker calls this function periodically to get the new frame to process. More... | |
Public Attributes | |
| VsImage * | frame |
| Frame that is served to the tracker. | |
Implements a simple frame grabber that serves a single image to the tracker in order to demonstrate the raw image input mechanism.
The image is read from a file.
Definition at line 11 of file VisageTrackerDemo/Classes/DemoFrameGrabber.h.
| DemoFrameGrabber::DemoFrameGrabber | ( | void | ) |
Contructor.
Initialises the frame grabber by reading an image from a file.
Definition at line 37 of file VisageTrackerDemo/Classes/DemoFrameGrabber.mm.
| DemoFrameGrabber::~DemoFrameGrabber | ( | void | ) |
Destructor.
Releases the frame.
Definition at line 73 of file VisageTrackerDemo/Classes/DemoFrameGrabber.mm.
| DemoFrameGrabber::DemoFrameGrabber | ( | AVAsset * | video | ) |
Constructor.
Initialises the frame grabber by reading a video file.
Definition at line 36 of file ShowcaseDemo/ShowcaseDemo/DemoFrameGrabber.mm.
| DemoFrameGrabber::DemoFrameGrabber | ( | UIImage * | image | ) |
Constructor.
Initialises the frame grabber by reading an image from a file.
Definition at line 54 of file ShowcaseDemo/ShowcaseDemo/DemoFrameGrabber.mm.
| DemoFrameGrabber::~DemoFrameGrabber | ( | void | ) |
Destructor.
Releases the frame.
| unsigned char * DemoFrameGrabber::GrabFrame | ( | long & | timeStamp | ) |
VisageTracker calls this function periodically to get the new frame to process.
In this simple implementation same frame is returned every time.
Definition at line 64 of file VisageTrackerDemo/Classes/DemoFrameGrabber.mm.
References VsImage::imageData.
| unsigned char* DemoFrameGrabber::GrabFrame | ( | long & | timeStamp | ) |
VisageTracker calls this function periodically to get the new frame to process.
In this simple implementation same frame is returned every time.
1.8.15