37
#ifndef __OPENCV_FACEMARK_AAM_HPP__
38
#define __OPENCV_FACEMARK_AAM_HPP__
40
#include "opencv2/face/facemark_train.hpp"
67
std::string model_filename;
73
int
max_m, max_n, texture_max_m;
74
std::vector<float>scales;
100
std::vector<Point2f> s0;
141
std::vector<Point2f>
s0;
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
File Storage Node class.
Definition:
persistence.hpp:482
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...
Definition:
persistence.hpp:304
n-dimensional dense array class
Definition:
mat.hpp:802
static MatExpr eye(int rows, int cols, int type)
Returns an identity matrix of the specified size and type.
Template class for 2D rectangles
Definition:
core/types.hpp:421
Definition:
facemarkAAM.hpp:48
virtual bool fitConfig(InputArray image, InputArray roi, OutputArrayOfArrays _landmarks, const std::vector< Config > &runtime_params)=0
overload with additional Config structures
static Ptr< FacemarkAAM > create(const FacemarkAAM::Params ¶meters=FacemarkAAM::Params())
initializer
Abstract base class for trainable facemark models
Definition:
facemark_train.hpp:263
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74
Optional parameter for fitting process.
Definition:
facemarkAAM.hpp:81
Data container for the facemark::getData function
Definition:
facemarkAAM.hpp:99
Definition:
facemarkAAM.hpp:115
std::vector< Point2f > base_shape
basic shape, normalized to be fit in an image with current detection resolution
Definition:
facemarkAAM.hpp:130
Mat AA0
average of gray values from all erorded face region in the dataset
Definition:
facemarkAAM.hpp:125
Mat A0
average of gray values from all face region in the dataset
Definition:
facemarkAAM.hpp:121
Rect resolution
resolution of the current scale
Definition:
facemarkAAM.hpp:117
Mat AA
gray values from all erorded face region in the dataset, projected in PCA space
Definition:
facemarkAAM.hpp:123
std::vector< int > ind2
index of pixels for mapping process to obtains the grays values of eroded face region
Definition:
facemarkAAM.hpp:134
std::vector< std::vector< Point > > textureIdx
index for warping of each delaunay triangle region constructed by 3 facemarks
Definition:
facemarkAAM.hpp:128
std::vector< int > ind1
index of pixels for mapping process to obtains the grays values of face region
Definition:
facemarkAAM.hpp:132
Mat A
gray values from all face region in the dataset, projected in PCA space
Definition:
facemarkAAM.hpp:119
int max_m
unused delete
Definition:
facemarkAAM.hpp:116
The model of AAM Algorithm
Definition:
facemarkAAM.hpp:107
std::vector< Vec3i > triangles
each element contains 3 values, represent index of facemarks that construct one triangle (obtained us...
Definition:
facemarkAAM.hpp:112
std::vector< float > scales
defines the scales considered to build the model
Definition:
facemarkAAM.hpp:108
std::vector< Point2f > s0
the basic shape obtained from training dataset
Definition:
facemarkAAM.hpp:141
Mat Q
the encoded shapes from training data
Definition:
facemarkAAM.hpp:143
std::vector< Texture > textures
a container to holds the texture data for each scale of fitting
Definition:
facemarkAAM.hpp:137
Definition:
facemarkAAM.hpp:51
void read(const FileNode &)
Read parameters from file, currently unused
void write(FileStorage &) const
Read parameters from file, currently unused