Enum opencv::imgproc::GrabCutModes
source · #[repr(C)]
pub enum GrabCutModes {
GC_INIT_WITH_RECT,
GC_INIT_WITH_MASK,
GC_EVAL,
GC_EVAL_FREEZE_MODEL,
}Expand description
GrabCut algorithm flags
Variants§
GC_INIT_WITH_RECT
The function initializes the state and the mask using the provided rectangle. After that it runs iterCount iterations of the algorithm.
GC_INIT_WITH_MASK
The function initializes the state using the provided mask. Note that GC_INIT_WITH_RECT and GC_INIT_WITH_MASK can be combined. Then, all the pixels outside of the ROI are automatically initialized with GC_BGD .
GC_EVAL
The value means that the algorithm should just resume.
GC_EVAL_FREEZE_MODEL
The value means that the algorithm should just run the grabCut algorithm (a single iteration) with the fixed model
Trait Implementations§
source§impl Clone for GrabCutModes
impl Clone for GrabCutModes
source§fn clone(&self) -> GrabCutModes
fn clone(&self) -> GrabCutModes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GrabCutModes
impl Debug for GrabCutModes
source§impl PartialEq<GrabCutModes> for GrabCutModes
impl PartialEq<GrabCutModes> for GrabCutModes
source§fn eq(&self, other: &GrabCutModes) -> bool
fn eq(&self, other: &GrabCutModes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.