Transforms RBG figure into list of binary images.

Share:

Description

Generates a list of binary images relative to the number of colors in an RBG figure. Useful to do when there are multiple objects in a figure presented with different colors.

Usage

1
figure_transformByColors(aFigure, colorsToSplit = 2)

Arguments

aFigure

The original (RBG/color) figure image (an EBImage object).

colorsToSplit

An integer designating the number of colors in the figure. The number indicates the number of color intensities to divide into separate binary figures.

Value

A colorsToSplit + 1 list of EBImage black and white objects. The final item in this list will be an inverse binary of the original figure.

See Also

figure_transformToBinary

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.