/// <summary> /// Returns the correction mask. /// </summary> /// <param name="input">Input values</param> /// <param name="output">Output values</param> /// <param name="length">Length</param> /// <returns>Array</returns> public static float[] Levels(RangeFloat input, RangeFloat output, int length) { return(Intensity.Levels(input.Min, input.Max, output.Min, output.Max, length)); }
/// <summary> /// Implements filter rebuilding. /// </summary> protected override void Rebuild() { this.values = Intensity.Levels(input, output, 256); }