K Means Group Colours

조회 수: 6 (최근 30일)
KF
KF 2021년 1월 28일
댓글: Adam Danz 2021년 1월 28일
Hi,
I have performed K-means cluser analysis on my images, and visualised the results using imagesc() function, and used a parula colourmap. Is there a way to know which colour has been assigned to each k-value? For example, I might want the k group of all the pixels that are coloured yellow, but I am not sure which k=x group the yellow refers to.
If I try to plot the average spectra of each k group, it is plotted using differing colours to what it used for the cluser images, which is frustrating. I am using ks of up to 20 so it's very hard to see what has been assigned to what easily!
Thanks in advance.
  댓글 수: 1
Adam Danz
Adam Danz 2021년 1월 28일
Are you using the kmeans idx output to scale the color? Could you show us how you're using the kmeans outputs in imagesc?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by