getBounds: Compares Two Tif Images To Find Where They Differ

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

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

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