Once the optimum clipping interval is found it should be mapped to the display device's input values. If the clipping contrast equals the display device's contrast a linear mapping should be used. The implementation is straightforward. First all values less than A are set to be equal A, and all values greater than B, are set to be equal B. Now, the [A,B] interval should be linearly mapped to the [0,1] input interval.

Algorithm 2