asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
StatModel::ShapeInfo Class Reference

Defines how landmark points form a "shape". More...

#include <shapeinfo.h>

List of all members.

Classes

struct  PointInfo
 Point in shape definition. More...

Public Member Functions

void writeToFile (ModelFile &f) const
 Dump info to a model file.
void readFromFile (ModelFile &f)
 Load shape info from a model file.
int loadFromShapeDescFile (AFReader &shapeDefFile)
 Load from shape description file, return the number landmark points.
Mat drawMarkPointsOnImg (Mat &img, const vector< Point > &vP, bool drawInPlace=false) const
 Draw a list of points on an image.

Public Attributes

vector< PointInfopointInfo
 Information for each landmark point.

Detailed Description

Defines how landmark points form a "shape".

We typically connect landmark points into some contours to form a real shape.

For example, a shape "face" may include several "paths" (contours): two contours of eyes, one contour for the nose, one contour for the lip, etc.


Member Function Documentation

Mat StatModel::ShapeInfo::drawMarkPointsOnImg ( Mat &  img,
const vector< Point > &  vP,
bool  drawInPlace = false 
) const

Draw a list of points on an image.

Load from shape description file, return the number landmark points.

Load shape info from a model file.

Dump info to a model file.


Member Data Documentation

Information for each landmark point.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Defines