figure_transformToBinary {metagear} | R Documentation |
Transforms figure to binary image.
Description
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).
Usage
figure_transformToBinary(
aFigure,
threshold = 0.6,
point_fill = FALSE,
point_tolerance = 2
)
Arguments
aFigure |
The original figure image (an |
threshold |
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. |
point_fill |
If |
point_tolerance |
An integer used to designate the size of the points to fill. Increase value to better fill empty points. |
Value
An EBImage
black and white object ready for object detection.
[Package metagear version 0.7 Index]