Struct cv::features2d::BOWKMeansTrainer [−][src]
K-means - based class to train visual vocabulary using the bag of visual words approach
Implementations
impl BOWKMeansTrainer
[src]
pub fn new(
cluster_count: i32,
term_criteria: TermCriteria,
attempts: i32,
centers: KMeansCenters
) -> Self
[src]
cluster_count: i32,
term_criteria: TermCriteria,
attempts: i32,
centers: KMeansCenters
) -> Self
Creates a new maximally stable extremal region extractor criteria.
pub fn add(&mut self, descriptors: &Mat)
[src]
Adds descriptors to a training set
pub fn cluster(&mut self) -> Mat
[src]
Clusters train descriptors
Trait Implementations
impl Debug for BOWKMeansTrainer
[src]
impl Drop for BOWKMeansTrainer
[src]
Auto Trait Implementations
impl RefUnwindSafe for BOWKMeansTrainer
impl !Send for BOWKMeansTrainer
impl !Sync for BOWKMeansTrainer
impl Unpin for BOWKMeansTrainer
impl UnwindSafe for BOWKMeansTrainer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,