Digital Signal Processing Reference
In-Depth Information
imshow
imshow(I)
imshow(I,[low high])
imshow(RGB)
imshow(BW)
imshow(X,map)
imshow(filename)
himage = imshow(...)
imshow(...,param1,val1,param2,val2)
Description
imshow displays the file chooser dialog box so you can select an image file
interactively.
imshow(I) displays the intensity image I.
imshow(I,[low high]) displays I as a grayscale intensity image, specifying the
display range for I. The value low (and any value less than low) displays as
black; the value high (and any value greater than high) displays as white.
Values in between are displayed as intermediate shades of gray, using the
default number of gray levels. If you use an empty matrix ([]) for [low
high], imshow uses [min(I(:)) max(I(:))]; that is, the minimum value in I is
displayed as black, and the maximum value is displayed as white.
imshow(RGB) displays the truecolor image RGB.
imshow(BW) displays the binary image BW. imshow displays pixels with the
value 0 (zero) as black and pixels with the value 1 as white.
imshow(X,map) displays the indexed image X with the colormap map. A
color map matrix may have any number of rows, but it must have exactly
3 columns. Each row is interpreted as a color, with the first element speci-
fying the intensity of red light, the second green, and the third blue. Color
intensity can be specified on the interval 0.0 to 1.0.
imshow(filename) displays the image stored in the graphics file filename. The
file must contain an image that can be read by imread or dicomread. imshow
calls imread or dicomread to read the image from the file, but does not
store the image data in the MATLAB workspace. If the file contains mul-
tiple images, the first one will be displayed. The file must be in the current
directory or on the MATLAB path.
himage
=
imshow(...) returns the handle to the image object created by imshow
drawnow()
Complete pending drawing events
Syntax
drawnow
Search WWH ::




Custom Search