[][src]Struct imageproc::contours::Contour

pub struct Contour<T> {
    pub points: Vec<Point<T>>,
    pub border_type: BorderType,
    pub parent: Option<usize>,
}

A border of an 8-connected foreground region.

Fields

points: Vec<Point<T>>

The points in the border.

border_type: BorderType

Whether this is an outer border or a hole border.

parent: Option<usize>

Calls to find_contours and find_contours_with_threshold return a Vec of all borders in an image. This field provides the index for the parent of the current border in that Vec.

Implementations

impl<T> Contour<T>[src]

pub fn new(
    points: Vec<Point<T>>,
    border_type: BorderType,
    parent: Option<usize>
) -> Self
[src]

Construct a contour.

Trait Implementations

impl<T: Debug> Debug for Contour<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Contour<T> where
    T: RefUnwindSafe

impl<T> Send for Contour<T> where
    T: Send

impl<T> Sync for Contour<T> where
    T: Sync

impl<T> Unpin for Contour<T> where
    T: Unpin

impl<T> UnwindSafe for Contour<T> where
    T: UnwindSafe

Blanket Implementations

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

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

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

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

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

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

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

impl<T> SetParameter for T

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

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<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.