imagesc: Image Display

Description Usage Arguments Details Value Author(s) Examples

View source: R/imagesc.R

Description

Display image in matlab format, i.e. flip and transpose.

Usage

1
2
imagesc(G, col = grey((1:99)/100), ...)
contoursc(G, ...) 

Arguments

G

Image matrix

col

color scale

...

graphical parameters

Details

Program flips image and transposes prior to plotting. The contour version does the same and can be used to add contours.

Value

graphical side effects

Author(s)

Jonathan M. Lees<[email protected]>

Examples

1
2
3
4
5
6
7
8
9
mtruem=matrix(rep(0, 16*16), ncol=16,nrow=16);

mtruem[9,9]=1; mtruem[9,10]=1; mtruem[9,11]=1;
mtruem[10,9]=1; mtruem[10,11]=1;
mtruem[11,9]=1; mtruem[11,10]=1; mtruem[11,11]=1;
mtruem[2,3]=1; mtruem[2,4]=1;
mtruem[3,3]=1; mtruem[3,4]=1;

imagesc(mtruem, asp=1)

PEIP documentation built on Jan. 20, 2018, 9:03 a.m.