Process Digital Cover Photography images of tree canopies to get canopy attributes like Foliage Cover and Leaf Area Index. Detailed description of the methods in tools:::Rd_expr_doi("10.1007/s00468-018-1666-3").
The function calculates all the image processing steps and returns the output canopy attributes. It is also possible to export the classified image.
coveR2(
filename,
channel = 3,
thdmethod = "Otsu",
gapmethod = "macfarlane",
thd = 1.3/100,
k = 0.5,
crop = NULL,
export.image = FALSE,
display = TRUE,
message = TRUE
)
Character. The input image filename
Integer. The band number corresponding to the blue channel. Default value is 3
Character. The method used to threshold the image, using the autothresholdr::auto_thresh()
function. For details, see https://imagej.net/plugins/auto-threshold. Default = 'Otsu'.
Character. The method used to classify large and small gaps. Default = 'macfarlane'
Numeric. The large gap threshold, as a function of the image size. Used only when method = 'macfarlane'. Default = 1.3/100
Numeric The extinction coefficient at the zenith. Default is 0.5 (spherical leaf angle distribution)
Integer. The number of lines to be removed from the bottom side of the image. Useful to remove the 'timestamp' watermark in camera traps.
Logical. It allows exporting an image of the classified gaps
Logical. It allows displaying the result of image classification.
Logical. It allows displaying messages.
Maintainer: Francesco Chianucci fchianucci@gmail.com (ORCID)
Authors:
Nicola Puletti nicola.puletti@gmail.com (ORCID)
Carlotta Ferrara carlottaferrara@gmail.com (ORCID)
image <- file.path(system.file(package='coveR2'), 'extdata/IMG1.JPG')
res<-coveR2(image, gapmethod='macfarlane',thd=0.5/100, k=0.65)
res
Run the code above in your browser using DataLab