| coveR2 | R Documentation |
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 Chianucci et al. (2022) \Sexpr[results=rd]{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
)
filename |
Character. The input image filename |
channel |
Integer. The band number corresponding to the blue channel. Default value is 3 |
thdmethod |
Character. The method used to threshold the image, using the |
gapmethod |
Character. The method used to classify large and small gaps. Default = 'macfarlane' |
thd |
Numeric. The large gap threshold, as a function of the image size. Used only when method = 'macfarlane'. Default = 1.3/100 |
k |
Numeric The extinction coefficient at the zenith. Default is 0.5 (spherical leaf angle distribution) |
crop |
Integer. The number of lines to be removed from the bottom side of the image. Useful to remove the 'timestamp' watermark in camera traps. |
export.image |
Logical. It allows exporting an image of the classified gaps |
display |
Logical. It allows displaying the result of image classification. |
message |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.