class FaceModel

This class is designed to model shape and bounding box of a face in an image

Inheritance:


Public Fields

[more] size of the face model
[more]sPoint2D bbx_center
[more]int bbx_width
[more]int bbx_height

Public Methods

[more] FaceModel(int postype_)
creates a face model
[more]void setPostype(int postype_)
set the type of pos file format
[more]virtual double getAngle()
get the (in-plane) angle
[more]virtual sPoint2D getCenter()
get the center of rotation
[more]sPoint2D getReye()
get coordinates of the right eye if exists, return (0,0) otherwise
[more]sPoint2D getLeye()
get coordinates of the left eye if exists, return (0,0) otherwise
[more]sPoint2D getNosetip()
get coordinates of the nose tip if exists, return (0,0) otherwise
[more]sPoint2D getChin()
get coordinates of the chin if exists, return (0,0) otherwise
[more]virtual void loadXFile(XFile* file)
loads facial features of one face in a pos file according to the postype
[more]virtual ~FaceModel()

Protected Fields

[more] index of specific facial features stored in landmarks


Inherited from ShapeModel:

Public Fields

obool verbose
oint n_ldm_points
osPoint2D* ldm_points
oint n_bbx_points
osPoint2D* bbx_points

Public Methods

ovirtual bool ldm2bbx()
ovirtual bool bbx2ldm()
ovirtual bool bbx2ldm(int n_bbx_points_, sPoint2D* bbx_points_, int n_ldm_points_, sPoint2D* ldm_points_)
ovirtual void rotate(ipRotate* rot_)
ovirtual void drawLDM(Image* image_)
ovirtual void drawBBX(Image* image_)


Documentation

This class is designed to model shape and bounding box of a face in an image

The bounding box is a rectangle.

oint type of pos file
	       1 = eye centers (IDIAP format)
	       2 = BANCA format
	       3 = eye corners
	       4 = eye corners + nose tip + chin
	       5 = left eye corners + right eye center + nose tip + chin
	       6 = left eye center + nose tip + chin
	       68-71 = Tim Cootes formats
	    

o index of specific facial features stored in landmarks

oint r_eye_idx
right eye

oint l_eye_idx
left eye

oint nosetip_idx
nose tip

oint chin_idx
chin

o size of the face model
Example: 15x20, 19x19, 64x80, ..

oreal model_width

oreal model_height

osPoint2D bbx_center

oint bbx_width

oint bbx_height

o FaceModel(int postype_)
creates a face model

ovoid setPostype(int postype_)
set the type of pos file format

ovirtual double getAngle()
get the (in-plane) angle

ovirtual sPoint2D getCenter()
get the center of rotation

osPoint2D getReye()
get coordinates of the right eye if exists, return (0,0) otherwise

osPoint2D getLeye()
get coordinates of the left eye if exists, return (0,0) otherwise

osPoint2D getNosetip()
get coordinates of the nose tip if exists, return (0,0) otherwise

osPoint2D getChin()
get coordinates of the chin if exists, return (0,0) otherwise

ovirtual void loadXFile(XFile* file)
loads facial features of one face in a pos file according to the postype

ovirtual ~FaceModel()


Direct child classes:
NonFrontalFace19x19
FrontalFace64x80
FrontalFace64x56
FrontalFace64x40
FrontalFace19x19
FrontalFace15x20
Author:
Sebastien Marcel (marcel@idiap.ch) Yann Rodriguez (yann.rodriguez@idiap.ch) Fri 15 Jul 2005 11:35:26 AM CEST
Version:
2.0
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.