fieldCrop: Selecting experimental field from original image

View source: R/fct_fieldCrop.R

fieldCropR Documentation

Selecting experimental field from original image

Description

It calculates the percentage of object area in the entire mosaic or per plot using the fieldShape file.

Usage

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

Arguments

mosaic

object mask of class stack from the function fieldMask.

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

plot

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

remove

if TRUE the selected area will be removed from the 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). if TRUE only the grey scale image will be plotted as reference (faster approach).

Details

fieldCrop

Value

A image format stack.


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