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

VisageRendering displays the current frame and the following tracking results using OpenGL. More...

#include <VisageRendering.h>

Static Public Member Functions

static void DisplayResults (FaceData *trackingData, int trackStat, int width, int height, VsImage *frame, int drawingOptions=DISPLAY_DEFAULT)
 Method calls other methods for drawing the frame and tracking results. More...
 
static void DisplayFrame (const VsImage *image, int width, int height)
 Method draws the current frame. More...
 
static void DisplayFeaturePoints (FaceData *trackingData, int width, int height, VsImage *frame, bool _3D=false, bool relative=false, bool drawQuality=true)
 Method draws facial feature points. More...
 
static void DisplaySplines (FaceData *trackingData, int width, int height)
 Method draws splines. More...
 
static void DisplayGaze (FaceData *trackingData, int width, int height)
 Method draws the gaze direction. More...
 
static void DisplayIrises (FaceData *trackingData, int width, int height, VsImage *frame)
 Method draws the circle around irises. More...
 
static void DisplayModelAxes (FaceData *trackingData, int width, int height)
 Method draws model axes. More...
 
static void DisplayWireFrame (FaceData *trackingData, int width, int height, float alpha=1.0f)
 Method draws face model. More...
 
static void DisplayActionUnits (FaceData *trackingData, int width, int height)
 Method draws action units. More...
 
static void CalcSpline (std::vector< float > &inputPoints, int ratio, std::vector< float > &outputPoints)
 Method returns vector of calculated spline points. More...
 
static void DisplayTrackingQualityBar (FaceData *trackingData)
 Method draws a bar in the lower left corner indicating tracking quality value. More...
 
static void DisplayLogo (const VsImage *logo, int width, int height)
 Method draws a logo in the upper right corner. More...
 
static void DisplayText (const char *displayText, float effectValue, float scale=1.0f)
 Method used to display text with animation (fade in or fade out effect) More...
 
static void DisplayImage (VsImage *image, float effectValue, bool imageChanged)
 Method used to display image with animation (fade in or fade out effect) More...
 
static void SetFontTexture (const VsImage *font_tex)
 Method sets font texture. More...
 

Detailed Description

VisageRendering displays the current frame and the following tracking results using OpenGL.

Definition at line 85 of file VisageRendering.h.

Member Function Documentation

◆ CalcSpline()

static void VisageSDK::VisageRendering::CalcSpline ( std::vector< float > &  inputPoints,
int  ratio,
std::vector< float > &  outputPoints 
)
static

Method returns vector of calculated spline points.

Parameters
inputPoints- vector of points which need to be connected with a spline
ratio- number of spline points that need to be calculated between neighbouring input points
outputPoints- vector of calculated spline points

◆ DisplayActionUnits()

static void VisageSDK::VisageRendering::DisplayActionUnits ( FaceData *  trackingData,
int  width,
int  height 
)
static

Method draws action units.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window

◆ DisplayFeaturePoints()

static void VisageSDK::VisageRendering::DisplayFeaturePoints ( FaceData *  trackingData,
int  width,
int  height,
VsImage *  frame,
bool  _3D = false,
bool  relative = false,
bool  drawQuality = true 
)
static

Method draws facial feature points.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window
frame- image for drawing
_3D- use 3D feature points
relative- use relative 3D feature points
drawQuality- indicates whether tracking quality of feature points will be displayed

◆ DisplayFrame()

static void VisageSDK::VisageRendering::DisplayFrame ( const VsImage *  image,
int  width,
int  height 
)
static

Method draws the current frame.

Parameters
image- image for drawing
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window

◆ DisplayGaze()

static void VisageSDK::VisageRendering::DisplayGaze ( FaceData *  trackingData,
int  width,
int  height 
)
static

Method draws the gaze direction.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window

◆ DisplayImage()

static void VisageSDK::VisageRendering::DisplayImage ( VsImage *  image,
float  effectValue,
bool  imageChanged 
)
static

Method used to display image with animation (fade in or fade out effect)

Parameters
imageimage that will be displayed
effectValuevalue describing the level of image transparency
imageChangedused to indicate that the image has changed and should be bound to the texture

◆ DisplayIrises()

static void VisageSDK::VisageRendering::DisplayIrises ( FaceData *  trackingData,
int  width,
int  height,
VsImage *  frame 
)
static

Method draws the circle around irises.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window
frame- image for drawing

◆ DisplayLogo()

static void VisageSDK::VisageRendering::DisplayLogo ( const VsImage *  logo,
int  width,
int  height 
)
static

Method draws a logo in the upper right corner.

Parameters
logo- existing logo image
width- viewport width
height- viewport height

◆ DisplayModelAxes()

static void VisageSDK::VisageRendering::DisplayModelAxes ( FaceData *  trackingData,
int  width,
int  height 
)
static

Method draws model axes.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window

◆ DisplayResults()

static void VisageSDK::VisageRendering::DisplayResults ( FaceData *  trackingData,
int  trackStat,
int  width,
int  height,
VsImage *  frame,
int  drawingOptions = DISPLAY_DEFAULT 
)
static

Method calls other methods for drawing the frame and tracking results.

Parameters
trackingData- tracking results
trackStat- tracker status
width- width of the OpenGL window, adjusted so that the aspect of the drawing frame is perserved
height- height of the OpenGL window, adjusted so that the aspect of the drawing frame is perserved
frame- image for drawing
drawingOptions- enables user to choose what tracking results to display; by default all the tracking results are displayed

Referenced by Java_com_visagetechnologies_facedetectdemo_DetectorRenderer_displayIdentity().

◆ DisplaySplines()

static void VisageSDK::VisageRendering::DisplaySplines ( FaceData *  trackingData,
int  width,
int  height 
)
static

Method draws splines.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window

◆ DisplayText()

static void VisageSDK::VisageRendering::DisplayText ( const char *  displayText,
float  effectValue,
float  scale = 1.0f 
)
static

Method used to display text with animation (fade in or fade out effect)

Parameters
displayTexttext that will be displayed
effectValuevalue describing the level of text transparency
scalescale of the font

◆ DisplayTrackingQualityBar()

static void VisageSDK::VisageRendering::DisplayTrackingQualityBar ( FaceData *  trackingData)
static

Method draws a bar in the lower left corner indicating tracking quality value.

Parameters
trackingData- tracking results

◆ DisplayWireFrame()

static void VisageSDK::VisageRendering::DisplayWireFrame ( FaceData *  trackingData,
int  width,
int  height,
float  alpha = 1.0f 
)
static

Method draws face model.

Parameters
trackingData- tracking results
width- adjusted width of the OpenGL window
height- adjusted height of the OpenGL window
alpha- value controlling transparency

◆ SetFontTexture()

static void VisageSDK::VisageRendering::SetFontTexture ( const VsImage *  font_tex)
static

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