I am making a program using Java todo colo quantization using mean shift clustering algorithm and the image is RGB with resolution of 512x512. I want to reduce the image file size by reducing the total color in the input image.
I have a problem with defining the bandwidth for calculating the euclidian squared distance in the mean shift algorithm.
How do you know the appropriate bandwidth for the data? Are there any formulation to define it?