Posterize

Use posterize to remap red, green, and blue color components to the number of brightness values you specify for each color component.

Choose Image ‣ Posterize