My question is related to the previous question: Count the number of colors of images
Is there any way to count the difference between colors (e.g. luminance)? If the difference between the two colors were too small, it will automatically considered as 1 color instead of two colors. This way, what people perceived of the number of colors of image will be more close with what the computer counts.
Thanks