#include <face_recognizer_algorithms.h>
Public Member Functions | |
virtual void | calc_threshold (cv::Mat &data, double &thresh) |
Calculation of unknown threshold. | |
virtual void | calc_threshold (std::vector< cv::Mat > &data, double &thresh) |
Calculation of unknown threshold. | |
virtual void | calcDIFS (cv::Mat &probe_mat, int &minDIFSindex, double &minDIFS, cv::Mat &probabilities) |
Abstract method for DIFS calculation. | |
virtual void | classifyImage (cv::Mat &probe_mat, int &max_prob_index) |
Abstract method for classification. | |
virtual void | classifyImage (cv::Mat &probe_mat, int &max_prob_index, cv::Mat &classification_probabilities) |
Abstract method for classification. | |
virtual void | extractFeatures (std::vector< cv::Mat > &src_vec, cv::Mat &proj_mat, std::vector< cv::Mat > &coeff_vec) |
Abstract method feature extraction. | |
virtual void | extractFeatures (cv::Mat &src_vec, cv::Mat &proj_mat, cv::Mat &coeff_vec) |
Abstract method feature extraction. | |
FaceRecognizer1D () | |
virtual bool | loadModel (boost::filesystem::path &model_file) |
Abstract method to load recognition model. | |
virtual void | model_data_mat (std::vector< cv::Mat > &input_data, cv::Mat &data_mat) |
virtual bool | saveModel (boost::filesystem::path &model_file) |
Abstract method to save recognition model. | |
virtual | ~FaceRecognizer1D () |
Protected Attributes | |
cv::Mat | average_arr_ |
cv::Mat | model_features_ |
Definition at line 146 of file face_recognizer_algorithms.h.
Definition at line 150 of file face_recognizer_algorithms.h.
virtual ipa_PeopleDetector::FaceRecognizer1D::~FaceRecognizer1D | ( | ) | [inline, virtual] |
Definition at line 154 of file face_recognizer_algorithms.h.
void ipa_PeopleDetector::FaceRecognizer1D::calc_threshold | ( | cv::Mat & | data, |
double & | thresh | ||
) | [virtual] |
Calculation of unknown threshold.
Abstract method for the calculation of the "unknown" threshold
[in] | data | Matrix containing model features as matrix-rows. |
[out] | thresh | Value for "unknown" threshold. |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 16 of file face_recognizer_algorithms.cpp.
virtual void ipa_PeopleDetector::FaceRecognizer1D::calc_threshold | ( | std::vector< cv::Mat > & | data, |
double & | thresh | ||
) | [inline, virtual] |
Calculation of unknown threshold.
Abstract method for the calculation of the "unknown" threshold
[in] | data | Vector containing model features as matrices. |
[out] | thresh | Value for "unknown" threshold. |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 168 of file face_recognizer_algorithms.h.
void ipa_PeopleDetector::FaceRecognizer1D::calcDIFS | ( | cv::Mat & | probe_mat, |
int & | minDIFSindex, | ||
double & | minDIFS, | ||
cv::Mat & | probabilities | ||
) | [virtual] |
Abstract method for DIFS calculation.
Abstract method to calculate the minimal distance in face space (DIFS) for a given probe image.
[in] | probe_mat | Image which is compared to the model features |
[out] | minDIFSindex | Index of the minimal distance |
[out] | minDIFS | Minimal distance |
[out] | probabilities | Classification probabilities for all classes in dataset |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 114 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer1D::classifyImage | ( | cv::Mat & | probe_mat, |
int & | max_prob_index | ||
) | [virtual] |
Abstract method for classification.
Abstract method to classifiy image.
[in] | src_vec | Vector of image matrices |
[in] | probe_mat | Image that is classified |
[out] | max_prob_index | Index of most probable label |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 82 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer1D::classifyImage | ( | cv::Mat & | probe_mat, |
int & | max_prob_index, | ||
cv::Mat & | classification_probabilities | ||
) | [virtual] |
Abstract method for classification.
Abstract method to classifiy image and recieve classification probabilities for all possible classes.
[in] | probe_mat | Image that is classified |
[out] | max_prob_index | Index of most probable label |
[out] | Classification probabilities for all classes in dataset |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 87 of file face_recognizer_algorithms.cpp.
virtual void ipa_PeopleDetector::FaceRecognizer1D::extractFeatures | ( | std::vector< cv::Mat > & | src_vec, |
cv::Mat & | proj_mat, | ||
std::vector< cv::Mat > & | coeff_vec | ||
) | [inline, virtual] |
Abstract method feature extraction.
Abstract method to extract features from image matrix using a linear projection matrix.
[in] | src_vec | Vector of image matrices |
[in] | proj_mat | Linear projection matrix |
[out] | coeff_vec | Vector with feature matrices |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 159 of file face_recognizer_algorithms.h.
void ipa_PeopleDetector::FaceRecognizer1D::extractFeatures | ( | cv::Mat & | src_mat, |
cv::Mat & | proj_mat, | ||
cv::Mat & | coeff_mat | ||
) | [virtual] |
Abstract method feature extraction.
Abstract method to extract features from image matrix using a linear projection matrix.
[in] | src_vec | Vector of image matrices |
[in] | src_mat | Image matrix |
[in] | proj_mat | Linear projection matrix |
[out] | coeff_vec | Feature matrix |
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 74 of file face_recognizer_algorithms.cpp.
bool ipa_PeopleDetector::FaceRecognizer1D::loadModel | ( | boost::filesystem::path & | model_file | ) | [virtual] |
Abstract method to load recognition model.
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 279 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer1D::model_data_mat | ( | std::vector< cv::Mat > & | input_data, |
cv::Mat & | data_mat | ||
) | [virtual] |
Definition at line 57 of file face_recognizer_algorithms.cpp.
bool ipa_PeopleDetector::FaceRecognizer1D::saveModel | ( | boost::filesystem::path & | model_file | ) | [virtual] |
Abstract method to save recognition model.
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 308 of file face_recognizer_algorithms.cpp.
cv::Mat ipa_PeopleDetector::FaceRecognizer1D::average_arr_ [protected] |
Definition at line 179 of file face_recognizer_algorithms.h.
cv::Mat ipa_PeopleDetector::FaceRecognizer1D::model_features_ [protected] |
Definition at line 180 of file face_recognizer_algorithms.h.