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.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvMinMaxLoc(
	IntPtr arr,
	ref double minVal,
	ref double maxVal,
	ref Point minLoc,
	ref Point maxLoc,
	IntPtr mask
)
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 _
)
public:
static void cvMinMaxLoc(
	IntPtr arr, 
	double% minVal, 
	double% maxVal, 
	Point% minLoc, 
	Point% maxLoc, 
	IntPtr mask
)

Parameters

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
Point%
Pointer to returned minimum location
maxLoc
Point%
Pointer to returned maximum location
mask
IntPtr
The optional mask that is used to select a subarray. Use IntPtr.Zero if not needed

See Also