Struct opencv::ximgproc::GraphSegmentation
source · pub struct GraphSegmentation { /* private fields */ }
Expand description
Graph Based Segmentation Algorithm. The class implements the algorithm described in PFF2004 .
Trait Implementations§
source§impl AlgorithmTrait for GraphSegmentation
impl AlgorithmTrait for GraphSegmentation
source§impl AlgorithmTraitConst for GraphSegmentation
impl AlgorithmTraitConst for GraphSegmentation
fn as_raw_Algorithm(&self) -> *const c_void
source§fn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
Stores algorithm parameters in a file storage Read more
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
@deprecated Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl Boxed for GraphSegmentation
impl Boxed for GraphSegmentation
source§impl Debug for GraphSegmentation
impl Debug for GraphSegmentation
source§impl Drop for GraphSegmentation
impl Drop for GraphSegmentation
source§impl From<GraphSegmentation> for Algorithm
impl From<GraphSegmentation> for Algorithm
source§fn from(s: GraphSegmentation) -> Self
fn from(s: GraphSegmentation) -> Self
Converts to this type from the input type.
source§impl GraphSegmentationTrait for GraphSegmentation
impl GraphSegmentationTrait for GraphSegmentation
fn as_raw_mut_GraphSegmentation(&mut self) -> *mut c_void
source§fn process_image(
&mut self,
src: &impl ToInputArray,
dst: &mut impl ToOutputArray
) -> Result<()>
fn process_image( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray ) -> Result<()>
Segment an image and store output in dst Read more
fn set_sigma(&mut self, sigma: f64) -> Result<()>
fn get_sigma(&mut self) -> Result<f64>
fn set_k(&mut self, k: f32) -> Result<()>
fn get_k(&mut self) -> Result<f32>
fn set_min_size(&mut self, min_size: i32) -> Result<()>
fn get_min_size(&mut self) -> Result<i32>
source§impl GraphSegmentationTraitConst for GraphSegmentation
impl GraphSegmentationTraitConst for GraphSegmentation
fn as_raw_GraphSegmentation(&self) -> *const c_void
impl Send for GraphSegmentation
Auto Trait Implementations§
impl RefUnwindSafe for GraphSegmentation
impl !Sync for GraphSegmentation
impl Unpin for GraphSegmentation
impl UnwindSafe for GraphSegmentation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more