shapefile
with polygonsThe user should select points to make polygons in the image. Shapefile with polygons will be automatically built.
Attention: fieldRotate()
is not necessary.
fieldPolygon(
mosaic,
nPolygon = 1,
nPoint = 4,
polygonID = NULL,
polygonData = NULL,
ID = NULL,
cropPolygon = FALSE,
remove = FALSE,
plot = TRUE,
fast.plot = FALSE,
extent = FALSE
)
object of class stack.
number of polygons.
number of points necessary to select field boundaries or area to remove (4 >= nPoint <= 50).
a vector with polygon names with same order of drawing. If is NULL the ID will be the sequence of drawing.
data frame with polygon ID and all attributes of each polygon (Traits as columns and polygon as rows).
the column in polygonData with polygons names (ID) which the data will be combined with fieldShape.
if TRUE the mosaic will be crooped using polygons shape.
if TRUE the selected area will be removed from the image.
if is TRUE the crop image and fieldShape will be plotted.
if TRUE only the grey scale image will be plotted as reference (faster approach).
if is TRUE the entire image area will be the fieldShape (one unique plot).
A list with two element
The function returns the fieldShape
format SpatialPolygonsDataFrame
with plots
numbered by the sequence of drawings and a new reduced image with format stack
.
The polygonID
parameter can be used to identify each polygon.
fieldPolygon