opencv::hub_prelude

Trait GPCTreeTrait

source
pub trait GPCTreeTrait: AlgorithmTrait + GPCTreeTraitConst {
    // Required method
    fn as_raw_mut_GPCTree(&mut self) -> *mut c_void;

    // Provided methods
    fn train(
        &mut self,
        samples: &mut impl GPCTrainingSamplesTrait,
        params: GPCTrainingParams,
    ) -> Result<()> { ... }
    fn train_def(
        &mut self,
        samples: &mut impl GPCTrainingSamplesTrait,
    ) -> Result<()> { ... }
    fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::optflow::GPCTree

Required Methods§

Provided Methods§

source

fn train( &mut self, samples: &mut impl GPCTrainingSamplesTrait, params: GPCTrainingParams, ) -> Result<()>

§C++ default parameters
  • params: GPCTrainingParams()
source

fn train_def( &mut self, samples: &mut impl GPCTrainingSamplesTrait, ) -> Result<()>

§Note

This alternative version of GPCTreeTrait::train function uses the following default values for its arguments:

  • params: GPCTrainingParams()
source

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§