#include <subspace_analysis_fuerte.h>
Public Member Functions | |
void | classify (cv::Mat &coeff_arr, Classifier method, int &class_index) |
void | getModel (cv::Mat &out_eigenvectors, cv::Mat &out_eigenvalues, cv::Mat &out_avg, cv::Mat &out_proj_model_data) |
bool | loadModel (cv::Mat &eigenvec_arr, cv::Mat &eigenval_arr, cv::Mat &proj_model, cv::Mat &avg_arr, std::vector< int > &label_vec, bool use_unknown_thresh) |
bool | loadModelFromFile (std::string path, bool use_unknown_thresh) |
void | projectToSubspace (cv::Mat &probe_mat, cv::Mat &coeff_arr, double &DFFS) |
void | releaseModel () |
void | retrieve (std::vector< cv::Mat > &out_eigenvectors, cv::Mat &out_eigenvalues, cv::Mat &out_avg, cv::Mat &out_proj_model_data) |
void | retrieve (std::vector< cv::Mat > &out_eigenvectors, cv::Mat &out_eigenvalues, cv::Mat &out_avg, cv::Mat &out_proj_model_data, cv::Size output_dim) |
bool | saveModel (std::string path) |
bool | verifyClassification (cv::Mat &sample, int &index) |
XFaces () | |
virtual | ~XFaces () |
Public Attributes | |
bool | trained |
Protected Member Functions | |
void | calc_threshold (cv::Mat &data, double &thresh) |
void | calc_threshold (cv::Mat &data, std::vector< cv::Mat > &thresh) |
void | calcDataMat (std::vector< cv::Mat > &input_data, cv::Mat &data_mat) |
void | calcDFFS (cv::Mat &orig_mat, cv::Mat &recon_mat, cv::Mat &avg, std::vector< double > &DFFS) |
void | calcDIFS (cv::Mat &probe_mat, int &minDIFSindex, double &minDIFS, cv::Mat &minDIFScoeffs) |
void | mat2arr (cv::Mat &src_mat, cv::Mat &dst_mat) |
void | project (cv::Mat &src_mat, cv::Mat &proj_mat, cv::Mat &avg_mat, cv::Mat &coeff_mat) |
void | reconstruct (cv::Mat &coeffs, cv::Mat &proj_mat, cv::Mat &avg, cv::Mat &rec_im) |
Protected Attributes | |
cv::Mat | avg_arr_ |
cv::Mat | class_centers_ |
cv::Mat | eigenvalue_arr_ |
cv::Mat | eigenvector_arr_ |
CvKNearest | knn_ |
bool | knn_trained_ |
cv::Mat | model_data_arr_ |
cv::Mat | model_label_arr_ |
int | num_classes_ |
cv::Mat | proj_model_data_arr_ |
CvRTrees | rf_ |
bool | rf_trained_ |
int | ss_dim_ |
CvSVM | svm_ |
bool | svm_trained_ |
double | thresh_ |
std::vector< cv::Mat > | thresholds_ |
std::vector< int > | unique_labels_ |
bool | use_unknown_thresh_ |
Definition at line 69 of file subspace_analysis_fuerte.h.
SubspaceAnalysis::XFaces::XFaces | ( | ) | [inline] |
Definition at line 72 of file subspace_analysis_fuerte.h.
virtual SubspaceAnalysis::XFaces::~XFaces | ( | ) | [inline, virtual] |
Definition at line 78 of file subspace_analysis_fuerte.h.
void SubspaceAnalysis::XFaces::calc_threshold | ( | cv::Mat & | data, |
double & | thresh | ||
) | [protected] |
Definition at line 337 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::calc_threshold | ( | cv::Mat & | data, |
std::vector< cv::Mat > & | thresh | ||
) | [protected] |
Definition at line 309 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::calcDataMat | ( | std::vector< cv::Mat > & | input_data, |
cv::Mat & | data_mat | ||
) | [protected] |
Definition at line 161 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::calcDFFS | ( | cv::Mat & | orig_mat, |
cv::Mat & | recon_mat, | ||
cv::Mat & | avg, | ||
std::vector< double > & | DFFS | ||
) | [protected] |
Definition at line 112 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::calcDIFS | ( | cv::Mat & | probe_mat, |
int & | minDIFSindex, | ||
double & | minDIFS, | ||
cv::Mat & | minDIFScoeffs | ||
) | [protected] |
Definition at line 506 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::classify | ( | cv::Mat & | coeff_arr, |
Classifier | method, | ||
int & | class_index | ||
) |
Definition at line 381 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::getModel | ( | cv::Mat & | out_eigenvectors, |
cv::Mat & | out_eigenvalues, | ||
cv::Mat & | out_avg, | ||
cv::Mat & | out_proj_model_data | ||
) |
Definition at line 242 of file subspace_analysis_fuerte.cpp.
bool SubspaceAnalysis::XFaces::loadModel | ( | cv::Mat & | eigenvec_arr, |
cv::Mat & | eigenval_arr, | ||
cv::Mat & | proj_model, | ||
cv::Mat & | avg_arr, | ||
std::vector< int > & | label_vec, | ||
bool | use_unknown_thresh | ||
) |
Definition at line 851 of file subspace_analysis_fuerte.cpp.
bool SubspaceAnalysis::XFaces::loadModelFromFile | ( | std::string | path, |
bool | use_unknown_thresh | ||
) |
Definition at line 808 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::mat2arr | ( | cv::Mat & | src_mat, |
cv::Mat & | dst_mat | ||
) | [protected] |
Definition at line 128 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::project | ( | cv::Mat & | src_mat, |
cv::Mat & | proj_mat, | ||
cv::Mat & | avg_mat, | ||
cv::Mat & | coeff_mat | ||
) | [protected] |
Definition at line 135 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::projectToSubspace | ( | cv::Mat & | probe_mat, |
cv::Mat & | coeff_arr, | ||
double & | DFFS | ||
) |
Definition at line 270 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::reconstruct | ( | cv::Mat & | coeffs, |
cv::Mat & | proj_mat, | ||
cv::Mat & | avg, | ||
cv::Mat & | rec_im | ||
) | [protected] |
Definition at line 151 of file subspace_analysis_fuerte.cpp.
Definition at line 527 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::retrieve | ( | std::vector< cv::Mat > & | out_eigenvectors, |
cv::Mat & | out_eigenvalues, | ||
cv::Mat & | out_avg, | ||
cv::Mat & | out_proj_model_data | ||
) |
Definition at line 222 of file subspace_analysis_fuerte.cpp.
void SubspaceAnalysis::XFaces::retrieve | ( | std::vector< cv::Mat > & | out_eigenvectors, |
cv::Mat & | out_eigenvalues, | ||
cv::Mat & | out_avg, | ||
cv::Mat & | out_proj_model_data, | ||
cv::Size | output_dim | ||
) |
Definition at line 250 of file subspace_analysis_fuerte.cpp.
bool SubspaceAnalysis::XFaces::saveModel | ( | std::string | path | ) |
Definition at line 770 of file subspace_analysis_fuerte.cpp.
bool SubspaceAnalysis::XFaces::verifyClassification | ( | cv::Mat & | sample, |
int & | index | ||
) |
Definition at line 546 of file subspace_analysis_fuerte.cpp.
cv::Mat SubspaceAnalysis::XFaces::avg_arr_ [protected] |
Definition at line 110 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::class_centers_ [protected] |
Definition at line 121 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::eigenvalue_arr_ [protected] |
Definition at line 109 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::eigenvector_arr_ [protected] |
Definition at line 108 of file subspace_analysis_fuerte.h.
CvKNearest SubspaceAnalysis::XFaces::knn_ [protected] |
Definition at line 127 of file subspace_analysis_fuerte.h.
bool SubspaceAnalysis::XFaces::knn_trained_ [protected] |
Definition at line 128 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::model_data_arr_ [protected] |
Definition at line 111 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::model_label_arr_ [protected] |
Definition at line 113 of file subspace_analysis_fuerte.h.
int SubspaceAnalysis::XFaces::num_classes_ [protected] |
Definition at line 115 of file subspace_analysis_fuerte.h.
cv::Mat SubspaceAnalysis::XFaces::proj_model_data_arr_ [protected] |
Definition at line 112 of file subspace_analysis_fuerte.h.
CvRTrees SubspaceAnalysis::XFaces::rf_ [protected] |
Definition at line 130 of file subspace_analysis_fuerte.h.
bool SubspaceAnalysis::XFaces::rf_trained_ [protected] |
Definition at line 131 of file subspace_analysis_fuerte.h.
int SubspaceAnalysis::XFaces::ss_dim_ [protected] |
Definition at line 107 of file subspace_analysis_fuerte.h.
CvSVM SubspaceAnalysis::XFaces::svm_ [protected] |
Definition at line 124 of file subspace_analysis_fuerte.h.
bool SubspaceAnalysis::XFaces::svm_trained_ [protected] |
Definition at line 125 of file subspace_analysis_fuerte.h.
double SubspaceAnalysis::XFaces::thresh_ [protected] |
Definition at line 120 of file subspace_analysis_fuerte.h.
std::vector<cv::Mat> SubspaceAnalysis::XFaces::thresholds_ [protected] |
Definition at line 118 of file subspace_analysis_fuerte.h.
Definition at line 94 of file subspace_analysis_fuerte.h.
std::vector<int> SubspaceAnalysis::XFaces::unique_labels_ [protected] |
Definition at line 116 of file subspace_analysis_fuerte.h.
bool SubspaceAnalysis::XFaces::use_unknown_thresh_ [protected] |
Definition at line 119 of file subspace_analysis_fuerte.h.