View source: R/trim_transparency.R
Return non transparent area
1 2 | effective_area(img, type = c("rel", "abs"), alpha_treshold = 0,
brightness_treshold = 1, reverse = FALSE)
|
img |
raster object |
type |
rel (0 to 1) or abs (pixels) |
alpha_treshold |
pixels with alpha under this value will have it set to 0 |
brightness_treshold |
pixels with brightness over this value will have alpha set to 0 |
reverse |
if reverse is true the darker pixels will have alpha set to 0 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.