show.image {adimpro}R Documentation

I/O functions

Description

Display an image on the screen.

Usage

show.image(img, max.x = 1000, max.y = 1000, color.par = NULL, channel=NULL,
           alg = 1, new = FALSE,  ...)

Arguments

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:
ga gamma value default 2.4
bp break point default 0.00304
alg algorithm for gamma correction default 1
red factor to multiply with red channel. default 1.0
blue factor to multiply with blue channel. default 1.0
brightness factor to multiply with all channels default 1.0
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.

Details

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).

Value

Nothing is returned

Author(s)

Karsten Tabelow tabelow@wias-berlin.de

See Also

read.image, write.image

Examples

img <- read.image(system.file("img/wias.ppm",package="adimpro"))
show.image(img)

[Package adimpro version 0.4.4 Index]