[−][src]Enum opencv::core::CovarFlags
Covariation flags
Variants
The output covariance matrix is calculated as: The covariance matrix will be nsamples x nsamples. Such an unusual covariance matrix is used for fast PCA of a set of very large vectors (see, for example, the EigenFaces technique for face recognition). Eigenvalues of this "scrambled" matrix match the eigenvalues of the true covariance matrix. The "true" eigenvectors can be easily calculated from the eigenvectors of the "scrambled" covariance matrix.
The output covariance matrix is calculated as: covar will be a square matrix of the same size as the total number of elements in each input vector. One and only one of #COVAR_SCRAMBLED and #COVAR_NORMAL must be specified.
If the flag is specified, the function does not calculate mean from the input vectors but, instead, uses the passed mean vector. This is useful if mean has been pre-calculated or known in advance, or if the covariance matrix is calculated by parts. In this case, mean is not a mean vector of the input sub-set of vectors but rather the mean vector of the whole set.
If the flag is specified, the covariance matrix is scaled. In the "normal" mode, scale is 1./nsamples . In the "scrambled" mode, scale is the reciprocal of the total number of elements in each input vector. By default (if the flag is not specified), the covariance matrix is not scaled ( scale=1 ).
If the flag is specified, all the input vectors are stored as rows of the samples matrix. mean should be a single-row vector in this case.
If the flag is specified, all the input vectors are stored as columns of the samples matrix. mean should be a single-column vector in this case.
Trait Implementations
impl Clone for CovarFlags
[src]
pub fn clone(&self) -> CovarFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CovarFlags
[src]
impl Debug for CovarFlags
[src]
impl PartialEq<CovarFlags> for CovarFlags
[src]
pub fn eq(&self, other: &CovarFlags) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for CovarFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for CovarFlags
[src]
impl Send for CovarFlags
[src]
impl Sync for CovarFlags
[src]
impl Unpin for CovarFlags
[src]
impl UnwindSafe for CovarFlags
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,