Finds minimum and maximum element values and their positions. The extremums are searched over the whole array, selected ROI (in case of IplImage) or, if mask is not NULL, in the specified array region. If the array has more than one channel, it must be IplImage with COI set. In case if multi-dimensional arrays min_loc->x and max_loc->x will contain raw (linear) positions of the extremums

C# | Visual Basic | Visual C++ |
public static void cvMinMaxLoc( IntPtr arr, ref double minVal, ref double maxVal, ref MCvPoint minLoc, ref MCvPoint maxLoc, IntPtr mask )

- arr (IntPtr)
- The source array, single-channel or multi-channel with COI set
- minVal ( Double %)
- Pointer to returned minimum value
- maxVal ( Double %)
- Pointer to returned maximum value
- minLoc ( MCvPoint %)
- Pointer to returned minimum location
- maxLoc ( MCvPoint %)
- Pointer to returned maximum location
- mask (IntPtr)
- The optional mask that is used to select a subarray