Table of Contents

Method HasNonZero

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

HasNonZero(InputArray)

Checks whether the array contains at least one non-zero element. Faster than CountNonZero(InputArray) when only the presence of non-zero elements matters.

public static bool HasNonZero(InputArray src)

Parameters

src InputArray

Single-channel array

Returns

bool

true if src has at least one non-zero element