<< NL_V_GrahamScan NL_V: Vision NL_V_LoadBody2D >>

NARVAL >> NL_V: Vision > NL_V_ImageShow

NL_V_ImageShow

Display an image in a Scilab graphic window.

Calling Sequence

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

Arguments

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

NL_V_ImageShow has been extracted from the toolbox SIP created by Ricardo Fabbri, Zhang Cheng, Prof. Luciano da Fontoura Costa and Prof. Odemir Martinez Bruno (SIP). NL_V_ImageShow(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. NL_V_ImageShow(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 NL_V_ImageShow(img, strf='041')//same as imshow but with axes.

Examples

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

Report an issue
<< NL_V_GrahamScan NL_V: Vision NL_V_LoadBody2D >>