pub fn mean(src: &dyn core::ToInputArray, mask: &dyn core::ToInputArray) -> Result<core::Scalar> {
	input_array_arg!(src);
	input_array_arg!(mask);
	unsafe { sys::cv_mean_const__InputArrayX_const__InputArrayX(src.as_raw__InputArray(), mask.as_raw__InputArray()) }.into_result()
}
/// Calculates an average (mean) of array elements.
/// 
/// The function cv::mean calculates the mean value M of array elements,
/// independently for each channel, and return it:
/// ![block formula](https://latex.codecogs.com/png.latex?%5Cbegin%7Barray%7D%7Bl%7D%20N%20%3D%20%20%5Csum%20%5F%7BI%3A%20%5C%3B%20%5Ctexttt%7Bmask%7D%20%28I%29%20%5Cne%200%7D%201%20%5C%5C%20M%5Fc%20%3D%20%20%5Cleft%20%28%20%5Csum%20%5F%7BI%3A%20%5C%3B%20%5Ctexttt%7Bmask%7D%20%28I%29%20%5Cne%200%7D%7B%20%5Ctexttt%7Bmtx%7D%20%28I%29%5Fc%7D%20%5Cright%20%29%2FN%20%5Cend%7Barray%7D)
/// When all the mask elements are 0's, the function returns Scalar::all(0)
/// ## Parameters
/// * src: input array that should have from 1 to 4 channels so that the result can be stored in
/// Scalar_ .
/// * mask: optional operation mask.
/// ## See also
/// countNonZero, meanStdDev, norm, minMaxLoc
/// 
/// ## C++ default parameters
/// * mask: noArray()
Calculates an average (mean) of array elements.
Calculates an average ( mean ) of array elements .
pub fn mean(src: &dyn core::ToInputArray, mask: &dyn core::ToInputArray) -> Result<core::Scalar> {
	input_array_arg!(src);
	input_array_arg!(mask);
	unsafe { sys::cv_mean_const__InputArrayX_const__InputArrayX(src.as_raw__InputArray(), mask.as_raw__InputArray()) }.into_result()
}
pub fn mean ( src : & dyn core :: ToInputArray , mask : & dyn core :: ToInputArray ) -> Result < core :: Scalar > { input_array_arg ! ( src ) ; input_array_arg ! ( mask ) ; unsafe { sys :: cv_mean_const__InputArrayX_const__InputArrayX ( src . as_raw__InputArray ( ) , mask . as_raw__InputArray ( ) ) } . into_result ( ) }
Calculates an average (mean) of array elements.
Calculates an average ( mean ) of array elements .
src
&dyn core::ToInputArray
mask
&dyn core::ToInputArray
see also
countNonZero, meanStdDev, norm, minMaxLoc
countNonZero meanStdDev norm minMaxLoc
c++ default parameters
None