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<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§