The function applies the color informed in the argument color to segmented
objects in the image. The segmentation is performed using image indexes. Use
image_index() to identify the better candidate index to segment objects.
Logical argument indicating wheater the user needs to
pick up the color palettes for foreground and background for the image. If
TRUEpick_palette() will be called internally so that the user can sample
color points representing foreground and background.
foreground, background
A color palette for the foregrond and background,
respectively (optional).
index
A character value (or a vector of characters) specifying the
target mode for conversion to binary image. See the available indexes with
pliman_indexes() and image_index() for more details.
color
The color to apply in the image objects. Defaults to "blue".