pub fn new_with_data(src: &dyn core::ToInputArray, labels: &dyn core::ToInputArray, num_components: i32) -> Result<core::LDA> {
		input_array_arg!(src);
		input_array_arg!(labels);
		unsafe { sys::cv_LDA_LDA_const__InputArrayX_const__InputArrayX_int(src.as_raw__InputArray(), labels.as_raw__InputArray(), num_components) }.into_result().map(|ptr| unsafe { core::LDA::from_raw(ptr) })
	}
/// 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
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.
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 .
pub fn new_with_data(src: &dyn core::ToInputArray, labels: &dyn core::ToInputArray, num_components: i32) -> Result<core::LDA> {
		input_array_arg!(src);
		input_array_arg!(labels);
		unsafe { sys::cv_LDA_LDA_const__InputArrayX_const__InputArrayX_int(src.as_raw__InputArray(), labels.as_raw__InputArray(), num_components) }.into_result().map(|ptr| unsafe { core::LDA::from_raw(ptr) })
	}
pub fn new_with_data ( src : & dyn core :: ToInputArray , labels : & dyn core :: ToInputArray , num_components : i32 ) -> Result < core :: LDA > { input_array_arg ! ( src ) ; input_array_arg ! ( labels ) ; unsafe { sys :: cv_LDA_LDA_const__InputArrayX_const__InputArrayX_int ( src . as_raw__InputArray ( ) , labels . as_raw__InputArray ( ) , num_components ) } . into_result ( ) . map ( | ptr | unsafe { core :: LDA :: from_raw ( ptr ) } ) }
Initializes and performs a Discriminant Analysis with Fisher's
Optimization Criterion on given data in src and corresponding labels
in labels.
Initializes and performs a Discriminant Analysis with Fisher ' s Optimization Criterion on given data in src and corresponding labels in labels .
src
&dyn core::ToInputArray
labels
&dyn core::ToInputArray
num_components
i32
c++ default parameters
None