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.

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

- arr (IntPtr)
- The array to check.
- flags (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 (Double)
- The inclusive lower boundary of valid values range. It is used only if CHECK_RANGE is set.
- maxVal (Double)
- The exclusive upper boundary of valid values range. It is used only if CHECK_RANGE is set.

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.