Color-Based Segmentation Using K-Means Clustering

3 visualizaciones (últimos 30 días)
Albert Rey Ruelan
Albert Rey Ruelan el 4 de Ag. de 2017
Comentada: Rushi Somvanshi el 15 de Dic. de 2018
Hi i found this tutorial about segmenting colors from images in
There is a part there wherein the colors has been segmented into 3 part
for k = 1:nColors
color = he;
color(rgb_label ~= k) = 0;
segmented_images{k} = color;
Now the output is partitioned into 3 separate colors
image 1 contains only blue
image 2 contains only yellow
image 3 contains only brown
now what i am asking is how can i just get the brown partition? In my example the position of the brown color is 3 but sometimes when i partition other images, The position of the brown color becomes 2. How can i determine what color goes to which partition when using the LAB colorbased segmentation?
Thanks in advance :)
  1 comentario
Rushi Somvanshi
Rushi Somvanshi el 15 de Dic. de 2018
i have not understood for loop. Can yoi you please explain this to me.

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by