1 | initial version |
You can use kmeans with 4 clusters :
2 | No.2 Revision |
You can use kmeans with 4 clusters :
with false color in left image yellow color is only shadow. Yellow is only for shadow. Right image is connected components images
3 | No.3 Revision |
You can use kmeans (BGR data) with 4 clusters :
with false color in left image yellow color is only shadow. Yellow is only for shadow. Right image is connected components images
source code https://github.com/LaurentBerger/Traitement_d_images_et_de_videos_avec_OpenCV3/blob/master/ch4KMeans/main.cpp