Description Usage Arguments Value See Also Examples
This function performs an unsupervised classification through the k-means algorithm. This implementation uses kd-trees for nearest neighbor queries. It is useful for big values of k.
1 | imgKDKMeans (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
imgEKMeans
imgIsoData
1 2 3 4 5 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
y <- imgKDKMeans(x, 4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.