Transforms a figure into a black and white image. This pre-processing of the image is necessary to help identify objects within the figure (e.g., axes, plotted points).
figure_transformToBinary(
aFigure,
threshold = 0.6,
point_fill = FALSE,
point_tolerance = 2
)
The original figure image (an EBImage
object).
A proportion from zero to one designating the gray-scale threshold to convert pixels into black or white. Pixel intensities below the proportion will be converted to black, and those above white. Helps remove noise and increase contrast among candidate objects to detect.
If TRUE
then fills empty points/symbols in figure.
An integer used to designate the size of the points to fill. Increase value to better fill empty points.
An EBImage
black and white object ready for object detection.