Click or drag to resize
CvInvokeCountNonZero Method
http://www.emgu.com
Returns the number of non-zero elements in arr: result = sumI arr(I)!=0 In case of IplImage both ROI and COI are supported.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntax
public static int CountNonZero(
	IInputArray arr
)

Parameters

arr
Type: Emgu.CVIInputArray
The image

Return Value

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