bool Imagick::posterizeImage    ( int $levels   , bool $dither   )

Imagick::posterizeImageReduces the image to a limited number of color level

levels

dither