[][src]Struct pico_detect::CascadeParameters

pub struct CascadeParameters {
    pub min_size: u32,
    pub max_size: u32,
    pub shift_factor: f32,
    pub scale_factor: f32,
}

Cascade parameters for Detector.

Fields

min_size: u32

Minimum size of an object.

max_size: u32

Maximum size of an object.

shift_factor: f32

How far to move the detection window by fraction of its size: (0..1).

scale_factor: f32

For multiscale processing: resize the detection window by fraction of its size when moving to the higher scale: (0..1).

Implementations

impl CascadeParameters[src]

pub fn new(
    min_size: u32,
    max_size: u32,
    shift_factor: f32,
    scale_factor: f32
) -> Self
[src]

Constructs a new CascadeParameters.

Trait Implementations

impl Debug for CascadeParameters[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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

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