Click or drag to resize

Cv2CountNonZero Method

computes the number of nonzero array elements

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
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