forked from OpenDroneMap/FIELDimageR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldCrop.Rd
52 lines (52 loc) · 1.56 KB
/
fieldCrop.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\name{fieldCrop}
\alias{fieldCrop}
\title{
Selecting experimental field from original image
}
\description{
Reduction of the original image size using the experimental field as reference
}
\usage{
fieldCrop(mosaic, fieldShape=NULL, nPoint=4, plot=T, remove=F, type="l", lty=2, lwd=3, fast.plot=F)
}
\arguments{
\item{mosaic}{
object of class stack.
}
\item{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.
}
\item{nPoint}{
number of points necessary to select field boundaries or area to remove (4 >= nPoint <= 50).
}
\item{remove}{
if TRUE the selected area will be removed from the image.
}
\item{plot}{
if TRUE (by default) plots the original and cropped image.
}
\item{type}{
character indicating the type of plotting, please check help("lines").
}
\item{lty}{
line types, please check help("lines").
}
\item{lwd}{
line width, please check help("lines").
}
\item{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 FI, Caraza-Harter MV, Endelman JB. FIELDimageR: An R package to analyze orthomosaic images from agricultural field trials. The Plant Phenome J. 2020;e20005. https://doi.org/10.1002/ppj2.20005
}
\examples{
##see Vignette at https://github.com/filipematias23/FIELDimageR
}