Finds the minimum and maximum histogram bins and their positions

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 cvGetMinMaxHistValue(
	IntPtr hist,
	ref float minValue,
	ref float maxValue,
	int[] minIdx,
	int[] maxIdx
)
Public Shared Sub cvGetMinMaxHistValue ( _
	hist As IntPtr, _
	ByRef minValue As Single, _
	ByRef maxValue As Single, _
	minIdx As Integer(), _
	maxIdx As Integer() _
)
public:
static void cvGetMinMaxHistValue(
	IntPtr hist, 
	float% minValue, 
	float% maxValue, 
	array<int>^ minIdx, 
	array<int>^ maxIdx
)

Parameters

hist
IntPtr
Histogram
minValue
Single%
Pointer to the minimum value of the histogram
maxValue
Single%
Pointer to the maximum value of the histogram
minIdx
array<Int32>[]()[][]
Pointer to the array of coordinates for minimum
maxIdx
array<Int32>[]()[][]
Pointer to the array of coordinates for maximum

Remarks

Among several extremums with the same value the ones with minimum index (in lexicographical order). In case of several maximums or minimums the earliest in lexicographical order extrema locations are returned.

See Also