adjust.image {adimpro} | R Documentation |
Adjust color channels and apply gamma correction (if applicable).
adjust.image(img, color.par = NULL, alg = 1, compress= TRUE)
img |
image object, class"adimpro". | ||||||||||||||||||
color.par |
list of parameters for the gamma correction and some
white balance. list entries:
| ||||||||||||||||||
alg |
determines the approximation for the gamma correction. Select 1 for fastest computation and 3 for maximum accuracy, or 2 for a compromise. | ||||||||||||||||||
compress |
logical, determines if image data are stored in raw-format. |
This function adjusts color channels and applies gamma correction (if applicable).
If color.par$red
or color.par$blue
or color.par$brightness
differ from 1.0 the
corresponding channels are multiplied with the provided
values. Saturated values are set to 1.
If img$gamma==FALSE
, perform gamma correction with
color.par$ga
and color.par$bp
. alg
chooses between three different
computing algorithms (approximations) with increasing computation time
and precision (alg
is 1,2, or 3).
Adjusted image object of class "adimpro".
Karsten Tabelow tabelow@wias-berlin.de
img <- read.image(system.file("img/wias.ppm",package="adimpro")) img2 <- adjust.image(img,color.par=list(red=1.5,blue=2)) show.image(img2)