LDATrait

Trait LDATrait 

Source
pub trait LDATrait: LDATraitConst {
    // Required method
    fn as_raw_mut_LDA(&mut self) -> *mut c_void;

    // Provided methods
    fn load(&mut self, filename: &str) -> Result<()> { ... }
    fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()> { ... }
    fn compute(
        &mut self,
        src: &impl ToInputArray,
        labels: &impl ToInputArray,
    ) -> Result<()> { ... }
    fn project(&mut self, src: &impl ToInputArray) -> Result<Mat> { ... }
    fn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat> { ... }
}
Expand description

Mutable methods for core::LDA

Required Methods§

Provided Methods§

Source

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

Deserializes this object from a given filename.

Source

fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>

Deserializes this object from a given cv::FileStorage.

Source

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

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

Source

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

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

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§