/// <summary>
/// Finds the minimum and maximum histogram bins and their positions
/// </summary>
/// <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.
/// </remarks>
/// <param name="minValue">Pointer to the minimum value of the histogram </param>
/// <param name="maxValue">Pointer to the maximum value of the histogram </param>
/// <param name="minLocation">Pointer to the array of coordinates for minimum </param>
/// <param name="maxLocation">Pointer to the array of coordinates for maximum </param>
public void MinMax(out float minValue, out float maxValue, out int[] minLocation, out int[] maxLocation)
{
minValue = 0;
maxValue = 0;
int dimension = Dimension;
minLocation = new int[dimension];
maxLocation = new int[dimension];
CvInvoke.cvGetMinMaxHistValue(_ptr, ref minValue, ref maxValue, minLocation, maxLocation);
}