http://www.emgu.com
Checks that every array element is neither NaN nor Infinity. If CV_CHECK_RANGE is set, it also checks that every element is greater than or equal to minVal and less than maxVal.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static int cvCheckArr(
	IntPtr arr,
	CHECK_TYPE flags,
	double minVal,
	double maxVal
)
Visual Basic
Public Shared Function cvCheckArr ( _
	arr As IntPtr, _
	flags As CHECK_TYPE, _
	minVal As Double, _
	maxVal As Double _
) As Integer
Visual C++
public:
static int cvCheckArr(
	IntPtr arr, 
	CHECK_TYPE flags, 
	double minVal, 
	double maxVal
)

Parameters

arr
Type: System..::..IntPtr
The array to check.
flags
Type: Emgu.CV.CvEnum..::..CHECK_TYPE
The operation flags, CHECK_NAN_INFINITY or combination of CHECK_RANGE - if set, the function checks that every value of array is within [minVal,maxVal) range, otherwise it just checks that every element is neigther NaN nor Infinity. CHECK_QUIET - if set, the function does not raises an error if an element is invalid or out of range
minVal
Type: System..::..Double
The inclusive lower boundary of valid values range. It is used only if CHECK_RANGE is set.
maxVal
Type: System..::..Double
The exclusive upper boundary of valid values range. It is used only if CHECK_RANGE is set.

Return Value

Returns nonzero if the check succeeded, i.e. all elements are valid and within the range, and zero otherwise. In the latter case if CV_CHECK_QUIET flag is not set, the function raises runtime error.

See Also