Display an image in a Scilab graphic window.
NL_IP_ImageShow(Img) NL_IP_ImageShow(Img,n) NL_IP_ImageShow(Img,Map) NL_IP_ImageShow(RGBImg) NL_IP_ImageShow(Img, arg2 [, strf])
MxN matrix, a grayscale (0-1 range) or pseudo-color/indexed (1-N colors range) image.
Number of levels of gray to display Img.
Mx3 matrix containing the image colormap (for indexed images). Entries may range from 0 to 1.
MxNx3 hypermatrix in 0-1 range.
This is used to put axes around your image.
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.
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)); | ![]() | ![]() |