#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, cv::Mat &classification_probabilities) |
Abstract method for classification. | |
virtual void | classifyImage (cv::Mat &probe_mat, int &max_prob_index) |
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. | |
virtual bool | loadModel (boost::filesystem::path &model_file) |
Abstract method to load recognition model. | |
virtual bool | saveModel (boost::filesystem::path &model_file) |
Abstract method to save recognition model. | |
Protected Attributes | |
cv::Mat | average_mat_ |
std::vector< cv::Mat > | model_features_ |
Definition at line 184 of file face_recognizer_algorithms.h.
virtual void ipa_PeopleDetector::FaceRecognizer2D::calc_threshold | ( | cv::Mat & | data, |
double & | thresh | ||
) | [inline, 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 193 of file face_recognizer_algorithms.h.
void ipa_PeopleDetector::FaceRecognizer2D::calc_threshold | ( | std::vector< cv::Mat > & | data, |
double & | thresh | ||
) | [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 231 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer2D::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 197 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer2D::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 151 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer2D::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 146 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer2D::extractFeatures | ( | std::vector< cv::Mat > & | src_vec, |
cv::Mat & | proj_mat, | ||
std::vector< cv::Mat > & | coeff_vec | ||
) | [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 178 of file face_recognizer_algorithms.cpp.
void ipa_PeopleDetector::FaceRecognizer2D::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 190 of file face_recognizer_algorithms.cpp.
bool ipa_PeopleDetector::FaceRecognizer2D::loadModel | ( | boost::filesystem::path & | model_file | ) | [virtual] |
Abstract method to load recognition model.
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 329 of file face_recognizer_algorithms.cpp.
bool ipa_PeopleDetector::FaceRecognizer2D::saveModel | ( | boost::filesystem::path & | model_file | ) | [virtual] |
Abstract method to save recognition model.
Implements ipa_PeopleDetector::FaceRecognizerBaseClass.
Definition at line 368 of file face_recognizer_algorithms.cpp.
cv::Mat ipa_PeopleDetector::FaceRecognizer2D::average_mat_ [protected] |
Definition at line 203 of file face_recognizer_algorithms.h.
std::vector<cv::Mat> ipa_PeopleDetector::FaceRecognizer2D::model_features_ [protected] |
Definition at line 204 of file face_recognizer_algorithms.h.