Exemplo n.º 1
0
 private static extern void cveBalanceWhite(IntPtr src, IntPtr dst, CvEnum.WhiteBalanceMethod algorithmType, float inputMin, float inputMax, float outputMin, float outputMax);
Exemplo n.º 2
0
 /// <summary>
 /// The function implements different algorithm of automatic white balance, i.e. it tries to map image’s white color to perceptual white (this can be violated due to specific illumination or camera settings).
 /// </summary>
 /// <param name="src">The source.</param>
 /// <param name="dst">The DST.</param>
 /// <param name="algorithmType">Type of the algorithm to use. Use SIMPLE to perform smart histogram adjustments (ignoring 4% pixels with minimal and maximal values) for each channel.</param>
 /// <param name="inputMin">Minimum value in the input image</param>
 /// <param name="inputMax">Maximum value in the input image</param>
 /// <param name="outputMin">Minimum value in the output image</param>
 /// <param name="outputMax">Maximum value in the output image</param>
 public static void BalanceWhite(Mat src, Mat dst, CvEnum.WhiteBalanceMethod algorithmType, float inputMin = 0f, float inputMax = 255f, float outputMin = 0f, float outputMax = 255f)
 {
     cveBalanceWhite(src, dst, algorithmType, inputMin, inputMax, outputMin, outputMax);
 }