CvCountNonZero Method OpenCvSharp Class Library
Counts non-zero array elements

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int CountNonZero(
	CvArr arr
)

Parameters

arr
Type: OpenCvSharpCvArr
The array, must be single-channel array or multi-channel image with COI set.

Return Value

Type: Int32
the number of non-zero elements in arr
See Also

Reference