What is a good way to extract dominant colors from image without the shadow?
If the shadows cover a significant part of the image then this problem is non-trivial.
If the shadow is a small fraction of the area you're interested though you could try using k-medoids instead of k-means and as Piglet mentioned using a different color space with separate chromaticity and luminance channels may help.
Is it possible to extract the 'true' color of building façade from a photo/ a set of similar photos and removing the distraction of shadow? Currently, I'm using K-means clustering to get the dominant colors, however, it extracts darker colors (if the building is red, then the 1st color would be dark red) as there are lots of shadow areas in real photos.
Any suggestions are greatly appreciated!
Thanks in advance!