Skip to content
Prev 3731 / 29559 Next

clustering multi band images

Roger Bivand wrote:
this also passes the coordinates to the clustering routine; I'm not sure 
but I think that was not the initial idea.
In case img is a 3-band image, use

kl <- kmeans(as(img, "data.frame")[1:3], 5)
--
Edzer