visageSDK
Public Member Functions | List of all members
VisageSDK::AndroidImageCapture Class Reference

AndroidImageCapture is class that implements a simple frame grabber that serves a single image to the tracker. More...

#include <AndroidImageCapture.h>

Public Member Functions

 AndroidImageCapture ()
 Constructor.
 
 AndroidImageCapture (int width, int height, int format=VISAGE_FRAMEGRABBER_FMT_LUMINANCE)
 Constructor. More...
 
 ~AndroidImageCapture (void)
 Destructor.
 
VsImage * GrabFrame (long &timeStamp)
 This function is called to get the frame to process.
 
void WriteFrame (unsigned char *imageData, int width, int height)
 Method for writing imageData to buffer object. More...
 
 AndroidImageCapture ()
 Constructor.
 
 AndroidImageCapture (int width, int height, int format=VISAGE_FRAMEGRABBER_FMT_LUMINANCE)
 Constructor. More...
 
 ~AndroidImageCapture (void)
 Destructor.
 
VsImage * GrabFrame (long &timeStamp)
 This function is called to get the frame to process.
 
void WriteFrame (unsigned char *imageData, int width, int height)
 Method for writing imageData to buffer object. More...
 

Detailed Description

AndroidImageCapture is class that implements a simple frame grabber that serves a single image to the tracker.

The image data is passed by calling WriteFrame method.

Definition at line 24 of file ShowcaseDemo/app/src/main/cpp/AndroidImageCapture.h.

Constructor & Destructor Documentation

◆ AndroidImageCapture() [1/2]

VisageSDK::AndroidImageCapture::AndroidImageCapture ( int  width,
int  height,
int  format = VISAGE_FRAMEGRABBER_FMT_LUMINANCE 
)

Constructor.

Parameters
widthwidth of image
heightheight of image
formatformat of image

Definition at line 16 of file AndroidImageCapture.cpp.

◆ AndroidImageCapture() [2/2]

VisageSDK::AndroidImageCapture::AndroidImageCapture ( int  width,
int  height,
int  format = VISAGE_FRAMEGRABBER_FMT_LUMINANCE 
)

Constructor.

Parameters
widthwidth of image
heightheight of image
formatformat of image

Member Function Documentation

◆ WriteFrame() [1/2]

void VisageSDK::AndroidImageCapture::WriteFrame ( unsigned char *  imageData,
int  width,
int  height 
)

Method for writing imageData to buffer object.

Parameters
imageDataraw pixel data of image used for tracking
widthwidth of the frame
heightheight of the frame

Definition at line 43 of file AndroidImageCapture.cpp.

References VsImage::imageData, and VsImage::imageSize.

Referenced by Java_com_visagetechnologies_visagetrackerdemo_ImageTrackerView_WriteFrameImage().

◆ WriteFrame() [2/2]

void VisageSDK::AndroidImageCapture::WriteFrame ( unsigned char *  imageData,
int  width,
int  height 
)

Method for writing imageData to buffer object.

Parameters
imageDataraw pixel data of image used for tracking
widthwidth of the frame
heightheight of the frame

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