Struct opencv::features2d::BOWKMeansTrainer [−][src]
pub struct BOWKMeansTrainer { /* fields omitted */ }
Expand description
kmeans -based class to train visual vocabulary using the bag of visual words approach. :
Implementations
pub fn new(
cluster_count: i32,
termcrit: TermCriteria,
attempts: i32,
flags: i32
) -> Result<BOWKMeansTrainer>
pub fn new(
cluster_count: i32,
termcrit: TermCriteria,
attempts: i32,
flags: i32
) -> Result<BOWKMeansTrainer>
The constructor.
See also
cv::kmeans
C++ default parameters
- termcrit: TermCriteria()
- attempts: 3
- flags: KMEANS_PP_CENTERS
Trait Implementations
Returns a training set of descriptors.
Returns the count of all descriptors stored in the training set.