mapMethod: Finds Point Coordinates

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

NOT CALLED BY USER. The mapMethod is utilized by the getBound function to find the up.left and low.right pixil coordinates of a given figures plotting bounding box

Usage

1
2
mapMethod(automap.method,
          temp)

Arguments

automap.method

Method to detect upper and lower bounds. Current options are "mode" or "median"

temp

binary matrix indicating where tif images differ, output from getBounds

Details

The mapMethod function takes output generated from the getBounds function. This output is a comparison of two pixmapRGB objects as a logical matrix, 0 if equal and 1 if different. The map method finds the areas of difference, calculating the upper left and lower right figure boundaries. These boundaries are used in converting R plot coordinates to pixil coordinates. The boundary regions currently can be calculated by two techniques "mode" or "median". Median will take the central location of the regions found. Mode will take the median of the longest row and column to find the location of each region.

Value

A list with up.left and low.right bounding coordinates in pixils or NA if could not map correctly

Note

NOT CALLED BY USER. INTERNAL HELPER FUNCTION

Author(s)

Lori A.Shepherd, Daniel P. Gaile

See Also

makeImap, automapPts, getBounds

Examples

1
# not called by user

sendplot documentation built on May 2, 2019, 3:30 p.m.