Learn R Programming

sendplot (version 4.0.0)

mapMethod: Finds Point Coordinates

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

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

Value

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

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.

See Also

makeImap, automapPts, getBounds

Examples

Run this code
# not called by user

Run the code above in your browser using DataLab