show.image {adimpro} | R Documentation |
Display an image on the screen.
show.image(img, max.x = 1000, max.y = 1000, color.par = NULL, channel=NULL, alg = 1, new = FALSE, ...)
img |
image data, an object of class "adimpro". | ||||||||||||||||||
max.x |
maximum value of pixels in x dimension to be displayed. | ||||||||||||||||||
max.y |
maximum value of pixels in y dimension to be displayed. | ||||||||||||||||||
color.par |
list of parameters for the gamma correction and some
white balance. List entries:
| ||||||||||||||||||
channel |
allows to select a color channel (1: red, 2: green, 3: blue) for display, for rgb-images only. | ||||||||||||||||||
alg |
chooses computing algorithms which differ in speed and precision. | ||||||||||||||||||
new |
should new X11() be opened? default FALSE | ||||||||||||||||||
... |
additional arguments to image can be
passed here. |
This function displayes greyscale and color images
on the screen. If the actual dimension of the
image exceeds max.x
or max.y
the image is shrinked by
displaying only part of the pixels (every second/third/... such that
the resulting dimension is smaller than max.x
or max.y
)
If color.par$red
, 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
is 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).
Nothing is returned
Karsten Tabelow tabelow@wias-berlin.de
img <- read.image(system.file("img/wias.ppm",package="adimpro")) show.image(img)