pub fn new(data: &dyn core::ToInputArray, mean: &dyn core::ToInputArray, flags: i32, max_components: i32) -> Result<core::PCA> {
		input_array_arg!(data);
		input_array_arg!(mean);
		unsafe { sys::cv_PCA_PCA_const__InputArrayX_const__InputArrayX_int_int(data.as_raw__InputArray(), mean.as_raw__InputArray(), flags, max_components) }.into_result().map(|ptr| unsafe { core::PCA::from_raw(ptr) })
	}
/// default constructor
/// 
/// The default constructor initializes an empty %PCA structure. The other
/// constructors initialize the structure and call PCA::operator()().
/// 
/// ## Overloaded parameters
/// 
/// ## Parameters
/// * data: input samples stored as matrix rows or matrix columns.
/// * mean: optional mean value; if the matrix is empty (@c noArray()),
///    the mean is computed from the data.
/// * flags: operation flags; currently the parameter is only used to
///    specify the data layout (PCA::Flags)
/// * maxComponents: maximum number of components that %PCA should
///    retain; by default, all the components are retained.
/// 
/// ## C++ default parameters
/// * max_components: 0
default constructor
The default constructor initializes an empty %PCA structure. The other
constructors initialize the structure and call PCA::operator()().
default constructor The default constructor initializes an empty %PCA structure . The other constructors initialize the structure and call PCA :: operator () () .
pub fn new(data: &dyn core::ToInputArray, mean: &dyn core::ToInputArray, flags: i32, max_components: i32) -> Result<core::PCA> {
		input_array_arg!(data);
		input_array_arg!(mean);
		unsafe { sys::cv_PCA_PCA_const__InputArrayX_const__InputArrayX_int_int(data.as_raw__InputArray(), mean.as_raw__InputArray(), flags, max_components) }.into_result().map(|ptr| unsafe { core::PCA::from_raw(ptr) })
	}
pub fn new ( data : & dyn core :: ToInputArray , mean : & dyn core :: ToInputArray , flags : i32 , max_components : i32 ) -> Result < core :: PCA > { input_array_arg ! ( data ) ; input_array_arg ! ( mean ) ; unsafe { sys :: cv_PCA_PCA_const__InputArrayX_const__InputArrayX_int_int ( data . as_raw__InputArray ( ) , mean . as_raw__InputArray ( ) , flags , max_components ) } . into_result ( ) . map ( | ptr | unsafe { core :: PCA :: from_raw ( ptr ) } ) }
default constructor
The default constructor initializes an empty %PCA structure.
default constructor The default constructor initializes an empty %PCA structure .
data
&dyn core::ToInputArray
mean
&dyn core::ToInputArray
flags
i32
max_components
i32
overloaded parameters
None
c++ default parameters
None