imshow: Display an image

Description Usage Arguments See Also Examples

Description

A simple way of displaying an image, using the image function.

Usage

1
imshow(x,col=palette(gray(0:255/255)),useRaster = TRUE,...)

Arguments

x

the image to display as a matrix.

col

the color palette to use when displaying the image.

useRaster

logical; if TRUE a bitmap raster is used to plot the image instead of polygons. The grid must be regular in that case, otherwise an error is raised. For the behaviour when this is not specified, see the ‘Details’ section of the image function.

...

additionial arguments to provide to subfunctions.

See Also

image

Examples

1
2
Im = diag(16)
imshow(Im)

Example output

Loading required package: mclust
Package 'mclust' version 5.4.7
Type 'citation("mclust")' for citing this R package in publications.
Loading required package: Rmixmod
Loading required package: Rcpp
Rmixmod v. 2.1.5 / URI: www.mixmod.org
Loading required package: MASS
Loading required package: mvtnorm

Attaching package:mvtnormThe following object is masked frompackage:mclust:

    dmvnorm

MBCbook documentation built on July 2, 2019, 9:08 a.m.