View source: R/img_adjust_gamma.R
img_adjust_gamma | R Documentation |
Transorm the input image according to the equation x^gamma.
img_adjust_gamma(x, gamma = 1)
x |
an image, of type |
gamma |
gamma value, in [0,+Inf[ where 1 means no change, <1 make the image lighter, >1 makes the image darker. |
x <- img_read(system.file("extdata", "amphipoda/33463695.jpg",
package="morphr")) %>% img_show()
img_adjust_gamma(x, 0.2) %>% img_show()
img_adjust_gamma(x, 2) %>% img_show()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.