color_reduce_im_mean_shift(src, kernel_size, color_distance)ΒΆ

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

Inputs

name type default description
src image   Source image
kernel_size int 7 Size of kernel window. Must be odd and greater than 1.
color_distance float 0.500 Euclidean distance to merge colors in the range (0,1)

Outputs

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