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§
fn as_raw_mut_LDA(&mut self) -> *mut c_void
Provided Methods§
sourcefn load(&mut self, filename: &str) -> Result<()>
fn load(&mut self, filename: &str) -> Result<()>
Deserializes this object from a given filename.
sourcefn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>
fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>
Deserializes this object from a given cv::FileStorage.
sourcefn compute(
&mut self,
src: &impl ToInputArray,
labels: &impl ToInputArray,
) -> Result<()>
fn compute( &mut self, src: &impl ToInputArray, labels: &impl ToInputArray, ) -> Result<()>
Compute the discriminants for data in src (row aligned) and labels.
sourcefn project(&mut self, src: &impl ToInputArray) -> Result<Mat>
fn project(&mut self, src: &impl ToInputArray) -> Result<Mat>
Projects samples into the LDA subspace. src may be one or more row aligned samples.
sourcefn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat>
fn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat>
Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.
Object Safety§
This trait is not object safe.