fieldRotate: Rotating the image to biuld the fieldShape file

Description Usage Arguments Details Value References Examples

View source: R/fieldRotate.R

Description

The image should be rotated to use the function fieldShape(). The base of experimental field should be parallel to axis X.

Usage

1
  fieldRotate(mosaic, theta=NULL, clockwise=T, h=F, DSMmosaic=NULL, plot=T, type="l", lty=2, lwd=3, fast.plot=F)

Arguments

mosaic

object of class stack.

theta

angle of rotation, if negativo the rotation will be for the right. If not provided the user should select two points from left to right to determine the angle of rotation.

clockwise

if it is TRUE, clockwise rotation.

h

if it is TRUE, the drawn line will be at horizontal, if FALSE (90-theta).

DSMmosaic

DSM should be used if the file of height is provided.

plot

if it is TRUE the original and rotated image will be plotted.

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 image with the rotated image with format stack.

Value

Rotated image format stack with the base of experimental field parallel to axis X.

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.