crown_inspector: Inspect Delineated Crowns In Multiple Images

Description Usage Arguments Value

View source: R/crown_inspector.R

Description

For a given set of SpatialPoints, and a set of images and associated .shp file of delineated crowns, plot the crown delineated around each of the spatial points in each of the images.

Usage

1
2
crown_inspector(spatial_points, image_fnames, RGBseqs, crown_fnames, outp_dir,
  overwrite = T)

Arguments

spatial_points

A SpatialPoints object

image_fnames

Filenames of images

RGBseqs

A 3 row matrix that indicates for each image which band nummers to display as red, green, and blue, respectively. It should have as many columns as image_fnames is long.

crown_fnames

Filenames of the vector (e.g. crown polygon) shapefiles associated with each of the images in image_fnames. The shapefiles must have the attributes primalX and primalY, which refer to the coordinates of the centers of the crowns in a reference image

outp_dir

Character. Directory where plots for each crown are stored

overwrite

Logical. Should the outp_dir be emptied prior to plotting? Default is T. Setting it to F can be handy when the code needs to be rerun after an unexpected interruption.

Value

A set of jpeg files of crowns plotted on top of their respective images.


pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.