<< NARVAL_IP_ErosionW NARVAL NARVAL_IP_MRA >>

NARVAL >> NARVAL > NARVAL_IP_ImShow

NARVAL_IP_ImShow

Display an image in a Scilab graphic window.

Calling Sequence

NARVAL_IP_ImShow(Img)
NARVAL_IP_ImShow(Img,n)
NARVAL_IP_ImShow(Img,Map)
NARVAL_IP_ImShow(RGBImg)
NARVAL_IP_ImShow(Img, arg2 [, strf])

Parameters

Img :

MxN matrix, a grayscale (0-1 range) or pseudo-color/indexed (1-N colors range) image.

n :

number of levels of gray to display Img.

Map :

Mx3 matrix containing the image colormap (for indexed images). Entries may range from 0 to 1.

RGBImg :

MxNx3 hypermatrix in 0-1 range.

strf :

this is used to put axes around your image.

Description

NARVAL_IP_Imshow has been extracted from the toolbox SIP created by Ricardo Fabbri, Zhang Cheng, Prof. Luciano da Fontoura Costa and Prof. Odemir Martinez Bruno (SIP). NARVAL_IP_ImShow(Img,n) displays the matrix Img using n levels of gray. Img is an MxN matrix in [0:n-1]. If n is omitted, it will be assumed to be 256. imshow(Img,Map) displays the matrix Img using the specified colormap. imshow(RGBImg) displays the RGBImg MxNx3 (0-1) truecolor image. strf is used to put axes around your image (see the plot2d help page). You may use this optional parameter in the assignment style, as in imshow(img, strf='041')//same as imshow but with axes.

Examples

a=rand(256,256);//create a random image
scf();//new window
NARVAL_IP_ImShow(a);//application of NARVAL_IP_ImShow
scf();//new window
NARVAL_IP_ImShow(a*255+1,hotcolormap(256));

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_IP_ErosionW NARVAL NARVAL_IP_MRA >>