/// <summary> /// Returns the correction mask. /// </summary> /// <param name="max">Maximum value</param> /// <param name="min">Minimum value</param> /// <param name="length">Length</param> /// <returns>Array</returns> public static float[] Equalize(float min, float max, int length) { float[] table = new float[length]; for (int x = 0; x < length; x++) { table[x] = Intensity.Equalize(x / (float)length, min, max); } return(table); }
/// <summary> /// Implements filter rebuilding. /// </summary> protected override void Rebuild() { this.values = Intensity.Equalize(range.Min, range.Max, 256); }