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.
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.