pub trait SelectiveSearchSegmentationStrategyMultiple: SelectiveSearchSegmentationStrategy + SelectiveSearchSegmentationStrategyMultipleConst {
    // Required method
    fn as_raw_mut_SelectiveSearchSegmentationStrategyMultiple(
        &mut self
    ) -> *mut c_void;

    // Provided methods
    fn add_strategy(
        &mut self,
        g: Ptr<dyn SelectiveSearchSegmentationStrategy>,
        weight: f32
    ) -> Result<()> { ... }
    fn clear_strategies(&mut self) -> Result<()> { ... }
}
Expand description

Regroup multiple strategies for the selective search segmentation algorithm

Required Methods§

Provided Methods§

source

fn add_strategy( &mut self, g: Ptr<dyn SelectiveSearchSegmentationStrategy>, weight: f32 ) -> Result<()>

Add a new sub-strategy

Parameters
  • g: The strategy
  • weight: The weight of the strategy
source

fn clear_strategies(&mut self) -> Result<()>

Remove all sub-strategies

Implementors§