Learn R Programming

sendplot (version 4.0.0)

getBounds: Compares Two Tif Images To Find Where They Differ

Description

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

Usage

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"

Value

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

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.

See Also

makeImap, rtiff, pixmap, automapPts, mapMethod

Examples

Run this code
# not called by user

Run the code above in your browser using DataLab