getObjects {EBImage} | R Documentation |
This function will assign features
matrix to an image that was
originally segmented with watershed
or similar functions (i.e.
in which objects are encoded as positive integers).
getObjects(x, ref, ...) stackObjects(x, ref, ...) features(x, ...) features(x, ...) <- value
x
Image-class
in the
Grayscale
mode with integer-absed object encoding, as
returned by watershed
. ref
NULL
or Grayscale
for getObjects
to determined object intensities. This must be
present and can be in any color mode for stackObjects
. ...
getObjects
returns a list of matrixes (one per image in stack) with
image descriptors. This list can be stored with the image using the set
function features<-
and retrieved from the object using the corresponding
get function features
. Every matrix in the list will contain
named columns of features starting with object position, size, perimeter etc.
with one row per object detected.
stackObjects
returns a list of Image stacks with one element of a list
for each frame in the original Image (-stack). Each Image stack will contain
images of single objects positioned in the middle of the image in the same
color mode as the reference images. The result can be directly supplied to
tile
to generate tiled previews.
Image-class, watershed, paintObjects
ImageMagick: http://www.imagemagick.org.
Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk
## Not run: See ?watershed for example