OpenCV  2.4.13.7
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

§ BOWKMeansTrainer()

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

§ ~BOWKMeansTrainer()

virtual cv::BOWKMeansTrainer::~BOWKMeansTrainer ( )
virtual

Member Function Documentation

§ cluster() [1/2]

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

Implements cv::BOWTrainer.

§ cluster() [2/2]

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

Implements cv::BOWTrainer.

Member Data Documentation

§ attempts

int cv::BOWKMeansTrainer::attempts
protected

§ clusterCount

int cv::BOWKMeansTrainer::clusterCount
protected

§ flags

int cv::BOWKMeansTrainer::flags
protected

§ termcrit

TermCriteria cv::BOWKMeansTrainer::termcrit
protected

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