|
asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
|
Defines how landmark points form a "shape". More...
#include <shapeinfo.h>
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< PointInfo > | pointInfo |
| Information for each landmark point. | |
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.
| Mat StatModel::ShapeInfo::drawMarkPointsOnImg | ( | Mat & | img, |
| const vector< Point > & | vP, | ||
| bool | drawInPlace = false |
||
| ) | const |
Draw a list of points on an image.
| int StatModel::ShapeInfo::loadFromShapeDescFile | ( | AFReader & | shapeDefFile | ) |
Load from shape description file, return the number landmark points.
| void StatModel::ShapeInfo::readFromFile | ( | ModelFile & | f | ) |
Load shape info from a model file.
| void StatModel::ShapeInfo::writeToFile | ( | ModelFile & | f | ) | const |
Dump info to a model file.
| vector< PointInfo > StatModel::ShapeInfo::pointInfo |
Information for each landmark point.