Description Usage Arguments Value Examples
View source: R/calculate_leaf_traits.r
Calculates leaf traits for a directory of leaf scans either made with a white or black background.
1 2 3 | calculate_leaf_traits(path = "~", dpi = 300, background = "white",
min_size = 10000, reference = c(1000, 1000), out_path = NULL,
plot = TRUE)
|
path |
path of image files to process (should only contain images), default is your home directory |
dpi |
dots per inch resolution of the scan (default = 300) |
background |
background matte used ("white" or "black") |
min_size |
minimum size of a patch (in pixels) to be considered valid take into consideration that this is resolution dependent (default = 10000) |
reference |
is there a panel to the left which should be excluded, provide a number of pixels to do so (default = c(100,100)) |
out_path |
output directory where to save the data if not returned to an R variable |
plot |
plot the processed images for reference (default = FALSE) |
A nested list (data structure) listing the extracting traits together with the filename of the processed file.
1 2 3 4 5 6 | ## Not run:
leaf_statistics = calculate_leaf_traits(path = "/mydata")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.