[][src]Trait opencv::core::LDATrait

pub trait LDATrait {
    fn as_raw_LDA(&self) -> *const c_void;
fn as_raw_mut_LDA(&mut self) -> *mut c_void; fn save(&self, filename: &str) -> Result<()> { ... }
fn load(&mut self, filename: &str) -> Result<()> { ... }
fn save_1(&self, fs: &mut FileStorage) -> Result<()> { ... }
fn load_1(&mut self, node: &FileStorage) -> Result<()> { ... }
fn compute(
        &mut self,
        src: &dyn ToInputArray,
        labels: &dyn ToInputArray
    ) -> Result<()> { ... }
fn project(&mut self, src: &dyn ToInputArray) -> Result<Mat> { ... }
fn reconstruct(&mut self, src: &dyn ToInputArray) -> Result<Mat> { ... }
fn eigenvectors(&self) -> Result<Mat> { ... }
fn eigenvalues(&self) -> Result<Mat> { ... } }

Linear Discriminant Analysis @todo document this class

Required methods

Loading content...

Provided methods

fn save(&self, filename: &str) -> Result<()>[src]

Serializes this object to a given filename.

fn load(&mut self, filename: &str) -> Result<()>[src]

Deserializes this object from a given filename.

fn save_1(&self, fs: &mut FileStorage) -> Result<()>[src]

Serializes this object to a given cv::FileStorage.

fn load_1(&mut self, node: &FileStorage) -> Result<()>[src]

Deserializes this object from a given cv::FileStorage.

fn compute(
    &mut self,
    src: &dyn ToInputArray,
    labels: &dyn ToInputArray
) -> Result<()>
[src]

Compute the discriminants for data in src (row aligned) and labels.

fn project(&mut self, src: &dyn ToInputArray) -> Result<Mat>[src]

Projects samples into the LDA subspace. src may be one or more row aligned samples.

fn reconstruct(&mut self, src: &dyn ToInputArray) -> Result<Mat>[src]

Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.

fn eigenvectors(&self) -> Result<Mat>[src]

Returns the eigenvectors of this LDA.

fn eigenvalues(&self) -> Result<Mat>[src]

Returns the eigenvalues of this LDA.

Loading content...

Implementors

impl LDATrait for LDA[src]

Loading content...