Description Usage Arguments Value Examples
Apply shift and rescale to the distribution of pixel values
1 2 3 4 5 6 7 8 |
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
1 2 3 4 | 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.