Description Usage Arguments Value See Also Examples
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.
1 | 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
1 2 3 4 5 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
y <- imgEKMeans(x, 4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.