color_reduce_im_quantize(src, num_colors)ΒΆ

Reduces the number of colors in the image to a specified number.

Inputs

name type default description
src image   Source image
num_colors int 256 Number of colors to reduce the image to. This must be a power of 2 (2, 4, 8, 16, etc).

Outputs

name type default description
dst image   Destination image
../../_images/color_reduce_im_quantize.png