pub fn calc_covar_matrix(samples: &dyn core::ToInputArray, covar: &mut dyn core::ToOutputArray, mean: &mut dyn core::ToInputOutputArray, flags: i32, ctype: i32) -> Result<()> {
	input_array_arg!(samples);
	output_array_arg!(covar);
	input_output_array_arg!(mean);
	unsafe { sys::cv_calcCovarMatrix_const__InputArrayX_const__OutputArrayX_const__InputOutputArrayX_int_int(samples.as_raw__InputArray(), covar.as_raw__OutputArray(), mean.as_raw__InputOutputArray(), flags, ctype) }.into_result()
}
/// Calculates the covariance matrix of a set of vectors.
/// 
/// The function cv::calcCovarMatrix calculates the covariance matrix and, optionally, the mean vector of
/// the set of input vectors.
/// ## Parameters
/// * samples: samples stored as separate matrices
/// * nsamples: number of samples
/// * covar: output covariance matrix of the type ctype and square size.
/// * mean: input or output (depending on the flags) array as the average value of the input vectors.
/// * flags: operation flags as a combination of #CovarFlags
/// * ctype: type of the matrixl; it equals 'CV_64F' by default.
/// ## See also
/// PCA, mulTransposed, Mahalanobis
/// @todo InputArrayOfArrays
/// 
/// ## Overloaded parameters
/// 
/// 
/// Note: use #COVAR_ROWS or #COVAR_COLS flag
/// * samples: samples stored as rows/columns of a single matrix.
/// * covar: output covariance matrix of the type ctype and square size.
/// * mean: input or output (depending on the flags) array as the average value of the input vectors.
/// * flags: operation flags as a combination of #CovarFlags
/// * ctype: type of the matrixl; it equals 'CV_64F' by default.
/// 
/// ## C++ default parameters
/// * ctype: CV_64F
Calculates the covariance matrix of a set of vectors.
The function cv::calcCovarMatrix calculates the covariance matrix and, optionally, the mean vector of
the set of input vectors.
Calculates the covariance matrix of a set of vectors . The function cv :: calcCovarMatrix calculates the covariance matrix and optionally the mean vector of the set of input vectors .
pub fn calc_covar_matrix(samples: &dyn core::ToInputArray, covar: &mut dyn core::ToOutputArray, mean: &mut dyn core::ToInputOutputArray, flags: i32, ctype: i32) -> Result<()> {
	input_array_arg!(samples);
	output_array_arg!(covar);
	input_output_array_arg!(mean);
	unsafe { sys::cv_calcCovarMatrix_const__InputArrayX_const__OutputArrayX_const__InputOutputArrayX_int_int(samples.as_raw__InputArray(), covar.as_raw__OutputArray(), mean.as_raw__InputOutputArray(), flags, ctype) }.into_result()
}
pub fn calc_covar_matrix ( samples : & dyn core :: ToInputArray , covar : & mut dyn core :: ToOutputArray , mean : & mut dyn core :: ToInputOutputArray , flags : i32 , ctype : i32 ) -> Result < ( ) > { input_array_arg ! ( samples ) ; output_array_arg ! ( covar ) ; input_output_array_arg ! ( mean ) ; unsafe { sys :: cv_calcCovarMatrix_const__InputArrayX_const__OutputArrayX_const__InputOutputArrayX_int_int ( samples . as_raw__InputArray ( ) , covar . as_raw__OutputArray ( ) , mean . as_raw__InputOutputArray ( ) , flags , ctype ) } . into_result ( ) }
Calculates the covariance matrix of a set of vectors.
Calculates the covariance matrix of a set of vectors .
samples
&dyn core::ToInputArray
covar
&mut dyn core::ToOutputArray
mean
&mut dyn core::ToInputOutputArray
flags
i32
ctype
i32
see also
PCA, mulTransposed, Mahalanobis
@todo InputArrayOfArrays
PCA mulTransposed Mahalanobis @todo InputArrayOfArrays
overloaded parameters
use #COVAR_ROWS or #COVAR_COLS flag
samples: samples stored as rows/columns of a single matrix.
covar: output covariance matrix of the type ctype and square size.
mean: input or output (depending on the flags) array as the average value of the input vectors.
flags: operation flags as a combination of #CovarFlags
ctype: type of the matrixl; it equals 'CV_64F' by default.
use #COVAR_ROWS or #COVAR_COLS flag samples : samples stored as rows / columns of a single matrix . covar : output covariance matrix of the type ctype and square size . mean : input or output ( depending on the flags ) array as the average value of the input vectors . flags : operation flags as a combination of #CovarFlags ctype : type of the matrixl ; it equals ' CV_64F ' by default .
c++ default parameters
None