edgeObjects | R Documentation |
Identify objects within border
pixels of the edge of an
integer Image
object.
edgeObjects(x, border = 1)
x |
An |
border |
Number of pixels from the edge to include. |
A vector of integers or list of integers identifying objects at the edge
x <- readImage(system.file("extdata", "by_folder/b4/file001.tif", package = "virustiter"))
nm0 <- nucMask(x)
sel <- edgeObjects(nm0, border = 16)
nm1 <- rmObjects(nm0, sel)
plot(colorLabels(combine(nm0, nm1)), all = TRUE, nx = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.