forked from OpenDroneMap/FIELDimageR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldInfo.Rd
49 lines (49 loc) · 1.51 KB
/
fieldInfo.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
\name{fieldInfo}
\alias{fieldInfo}
\title{
Extract information from image using the fieldShape file as reference
}
\description{
Function that use raster::extract() to extract information from the original image using fieldShape file as reference.
}
\usage{
fieldInfo(mosaic,fieldShape,fun = "mean",plot=F,buffer=NULL,n.core=NULL,projection=TRUE,...)
}
\arguments{
\item{mosaic}{
object of class stack.
}
\item{fieldShape}{
plot shape file, please use first the function fieldShape().
}
\item{fun}{
function to summarize the values (e.g. mean).
}
\item{plot}{
if is TRUE the original and crop image will be plotted.
}
\item{buffer}{
negative values should be used to remove boundaries from neighbor plot (normally the unit is meters, please use values as 0.1 = 10 cm).
}
\item{n.core}{
number of cores to use for multicore processing (Parallel).
}
\item{projection}{
if is FALSE projection will be ignored.
}
\item{...}{
please see raster::extract() for more options.
}
}
\details{
The function returns a data frame with values by plots, and a new reduced image with format stack.
}
\value{
List with a data frame with values by plot and experimental field image with 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
}