imgEKMeans {biOps} | R Documentation |
This function performs an unsupervised classification through the k-means algorithm. It is an enhanced implementation, that avoid some comparisons based on kept information about distances and centroids of previous iterations.
imgEKMeans (imgdata, k, maxit=10)
imgdata |
The image |
k |
Number of clusters |
maxit |
Max number of iterations |
return an imagedata object, the result of the classification
imgKMeans
imgKDKMeans
imgIsoData
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgEKMeans(x, 4) ## End(Not run)