Transforms RBG figure into list of binary images.
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.
figure_transformByColors(aFigure, colorsToSplit = 2)
The original (RBG/color) figure image (an
An integer designating the number of colors in the figure. The number indicates the number of color intensities to divide into separate binary figures.
A colorsToSplit + 1 list of
EBImage black and white objects.
The final item in this list will be an inverse binary of the original
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.