figure_transformToBinary: Transforms figure to binary image.

Description Usage Arguments Value

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

1
2
3
4
5
6
figure_transformToBinary(
  aFigure,
  threshold = 0.6,
  point_fill = FALSE,
  point_tolerance = 2
)

Arguments

aFigure

The original figure image (an EBImage object).

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 TRUE then fills empty points/symbols in figure.

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.


metagear documentation built on Feb. 15, 2021, 5:09 p.m.