paintObjects {EBImage} | R Documentation |
This function allows to mark objects detected with getObjects
or
watershed
in colour for preview.
paintObjects(x, tgt, opac=c(0.4, 0.05, 0.4), col=c("#FFC72C","#5BABF6","#FF372C"), ...)
x
Image-class
in the
Grayscale
mode with integer-absed object encoding, as
returned by watershed
. tgt
TrueColor
to produce coloured output. opac
[0,1]
with 0 being fully transparent. col
...
A copy of tgt
in the same colour mode with objects marked on top of the
image. features
of x
are not transfered – this result is
for visualization only.
Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk
ImageMagick: http://www.imagemagick.org.
Image-class, watershed, getObjects
## Not run: See ?watershed for example