User`s guide

Working with Image Data in the MATLAB Workspace
4 Clean up Always rem ove image acquisition objects from mem ory, and
the variables that re ference them, when you n o longer need them.
delete(vid)
clear vid
Viewing Acquired Data
Once you bring the data into the MATLAB w orkspace, you can view it as you
would any other image in MATLAB.
Image A cquisition To olbox includes a function,
imaqmontage,thatyoucanuse
to view all the frames of a multiframe image array in a single M ATLAB image
object.
imaqmontage arranges the frames so that they roughly form a square.
imaqmontage can b e useful for visually comparing m ultiple frames.
MATLAB includes two functions,
image and imagesc, that display images in
a figure window. Both functions create a MATLAB image object to display the
frame. You can use image object properties to control aspects of the display.
The
imagesc function automa tically scales the inpu t data.
Image Processi ng Toolbox in clud es a n additional display routi ne called
imshow.Likeimage and imagesc, this function creates a M ATLAB image
object. H ow ev er,
imshow also automatically sets various image object
properties to optimize the display.
6-19