[][src]Trait opencv::prelude::GraphSegmentation

pub trait GraphSegmentation: AlgorithmTrait {
    pub fn as_raw_GraphSegmentation(&self) -> *const c_void;
pub fn as_raw_mut_GraphSegmentation(&mut self) -> *mut c_void; pub fn process_image(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn set_sigma(&mut self, sigma: f64) -> Result<()> { ... }
pub fn get_sigma(&mut self) -> Result<f64> { ... }
pub fn set_k(&mut self, k: f32) -> Result<()> { ... }
pub fn get_k(&mut self) -> Result<f32> { ... }
pub fn set_min_size(&mut self, min_size: i32) -> Result<()> { ... }
pub fn get_min_size(&mut self) -> Result<i32> { ... } }

Graph Based Segmentation Algorithm. The class implements the algorithm described in PFF2004 .

Required methods

Loading content...

Provided methods

pub fn process_image(
    &mut self,
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray
) -> Result<()>
[src]

Segment an image and store output in dst

Parameters

  • src: The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided
  • dst: The output segmentation. It's a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel.

pub fn set_sigma(&mut self, sigma: f64) -> Result<()>[src]

pub fn get_sigma(&mut self) -> Result<f64>[src]

pub fn set_k(&mut self, k: f32) -> Result<()>[src]

pub fn get_k(&mut self) -> Result<f32>[src]

pub fn set_min_size(&mut self, min_size: i32) -> Result<()>[src]

pub fn get_min_size(&mut self) -> Result<i32>[src]

Loading content...

Implementors

Loading content...