Gray Scale Quantization

Original
shades: 32
shades: 16
shades: 8
shades: 4
shades: 2


Parameters:

shades:Integer - value (0-255).

Author: Gabriel Ambrósio Archanjo