Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

MBCbook (version 0.1.2)

imshow: Display an image

Description

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

Usage

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

Value

This function returns nothing.

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

Examples

Run this code
Im = diag(16)
imshow(Im)

Run the code above in your browser using DataLab