[][src]Trait opencv::ximgproc::prelude::SelectiveSearchSegmentationStrategy

pub trait SelectiveSearchSegmentationStrategy: AlgorithmTrait {
    pub fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void;
pub fn as_raw_mut_SelectiveSearchSegmentationStrategy(
        &mut self
    ) -> *mut c_void; pub fn set_image(
        &mut self,
        img: &dyn ToInputArray,
        regions: &dyn ToInputArray,
        sizes: &dyn ToInputArray,
        image_id: i32
    ) -> Result<()> { ... }
pub fn get(&mut self, r1: i32, r2: i32) -> Result<f32> { ... }
pub fn merge(&mut self, r1: i32, r2: i32) -> Result<()> { ... } }

Strategie for the selective search segmentation algorithm The class implements a generic stragery for the algorithm described in uijlings2013selective.

Required methods

Loading content...

Provided methods

pub fn set_image(
    &mut self,
    img: &dyn ToInputArray,
    regions: &dyn ToInputArray,
    sizes: &dyn ToInputArray,
    image_id: i32
) -> Result<()>
[src]

Set a initial image, with a segmentation.

Parameters

  • img: The input image. Any number of channel can be provided
  • regions: A segmentation of the image. The parameter must be the same size of img.
  • sizes: The sizes of different regions
  • image_id: If not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same.

C++ default parameters

  • image_id: -1

pub fn get(&mut self, r1: i32, r2: i32) -> Result<f32>[src]

Return the score between two regions (between 0 and 1)

Parameters

  • r1: The first region
  • r2: The second region

pub fn merge(&mut self, r1: i32, r2: i32) -> Result<()>[src]

Inform the strategy that two regions will be merged

Parameters

  • r1: The first region
  • r2: The second region
Loading content...

Implementors

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategy[src]

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategyColor[src]

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategyFill[src]

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategyMultiple[src]

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategySize[src]

impl SelectiveSearchSegmentationStrategy for PtrOfSelectiveSearchSegmentationStrategyTexture[src]

Loading content...