leafa: Calculates area in cm of leaves in an image.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/leafA.R

Description

This function takes a scanned colour image file, typically a JPEG, counts the dark pixels and converts them into an area in cm2.

Usage

1
leafa(file, cutoff = 100, dpi=300)

Arguments

file

Character string for the filename of the image file to be processed.

cutoff

The cutoff value, from 0-255. Pixels with brighness values below this threshold are considered dark.

dpi

DPI (dots per inch) at which the image was scanned.

Value

An area, in cm, of dark pixels in the image.

Author(s)

Grant Williamson <grant.williamson@utas.edu.au>

See Also

darkpix.dir

Examples

1
2
rlogo=system.file("pictures/Rlogo.jpg", package="rgdal")[1]
darkpix(rlogo,cutoff=100,dpi=50)

ozjimbob/ecbtools documentation built on Jan. 18, 2021, 7:39 p.m.