void posterize (int levels)
Specifies the number of tonal levels for each channel and then maps pixels to the closest matching level.