paintObjects {EBImage}R Documentation

Marking detected objects in reference images

Description

This function allows to mark objects detected with getObjects or watershed in colour for preview.

Usage

     paintObjects(x, tgt, opac=c(0.4, 0.05, 0.4), col=c("#FFC72C","#5BABF6","#FF372C"), ...)

Arguments

x
An object of Image-class in the Grayscale mode with integer-absed object encoding, as returned by watershed.
tgt
A reference grayscale image to calculate object intensity. Should be TrueColor to produce coloured output.
opac
A numeric vector of opacity values for foreground (object boundary), object background and edges of object contacts. At least 3 values in the above sequence must be supplied. Opacity range is [0,1] with 0 being fully transparent.
col
A character vector of full colours (before opacity applied), colour names supported, to draw object boundaries, object background and edges of object contacts. At least 3 values must be supplied. Default color scheme is yellow for edges, blue for background and red for object contacts and object on image edges.
...
Reserved for future use.

Value

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.

Author(s)

Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk

References

ImageMagick: http://www.imagemagick.org.

See Also

Image-class, watershed, getObjects

Examples

    ## Not run: See ?watershed for example
  

[Package EBImage version 2.0.1 Index]