Click or drag to resize

Cv2CountNonZero Method

computes the number of nonzero array elements

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static int CountNonZero(
	InputArray mtx
)

Parameters

mtx
Type: OpenCvSharpInputArray
Single-channel array

Return Value

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