Ask Your Question

Revision history [back]

You can use kmeans with 4 clusters :

image description

You can use kmeans with 4 clusters :

image description

with false color in left image yellow color is only shadow. Yellow is only for shadow. Right image is connected components images

image description

You can use kmeans (BGR data) with 4 clusters :

image description

with false color in left image yellow color is only shadow. Yellow is only for shadow. Right image is connected components images

image description

source code https://github.com/LaurentBerger/Traitement_d_images_et_de_videos_avec_OpenCV3/blob/master/ch4KMeans/main.cpp