haralickCluster {biopixR} | R Documentation |
k-medoids clustering of images according to the Haralick features
Description
This function performs k-medoids clustering on images using Haralick features, which describe texture. By evaluating contrast, correlation, entropy, and homogeneity, it groups images into clusters with similar textures. K-medoids is chosen for its outlier resilience, using actual images as cluster centers. This approach simplifies texture-based image analysis and classification.
Usage
haralickCluster(path)
Arguments
path |
directory path to folder with images to be analyzed |
Value
data.frame
containing file names, md5sums and cluster number.
References
https://cran.r-project.org/package=radiomics
Examples
path2dir <- system.file("images", package = 'biopixR')
result <- haralickCluster(path2dir)
print(result)
[Package biopixR version 1.1.0 Index]