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,
perimeter = FALSE,
n.rem = 1,
na.rm = FALSE,
plot = TRUE
)
object mask of class stack from the function fieldMask
.
evaluate the object per plot using the fieldShape as reference. If fieldShape=NULL, the object will be evaluated directly for the entire original image.
used to set the minimum size percentage of plant canopy (to remove weeds and more).
referent value of object area in the image.
if TRUE the "watershed" algorithm will be used to differentiate objects that are touching each other.
if TRUE, polygons with the same attribute value will be dissolved into multi-polygon regions. This option requires the rgeos package.
If it is TRUE the object perimeter and the perimeter of the box around the object will be calculated.
number of objects that should be removed by decreasing size (n.rem=1 is the background).
logical. Should missing values (including NaN) be removed?.
if TRUE the crop image and fieldShape will be plotted.
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).
fieldObject