Skip to contents

display displays Image objects in special windows created by newDisplay (or creates it if it does not exist yet). This function is faster than the generic plot.Image function for displaying Image objects, but cannot be used in combination with base R plotting utilities.

Usage

display(
  image,
  window_name = "Display",
  delay = 25,
  height = 480,
  width = 640,
  interpolation = "linear"
)

Arguments

image

An Image object.

window_name

A character string representing the name of the display window (default: "Display").

delay

The delay in milliseconds during which an image is displayed before it can be replaced by another image.

height

An integer representing the height in pixels of the display window.

width

An integer representing the width in pixels of the display window.

interpolation

A character string representing the type of interpolation to use if the display size is different from the image size (default: "linear"). It can be any of the following:

"nearest":

nearest neighbor interpolation.

"linear":

bilinear interpolation.

"cubic":

bicubic interpolation.

"area":

resampling using pixel area relation.

"Lanczos":

Lanczos interpolation over 8x8 neighborhood.

"exact":

bit exact bilinear interpolation.

Value

This function does not return anything.

Author

Simon Garnier, garnier@njit.edu

Examples

if (FALSE) { # \dontrun{
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
display(balloon, height = nrow(balloon), width = ncol(balloon))
} # }