OpenCV  2.4.13
Open Source Computer Vision
cv::BOWKMeansTrainer Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::BOWKMeansTrainer:
cv::BOWTrainer

Public Member Functions

 BOWKMeansTrainer (int clusterCount, const TermCriteria &termcrit=TermCriteria(), int attempts=3, int flags=KMEANS_PP_CENTERS)
 
virtual ~BOWKMeansTrainer ()
 
virtual Mat cluster () const
 
virtual Mat cluster (const Mat &descriptors) const
 
- Public Member Functions inherited from cv::BOWTrainer
 BOWTrainer ()
 
virtual ~BOWTrainer ()
 
void add (const Mat &descriptors)
 
const vector< Mat > & getDescriptors () const
 
int descripotorsCount () const
 
virtual void clear ()
 

Protected Attributes

int clusterCount
 
TermCriteria termcrit
 
int attempts
 
int flags
 
- Protected Attributes inherited from cv::BOWTrainer
vector< Matdescriptors
 
int size
 

Constructor & Destructor Documentation

cv::BOWKMeansTrainer::BOWKMeansTrainer ( int  clusterCount,
const TermCriteria termcrit = TermCriteria(),
int  attempts = 3,
int  flags = KMEANS_PP_CENTERS 
)
virtual cv::BOWKMeansTrainer::~BOWKMeansTrainer ( )
virtual

Member Function Documentation

virtual Mat cv::BOWKMeansTrainer::cluster ( ) const
virtual

Implements cv::BOWTrainer.

virtual Mat cv::BOWKMeansTrainer::cluster ( const Mat descriptors) const
virtual

Implements cv::BOWTrainer.

Member Data Documentation

int cv::BOWKMeansTrainer::attempts
protected
int cv::BOWKMeansTrainer::clusterCount
protected
int cv::BOWKMeansTrainer::flags
protected
TermCriteria cv::BOWKMeansTrainer::termcrit
protected

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