imgKMeans {biOps} | R Documentation |
This function performs an unsupervised classification through the k-means algorithm. It is an straightforward implementation.
imgKMeans (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
imgEKMeans
imgKDKMeans
imgIsoData
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgKMeans(x, 4) ## End(Not run)