http://www.emgu.com
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 IntPtr.Zero, 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

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

Syntax

C#
public static void cvMinMaxLoc(
	IntPtr arr,
	ref double minVal,
	ref double maxVal,
	ref Point minLoc,
	ref Point maxLoc,
	IntPtr mask
)
Visual Basic
Public Shared Sub cvMinMaxLoc ( _
	arr As IntPtr, _
	ByRef minVal As Double, _
	ByRef maxVal As Double, _
	ByRef minLoc As Point, _
	ByRef maxLoc As Point, _
	mask As IntPtr _
)
Visual C++
public:
static void cvMinMaxLoc(
	IntPtr arr, 
	double% minVal, 
	double% maxVal, 
	Point% minLoc, 
	Point% maxLoc, 
	IntPtr mask
)

Parameters

arr
Type: System..::..IntPtr
The source array, single-channel or multi-channel with COI set
minVal
Type: System..::..Double%
Pointer to returned minimum value
maxVal
Type: System..::..Double%
Pointer to returned maximum value
minLoc
Type: System.Drawing..::..Point%
Pointer to returned minimum location
maxLoc
Type: System.Drawing..::..Point%
Pointer to returned maximum location
mask
Type: System..::..IntPtr
The optional mask that is used to select a subarray. Use IntPtr.Zero if not needed

See Also