View source: R/stackObjects2.R
stackObjects2 | R Documentation |
Place objects in an image stack with the same logic as
stackObjects
except the entire bounding box is
included for each object in the image stack.
stackObjects2(mask, ref, combine = TRUE, bg.col = "black", ext)
mask |
An |
combine |
If |
bg.col |
Background pixel color. |
ext |
A |
Like stackObjects
, stackObjects2
creates a set of n
images of size c(2*ext+1,2*ext+1)
, where n
is the number of
objects in mask
, and places each object of mask
in this set.
If ext
is missing, it is estimated with the 98% quantile of the
m.majoraxis/2
extracted from computeFeatures.moment
.
An Image
object containing the stacked objects contained in
mask
. If mask
contains multiple images and if combine
is TRUE
, stackObjects2
returns a single combined image
otherwise a list
of Image
objects is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.