| findObjects | R Documentation |
Identify objects in data.frame produced by parseImages
as specified by the expression expr.
findObjects(expr, df, mask = NULL, invert = FALSE)
expr |
An |
df |
A |
mask |
An optional |
invert |
A |
The data frame must have the variable frame and either well
file or tag. If more than one these three variables are
present, the longest of these three factors will be used to split the data
before finding objects.
If a mask was provided, the function will return an integer
Image mask or list of integer Image masks
with the objects selected by expr.
If no mask was provided, a nested list of integers will be
returned that identifies the objects satisfying the argument in expr.
x <- getImages(system.file("extdata", "by_folder/b4", package = "virustiter"))
nm0 <- nucMask(x$nuc)
df0 <- parseImages(x$nuc, x$tgt, nm0)
nm1 <- findObjects(area > 190 & area < 220, df0, nm0)
a <- Map(paintObjects, nm1, lapply(x$nuc, function(v) toRGB(normalize(v))))
plot(a$b4, all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.