Trait opencv::core::prelude::LDATrait [−][src]
pub trait LDATrait: LDATraitConst {
fn as_raw_mut_LDA(&mut self) -> *mut c_void;
fn load(&mut self, filename: &str) -> 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> { ... }
}
Required methods
fn as_raw_mut_LDA(&mut self) -> *mut c_void
Provided methods
Deserializes this object from a given filename.
fn load_1(&mut self, node: &FileStorage) -> Result<()>
fn load_1(&mut self, node: &FileStorage) -> Result<()>
Deserializes this object from a given cv::FileStorage.
fn compute(
&mut self,
src: &dyn ToInputArray,
labels: &dyn ToInputArray
) -> Result<()>
fn compute(
&mut self,
src: &dyn ToInputArray,
labels: &dyn ToInputArray
) -> Result<()>
Compute the discriminants for data in src (row aligned) and labels.
fn project(&mut self, src: &dyn ToInputArray) -> Result<Mat>
fn project(&mut self, src: &dyn ToInputArray) -> Result<Mat>
Projects samples into the LDA subspace. src may be one or more row aligned samples.
fn reconstruct(&mut self, src: &dyn ToInputArray) -> Result<Mat>
fn reconstruct(&mut self, src: &dyn ToInputArray) -> Result<Mat>
Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.