Function sum
Source pub fn sum(src: &impl ToInputArray, mask: &impl ToInputArray) -> Result<Scalar>
Expand description
Returns the sum of matrix elements.
§Parameters
- src: Source image of any depth except for CV_64F .
- mask: optional operation mask; it must have the same size as src1 and CV_8UC1 type.
§See also
sum
§C++ default parameters