OpenCV453
公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::face::BasicFaceRecognizer クラス

cv::face::FaceRecognizerを継承しています。

cv::face::EigenFaceRecognizer, cv::face::FisherFaceRecognizerに継承されています。

公開メンバ関数

CV_WRAP int getNumComponents () const
 
CV_WRAP void setNumComponents (int val)
 
CV_WRAP double getThreshold () const CV_OVERRIDE
 
CV_WRAP void setThreshold (double val) CV_OVERRIDE
 
CV_WRAP std::vector< cv::MatgetProjections () const
 
CV_WRAP cv::Mat getLabels () const
 
CV_WRAP cv::Mat getEigenValues () const
 
CV_WRAP cv::Mat getEigenVectors () const
 
CV_WRAP cv::Mat getMean () const
 
virtual void read (const FileNode &fn) CV_OVERRIDE
 
virtual void write (FileStorage &fs) const CV_OVERRIDE
 
virtual bool empty () const CV_OVERRIDE
 
virtual CV_WRAP void read (const String &filename)
 Loads a FaceRecognizer and its model state. [詳解]
 
virtual void read (const FileNode &fn) CV_OVERRIDE=0
 
virtual CV_WRAP void write (const String &filename) const
 Saves a FaceRecognizer and its model state. [詳解]
 
virtual void write (FileStorage &fs) const CV_OVERRIDE=0
 
- 基底クラス cv::face::FaceRecognizer に属する継承公開メンバ関数
virtual CV_WRAP void train (InputArrayOfArrays src, InputArray labels)=0
 Trains a FaceRecognizer with given data and associated labels. [詳解]
 
virtual CV_WRAP void update (InputArrayOfArrays src, InputArray labels)
 Updates a FaceRecognizer with given data and associated labels. [詳解]
 
 CV_WRAP_AS (predict_label) int predict(InputArray src) const
 
CV_WRAP void predict (InputArray src, CV_OUT int &label, CV_OUT double &confidence) const
 Predicts a label and associated confidence (e.g. distance) for a given input image. [詳解]
 
 CV_WRAP_AS (predict_collect) virtual void predict(InputArray src
 
  • if implemented - send all result of prediction to collector that can be used for somehow custom result handling
[詳解]
 
virtual CV_WRAP void setLabelInfo (int label, const String &strInfo)
 Sets string info for the specified model's label. [詳解]
 
virtual CV_WRAP String getLabelInfo (int label) const
 Gets string information by label. [詳解]
 
virtual CV_WRAP std::vector< int > getLabelsByString (const String &str) const
 Gets vector of labels by string. [詳解]
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

限定公開変数類

int _num_components
 
double _threshold
 
std::vector< Mat_projections
 
Mat _labels
 
Mat _eigenvectors
 
Mat _eigenvalues
 
Mat _mean
 
- 基底クラス cv::face::FaceRecognizer に属する継承限定公開変数類
std::map< int, String > _labelsInfo
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 
- 基底クラス cv::face::FaceRecognizer に属する継承公開変数類
Ptr< PredictCollector > collector const = 0
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

関数詳解

◆ empty()

virtual bool cv::face::BasicFaceRecognizer::empty ( ) const
virtual

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

cv::face::FaceRecognizerを実装しています。

◆ getNumComponents()

CV_WRAP int cv::face::BasicFaceRecognizer::getNumComponents ( ) const

◆ getThreshold()

CV_WRAP double cv::face::BasicFaceRecognizer::getThreshold ( ) const
virtual
参照
setThreshold

cv::face::FaceRecognizerを実装しています。

◆ read() [1/3]

virtual void cv::face::BasicFaceRecognizer::read ( const FileNode fn)
virtual

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

cv::face::FaceRecognizerを実装しています。

◆ read() [2/3]

virtual void cv::face::FaceRecognizer::read ( const FileNode fn)
virtual

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

cv::face::FaceRecognizerを実装しています。

◆ read() [3/3]

virtual CV_WRAP void cv::face::FaceRecognizer::read ( const String &  filename)
virtual

Loads a FaceRecognizer and its model state.

Loads a persisted model and state from a given XML or YAML file . Every FaceRecognizer has to overwrite FaceRecognizer::load(FileStorage& fs) to enable loading the model state. FaceRecognizer::load(FileStorage& fs) in turn gets called by FaceRecognizer::load(const String& filename), to ease saving a model.

cv::face::FaceRecognizerを再実装しています。

◆ setNumComponents()

CV_WRAP void cv::face::BasicFaceRecognizer::setNumComponents ( int  val)

◆ setThreshold()

CV_WRAP void cv::face::BasicFaceRecognizer::setThreshold ( double  val)
virtual

参照
getThreshold

cv::face::FaceRecognizerを実装しています。

◆ write() [1/3]

virtual CV_WRAP void cv::face::FaceRecognizer::write ( const String &  filename) const
virtual

Saves a FaceRecognizer and its model state.

Saves this model to a given filename, either as XML or YAML.

引数
filenameThe filename to store this FaceRecognizer to (either XML/YAML).

Every FaceRecognizer overwrites FaceRecognizer::save(FileStorage& fs) to save the internal model state. FaceRecognizer::save(const String& filename) saves the state of a model to the given filename.

The suffix const means that prediction does not affect the internal model state, so the method can be safely called from within different threads.

cv::face::FaceRecognizerを再実装しています。

◆ write() [2/3]

virtual void cv::face::BasicFaceRecognizer::write ( FileStorage fs) const
virtual

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。 Saves this model to a given FileStorage.

引数
fsThe FileStorage to store this FaceRecognizer to.

cv::face::FaceRecognizerを実装しています。

◆ write() [3/3]

virtual void cv::face::FaceRecognizer::write ( FileStorage fs) const
virtual

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。 Saves this model to a given FileStorage.

引数
fsThe FileStorage to store this FaceRecognizer to.

cv::face::FaceRecognizerを実装しています。


このクラス詳解は次のファイルから抽出されました: