getBounds: Compares Two Tif Images To Find Where They Differ

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

View source: R/getBounds.R

Description

NOT CALLED BY USER. The getBounds function is utilized by the automapPts function to compare two tif images for differences

Usage

1
2
3
4
getBounds(channelClr,
          tif.fin,
          tif.dot,
          automap.method="mode")

Arguments

channelClr

Which color channel to compare: "red", "blue", "green"

tif.fin

Path file name to tif image of plots without additional bounding point

tif.dot

Path file name to tif image with the given figure's additional bounding points displayed

automap.method

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

Details

This function is used by the automapPts function to retrieve up.left and low.right pixil coordinates of a figure. getBounds will check a certain channel (red, green, or blue) of two rtiff/pixmap pixmapRGB objects. It creates a logical matrix 0 if equal and 1 if different. This matrix gets passed into the mapMethod function to determine location.

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, rtiff, pixmap, automapPts, mapMethod

Examples

1
# not called by user

lshep/sendplot documentation built on Nov. 18, 2017, 5:10 p.m.