示例#1
0
        /// <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);
        }
示例#2
0
 /// <summary>
 /// Implements filter rebuilding.
 /// </summary>
 protected override void Rebuild()
 {
     this.values = Intensity.Equalize(range.Min, range.Max, 256);
 }