automapPts: Compares Images To Find Bounding Coordinates In Pixils
Description
NOT CALLED BY USER. The automapPts function is utilized by
makeImap to retrieve the up.left and lower.right pixil coordinates of
a desired interactive figureUsage
automapPts(Splot,
fname.root="Splot",
boundFileName="SplotDot",
dir="./",
automap.method="mode")
Arguments
Splot
An object of the class Splot
fname.root
Base name of the static version of plots
boundFileName
Base name of the version of plots with the given
figure's additional bounding points displayed
dir
directory path to where files were created
automap.method
Method to detect upper and lower bounds. Current
options are "mode" or "median"
Value
- A list with up.left and low.right bounding coordinates in pixils
or NA if could not map correctly
Details
This function retrieves the up.left and lower.right pixil coordinates
of a desired interactive figure.
The function assumes that a 'clean' image without additional bounding
points and a 'bounding' image that has additional bounding points (see
addBounding
) are created. It converts these images to
.tif files and uses the rtiff package readTiff to compare the images
for differences, thus picking up the additional points.References
Eric Kort (2006). rtiff: A tiff reader for R.. R package version 1.1.