[−][src]Trait opencv::prelude::GraphSegmentation
Graph Based Segmentation Algorithm. The class implements the algorithm described in PFF2004 .
Required methods
pub fn as_raw_GraphSegmentation(&self) -> *const c_void
[src]
pub fn as_raw_mut_GraphSegmentation(&mut self) -> *mut c_void
[src]
Provided methods
pub fn process_image(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray
) -> Result<()>
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.