im_distribute | R Documentation |
Shift and scale the distribution of pixel values
im_distribute( im, channel, mean = NULL, sd = NULL, space = "CIELAB", clamp = TRUE )
im |
an image |
channel |
color channel |
mean |
center of distribution. when not given, the mean of that channel is used. |
sd |
dispersion of distribution. when not given, the sd of that channel is used. |
space |
color space |
clamp |
either TRUE (default, output pixel value is clamped to range 0-1) or FALSE |
an image
im_moments(regatta) # before manipulation im_moments(im_distribute(regatta, "b", mean = 0, sd = 20)) # b channel is adjusted plot(im_distribute(regatta, "b", mean = 0, sd = 20)) # see the effect plot(im_distribute(regatta, c("a", "b"), c(-5, 0), c(15, 20))) # adjust two channels simultaneously
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.