[][src]Struct opencv::line_descriptor::LSDParam

#[repr(C)]
pub struct LSDParam {
    pub scale: f64,
    pub sigma_scale: f64,
    pub quant: f64,
    pub ang_th: f64,
    pub log_eps: f64,
    pub density_th: f64,
    pub n_bins: i32,
}

Lines extraction methodology

The lines extraction methodology described in the following is mainly based on EDL . The extraction starts with a Gaussian pyramid generated from an original image, downsampled N-1 times, blurred N times, to obtain N layers (one for each octave), with layer 0 corresponding to input image. Then, from each layer (octave) in the pyramid, lines are extracted using LSD algorithm.

Differently from EDLine lines extractor used in original article, LSD furnishes information only about lines extremes; thus, additional information regarding slope and equation of line are computed via analytic methods. The number of pixels is obtained using LineIterator. Extracted lines are returned in the form of KeyLine objects, but since extraction is based on a method different from the one used in BinaryDescriptor class, data associated to a line's extremes in original image and in octave it was extracted from, coincide. KeyLine's field class_id is used as an index to indicate the order of extraction of a line inside a single octave.

Fields

scale: f64sigma_scale: f64quant: f64ang_th: f64log_eps: f64density_th: f64n_bins: i32

Methods

impl LSDParam[src]

Trait Implementations

impl Clone for LSDParam[src]

impl Copy for LSDParam[src]

impl Debug for LSDParam[src]

impl PartialEq<LSDParam> for LSDParam[src]

impl StructuralPartialEq for LSDParam[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.