Table of Contents

Method CheckRange

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CheckRange(InputArray, bool)

checks that each matrix element is within the specified range.

public static bool CheckRange(InputArray src, bool quiet = true)

Parameters

src InputArray

The array to check

quiet bool

The flag indicating whether the functions quietly return false when the array elements are out of range, or they throw an exception.

Returns

bool

CheckRange(InputArray, bool, out Point, double, double)

checks that each matrix element is within the specified range.

public static bool CheckRange(InputArray src, bool quiet, out Point pos, double minVal = -1.7976931348623157E+308, double maxVal = 1.7976931348623157E+308)

Parameters

src InputArray

The array to check

quiet bool

The flag indicating whether the functions quietly return false when the array elements are out of range, or they throw an exception.

pos Point

The optional output parameter, where the position of the first outlier is stored.

minVal double

The inclusive lower boundary of valid values range

maxVal double

The exclusive upper boundary of valid values range

Returns

bool