split_connected {imager} | R Documentation |
Compute connected components (using "label"), then split into as many sets as there are components. Useful for segmentation
split_connected(px, ...)
px |
a pixset |
... |
further arguments passed to label |
a list of pixsets
Simon Barthelme
label
px <- isoblur(grayscale(boats),5) > .75
plot(px)
spl <- split_connected(px)
plot(spl[[1]])
px <- isoblur(grayscale(boats),5) > .75
plot(px)
spl <- split_connected(px)
plot(spl[[1]])