calculate_leaf_traits: Calculates leaf traits for a directory of leaf scans either...

Description Usage Arguments Value Examples

View source: R/calculate_leaf_traits.r

Description

Calculates leaf traits for a directory of leaf scans either made with a white or black background.

Usage

1
2
3
calculate_leaf_traits(path = "~", dpi = 300, background = "white",
  min_size = 10000, reference = c(1000, 1000), out_path = NULL,
  plot = TRUE)

Arguments

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)

Value

A nested list (data structure) listing the extracting traits together with the filename of the processed file.

Examples

1
2
3
4
5
6
## Not run: 

leaf_statistics = calculate_leaf_traits(path = "/mydata")


## End(Not run)

khufkens/leafscanr documentation built on Oct. 26, 2019, 9:37 p.m.