[−][src]Struct opencv::core::LDA
Linear Discriminant Analysis @todo document this class
Implementations
impl LDA
[src]
pub fn as_raw_LDA(&self) -> *const c_void
[src]
pub fn as_raw_mut_LDA(&mut self) -> *mut c_void
[src]
impl LDA
[src]
pub fn new(num_components: i32) -> Result<LDA>
[src]
constructor Initializes a LDA with num_components (default 0).
C++ default parameters
- num_components: 0
pub fn new_with_data(
src: &dyn ToInputArray,
labels: &dyn ToInputArray,
num_components: i32
) -> Result<LDA>
[src]
src: &dyn ToInputArray,
labels: &dyn ToInputArray,
num_components: i32
) -> Result<LDA>
Initializes and performs a Discriminant Analysis with Fisher's Optimization Criterion on given data in src and corresponding labels in labels. If 0 (or less) number of components are given, they are automatically determined for given data in computation.
C++ default parameters
- num_components: 0
pub fn subspace_project(
w: &dyn ToInputArray,
mean: &dyn ToInputArray,
src: &dyn ToInputArray
) -> Result<Mat>
[src]
w: &dyn ToInputArray,
mean: &dyn ToInputArray,
src: &dyn ToInputArray
) -> Result<Mat>
pub fn subspace_reconstruct(
w: &dyn ToInputArray,
mean: &dyn ToInputArray,
src: &dyn ToInputArray
) -> Result<Mat>
[src]
w: &dyn ToInputArray,
mean: &dyn ToInputArray,
src: &dyn ToInputArray
) -> Result<Mat>
Trait Implementations
impl Boxed for LDA
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for LDA
[src]
impl LDATrait for LDA
[src]
pub fn as_raw_LDA(&self) -> *const c_void
[src]
pub fn as_raw_mut_LDA(&mut self) -> *mut c_void
[src]
pub fn save(&self, filename: &str) -> Result<()>
[src]
pub fn load(&mut self, filename: &str) -> Result<()>
[src]
pub fn save_1(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn load_1(&mut self, node: &FileStorage) -> Result<()>
[src]
pub fn compute(
&mut self,
src: &dyn ToInputArray,
labels: &dyn ToInputArray
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
labels: &dyn ToInputArray
) -> Result<()>
pub fn project(&mut self, src: &dyn ToInputArray) -> Result<Mat>
[src]
pub fn reconstruct(&mut self, src: &dyn ToInputArray) -> Result<Mat>
[src]
pub fn eigenvectors(&self) -> Result<Mat>
[src]
pub fn eigenvalues(&self) -> Result<Mat>
[src]
impl Send for LDA
[src]
Auto Trait Implementations
impl RefUnwindSafe for LDA
[src]
impl !Sync for LDA
[src]
impl Unpin for LDA
[src]
impl UnwindSafe for LDA
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,