K-means clustering

K-means clustering groups pixels according to similarities in their feature values, such as staining intensity, color, or other measured image properties. Pixels with similar values are placed in the same group, or cluster.
This method can be useful when staining or lighting varies throughout the data set because it identifies groups based on the feature values present in the analyzed images.
Before using K-means clustering, make sure the selected feature bands are comparable. The values in the different feature bands should be measured on approximately the same scale. Otherwise, a feature with a much larger range of values may have too much influence on the classification.
Slider
The slider controls the balance between classification speed and accuracy:
- Moving the slider toward Fast reduces the amount of processing and allows the classification to finish more quickly.
- Moving the slider toward Accurate performs a more detailed calculation. This may improve the separation between similar classes but increases the processing time.
It is often not necessary to use the highest accuracy setting. Start with a moderate setting and move the slider toward Accurate if similar tissue types or structures are not separated sufficiently.
Mode
K-means clustering can be used in either supervised or unsupervised mode.