OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::face::BasicFaceRecognizer Class Referenceabstract

#include "facerec.hpp"

Inheritance diagram for cv::face::BasicFaceRecognizer:
cv::face::FaceRecognizer cv::Algorithm

Public Member Functions

virtual cv::Mat getEigenValues () const =0
 
virtual cv::Mat getEigenVectors () const =0
 
virtual cv::Mat getLabels () const =0
 
virtual cv::Mat getMean () const =0
 
virtual int getNumComponents () const =0
 
virtual std::vector< cv::MatgetProjections () const =0
 
virtual double getThreshold () const =0
 
virtual void setNumComponents (int val)=0
 
virtual void setThreshold (double val)=0
 
- Public Member Functions inherited from cv::face::FaceRecognizer
virtual String getLabelInfo (int label) const
 Gets string information by label. More...
 
virtual std::vector< int > getLabelsByString (const String &str) const
 Gets vector of labels by string. More...
 
virtual void load (const String &filename)
 Loads a FaceRecognizer and its model state. More...
 
virtual void load (const FileStorage &fs)=0
 
int predict (InputArray src) const
 
void predict (InputArray src, int &label, double &confidence) const
 Predicts a label and associated confidence (e.g. distance) for a given input image. More...
 
virtual void predict (InputArray src, Ptr< PredictCollector > collector, const int state=0) const =0
 
  • if implemented - send all result of prediction to collector that can be used for somehow custom result handling
More...
 
virtual void save (const String &filename) const
 Saves a FaceRecognizer and its model state. More...
 
virtual void save (FileStorage &fs) const =0
 
virtual void setLabelInfo (int label, const String &strInfo)
 Sets string info for the specified model's label. More...
 
virtual void train (InputArrayOfArrays src, InputArray labels)=0
 Trains a FaceRecognizer with given data and associated labels. More...
 
virtual void update (InputArrayOfArrays src, InputArray labels)
 Updates a FaceRecognizer with given data and associated labels. More...
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage. More...
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file. More...
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String. More...
 
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node. More...
 
- Protected Attributes inherited from cv::face::FaceRecognizer
std::map< int, String_labelsInfo
 

Member Function Documentation

virtual cv::Mat cv::face::BasicFaceRecognizer::getEigenValues ( ) const
pure virtual
virtual cv::Mat cv::face::BasicFaceRecognizer::getEigenVectors ( ) const
pure virtual
virtual cv::Mat cv::face::BasicFaceRecognizer::getLabels ( ) const
pure virtual
virtual cv::Mat cv::face::BasicFaceRecognizer::getMean ( ) const
pure virtual
virtual int cv::face::BasicFaceRecognizer::getNumComponents ( ) const
pure virtual
virtual std::vector<cv::Mat> cv::face::BasicFaceRecognizer::getProjections ( ) const
pure virtual
virtual double cv::face::BasicFaceRecognizer::getThreshold ( ) const
pure virtual
virtual void cv::face::BasicFaceRecognizer::setNumComponents ( int  val)
pure virtual
virtual void cv::face::BasicFaceRecognizer::setThreshold ( double  val)
pure virtual

See also
getThreshold

The documentation for this class was generated from the following file: