fieldCrop: Selecting experimental field from original image

Description Usage Arguments Details Value References Examples

View source: R/fieldCrop.R

Description

Reduction of the original image size using the experimental field as reference

Usage

1
  fieldCrop(mosaic, fieldShape=NULL, nPoint=4, plot=T, remove=F, type="l", lty=2, lwd=3, fast.plot=F)

Arguments

mosaic

object of class stack.

fieldShape

crop the image using the fieldShape as reference. If fieldShape=NULL, four points should be selected directly on the original image to determine the experimental field.

nPoint

number of points necessary to select field boundaries or area to remove (4 >= nPoint <= 50).

remove

if TRUE the selected area will be removed from the image.

plot

if TRUE (by default) plots the original and cropped image.

type

character indicating the type of plotting, please check help("lines").

lty

line types, please check help("lines").

lwd

line width, please check help("lines").

fast.plot

if TRUE only the grey scale image will be plotted as reference (faster approach).

Details

The function returns a new reduced image from experimental field with stack format.

Value

Image format stack.

References

Matias et al. (2019) FIELDimageR: A R Package to Analyze Orthomosaic Images from Agricultural Field Trials. (submitted)

Examples

1
##see Vignette at https://github.com/filipematias23/FIELDimageR

angel30mpa/ampa documentation built on Feb. 22, 2020, 12:17 a.m.