[R-sig-Geo] clump of binary pixels (connected components)

Adrian Baddeley adrian at maths.uwa.edu.au
Thu May 14 04:02:04 CEST 2009


There have been several questions posted on R-sig-Geo about how to 
identify connected components (clumps or clusters of contiguous pixels 
with the same value) in a pixel image.

The connected component transform has been implemented in the latest 
version of package 'spatstat' (version 1.15-3) thanks to Julian Burgos.

The command name is 'connected'.
Timing is roughly 1 second per megapixel (e.g. 0.25 seconds for a 512 x 
512 image).

Adrian Baddeley



More information about the R-sig-Geo mailing list