[][src]Struct opencv::core::LDA

pub struct LDA { /* fields omitted */ }

Linear Discriminant Analysis @todo document this class

Implementations

impl LDA[src]

pub fn as_raw_LDA(&self) -> *const c_void[src]

pub fn as_raw_mut_LDA(&mut self) -> *mut c_void[src]

impl LDA[src]

pub fn new(num_components: i32) -> Result<LDA>[src]

constructor Initializes a LDA with num_components (default 0).

C++ default parameters

  • num_components: 0

pub fn new_with_data(
    src: &dyn ToInputArray,
    labels: &dyn ToInputArray,
    num_components: i32
) -> Result<LDA>
[src]

Initializes and performs a Discriminant Analysis with Fisher's Optimization Criterion on given data in src and corresponding labels in labels. If 0 (or less) number of components are given, they are automatically determined for given data in computation.

C++ default parameters

  • num_components: 0

pub fn subspace_project(
    w: &dyn ToInputArray,
    mean: &dyn ToInputArray,
    src: &dyn ToInputArray
) -> Result<Mat>
[src]

pub fn subspace_reconstruct(
    w: &dyn ToInputArray,
    mean: &dyn ToInputArray,
    src: &dyn ToInputArray
) -> Result<Mat>
[src]

Trait Implementations

impl Boxed for LDA[src]

impl Drop for LDA[src]

impl LDATrait for LDA[src]

impl Send for LDA[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, 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.