View source: R/fct_fieldObject.R
fieldObject | R Documentation |
Calculating the object dimensions (e.g., area, "x" distance, "y" distance, number, extent, etc.)
in the entire mosaic or per plot using the fieldShape
file.
fieldObject(
mosaic,
fieldShape = NULL,
minArea = 0.01,
areaValue = 0,
watershed = FALSE,
dissolve = TRUE,
n.rem = 1,
na.rm = FALSE,
plot = TRUE
)
mosaic |
object mask of class stack from the function |
fieldShape |
evaluate the object per plot using the fieldShape as reference. If fieldShape=NULL, the object will be evaluated directly for the entire original image. |
minArea |
used to set the minimum size percentage of plant canopy (to remove weeds and more). |
areaValue |
referent value of object area in the image. |
watershed |
if TRUE the "watershed" algorithm will be used to differentiate objects that are touching each other. |
dissolve |
if TRUE, polygons with the same attribute value will be dissolved into multi-polygon regions. This option requires the rgeos package. |
n.rem |
number of objects that should be removed by decreasing size (n.rem=1 is the background). |
na.rm |
logical. Should missing values (including NaN) be removed?. |
plot |
if TRUE the crop image and fieldShape will be plotted. |
fieldObject
A list with elements:
mosaic
(cropped by plot)
Dimension
(area, x.dist, y.dist)
numObjects
(number of objects)
Objects
(all objects polygon shape)
Polygons
(all extent polygons shape)
single.obj
(single object polygon shape)
obj.extent
(each object extent)
x.position
(coordinates of "x" length per object)
y.position
(coordinates of "y" length per object).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.