Enum opencv::imgproc::RetrievalModes
source · #[repr(C)]pub enum RetrievalModes {
RETR_EXTERNAL = 0,
RETR_LIST = 1,
RETR_CCOMP = 2,
RETR_TREE = 3,
RETR_FLOODFILL = 4,
}
Expand description
mode of the contour retrieval algorithm
Variants§
RETR_EXTERNAL = 0
retrieves only the extreme outer contours. It sets hierarchy[i][2]=hierarchy[i][3]=-1
for
all the contours.
RETR_LIST = 1
retrieves all of the contours without establishing any hierarchical relationships.
RETR_CCOMP = 2
retrieves all of the contours and organizes them into a two-level hierarchy. At the top level, there are external boundaries of the components. At the second level, there are boundaries of the holes. If there is another contour inside a hole of a connected component, it is still put at the top level.
RETR_TREE = 3
retrieves all of the contours and reconstructs a full hierarchy of nested contours.
RETR_FLOODFILL = 4
Trait Implementations§
source§impl Clone for RetrievalModes
impl Clone for RetrievalModes
source§fn clone(&self) -> RetrievalModes
fn clone(&self) -> RetrievalModes
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 RetrievalModes
impl Debug for RetrievalModes
source§impl From<RetrievalModes> for i32
impl From<RetrievalModes> for i32
source§fn from(v: RetrievalModes) -> Self
fn from(v: RetrievalModes) -> Self
Converts to this type from the input type.
source§impl PartialEq for RetrievalModes
impl PartialEq for RetrievalModes
source§fn eq(&self, other: &RetrievalModes) -> bool
fn eq(&self, other: &RetrievalModes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for RetrievalModes
impl TryFrom<i32> for RetrievalModes
impl Copy for RetrievalModes
impl Eq for RetrievalModes
impl StructuralPartialEq for RetrievalModes
Auto Trait Implementations§
impl Freeze for RetrievalModes
impl RefUnwindSafe for RetrievalModes
impl Send for RetrievalModes
impl Sync for RetrievalModes
impl Unpin for RetrievalModes
impl UnwindSafe for RetrievalModes
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