auto_trim: Trim automatically transparent area

Description Usage Arguments

View source: R/trim_transparency.R

Description

Trim automatically transparent area

Usage

1
2
auto_trim(img, alpha_treshold = 0, brightness_treshold = 1,
  reverse = FALSE)

Arguments

img

raster object

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


moodymudskipper/tweak documentation built on May 20, 2019, 8:49 a.m.