Description Usage Arguments Value Author(s) See Also Examples
This function takes a scanned colour image file, typically a JPEG, counts the dark pixels and converts them into an area in cm2.
1 |
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. |
An area, in cm, of dark pixels in the image.
Grant Williamson <grant.williamson@utas.edu.au>
1 2 | rlogo=system.file("pictures/Rlogo.jpg", package="rgdal")[1]
darkpix(rlogo,cutoff=100,dpi=50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.