Learn R Programming

imager (version 0.14)

display: Display image using CImg library

Description

Press escape or close the window to exit.

Usage

display(im, normalise = TRUE)

Arguments

im
an image (cimg object)
normalise
if true pixel values are rescaled to 0...255 (default TRUE)

Examples

Run this code
##Not run: interactive only
##display(boats,TRUE) #Normalisation on
##display(boats/2,TRUE) #Normalisation on, so same as above
##display(boats,FALSE) #Normalisation off
##display(boats/2,FALSE) #Normalisation off, so different from above

Run the code above in your browser using DataLab