Description Usage Arguments Value Author(s) See Also Examples
This function takes a colour image file, typically a JPEG, and counts the percentage of pixels below a certain darkness threshold. By default, only a central circle representing the hemispherical horizon is counted. The threshold at which darkness is detected can be altered.
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. |
clip.circle |
True/fale - if true, central circle of image is used. If false, whole image is used. |
A value representing the percentage 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,clip.circle=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.