fieldRotate: Rotating the image to biuld the 'fieldShape' file

View source: R/fct_fieldRotate.R

fieldRotateR Documentation

Rotating the image to biuld the fieldShape file

Description

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

Usage

fieldRotate(
  mosaic,
  theta = NULL,
  clockwise = TRUE,
  h = FALSE,
  n.core = NULL,
  extentGIS = FALSE,
  DSMmosaic = NULL,
  plot = TRUE,
  type = "l",
  lty = 2,
  lwd = 3,
  fast.plot = FALSE
)

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).

n.core

number of cores to use for multicore processing (Parallel).

extentGIS

if TRUE the rotated image will have an adjusted extent based on the original image (It is an important step to fit the fieldShape on the original image).

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

fieldRotate

Value

A list with two element

  • mosaic rotated image format stack with the base of experimental field parallel to axis X.


OpenDroneMap/FIELDimageR documentation built on May 4, 2024, 4:24 a.m.