[][src]Enum opencv::imgproc::GrabCutModes

#[repr(C)]pub enum GrabCutModes {
    GC_INIT_WITH_RECT,
    GC_INIT_WITH_MASK,
    GC_EVAL,
    GC_EVAL_FREEZE_MODEL,
}

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

impl Clone for GrabCutModes[src]

impl Copy for GrabCutModes[src]

impl Debug for GrabCutModes[src]

impl PartialEq<GrabCutModes> for GrabCutModes[src]

impl StructuralPartialEq for GrabCutModes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.