Struct opencv::features2d::BOWTrainer
source · pub struct BOWTrainer { /* private fields */ }
Expand description
Abstract base class for training the bag of visual words vocabulary from a set of descriptors.
For details, see, for example, Visual Categorization with Bags of Keypoints by Gabriella Csurka, Christopher R. Dance, Lixin Fan, Jutta Willamowski, Cedric Bray, 2004. :
Trait Implementations§
source§impl BOWTrainerTrait for BOWTrainer
impl BOWTrainerTrait for BOWTrainer
source§impl BOWTrainerTraitConst for BOWTrainer
impl BOWTrainerTraitConst for BOWTrainer
fn as_raw_BOWTrainer(&self) -> *const c_void
source§fn descriptors_count(&self) -> Result<i32>
fn descriptors_count(&self) -> Result<i32>
Returns the count of all descriptors stored in the training set.
source§fn cluster_with_descriptors(
&self,
descriptors: &impl MatTraitConst
) -> Result<Mat>
fn cluster_with_descriptors( &self, descriptors: &impl MatTraitConst ) -> Result<Mat>
Clusters train descriptors. Read more
source§impl Boxed for BOWTrainer
impl Boxed for BOWTrainer
source§unsafe fn from_raw(ptr: <BOWTrainer as OpenCVType<'_>>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <BOWTrainer as OpenCVType<'_>>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <BOWTrainer as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Debug for BOWTrainer
impl Debug for BOWTrainer
source§impl Drop for BOWTrainer
impl Drop for BOWTrainer
source§impl From<BOWKMeansTrainer> for BOWTrainer
impl From<BOWKMeansTrainer> for BOWTrainer
source§fn from(s: BOWKMeansTrainer) -> Self
fn from(s: BOWKMeansTrainer) -> Self
Converts to this type from the input type.
source§impl TryFrom<BOWTrainer> for BOWKMeansTrainer
impl TryFrom<BOWTrainer> for BOWKMeansTrainer
impl Send for BOWTrainer
Auto Trait Implementations§
impl Freeze for BOWTrainer
impl RefUnwindSafe for BOWTrainer
impl !Sync for BOWTrainer
impl Unpin for BOWTrainer
impl UnwindSafe for BOWTrainer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more