Image Processing in Matlab: Tool Box Installed With Matlab. To Find Out If It Is Installed, Type Ver at The
Image Processing in Matlab: Tool Box Installed With Matlab. To Find Out If It Is Installed, Type Ver at The
Image Processing in Matlab: Tool Box Installed With Matlab. To Find Out If It Is Installed, Type Ver at The
•HDF
•JPEG
•PCX
•TIFF
•XWB
BINARY IMAGE
This image format also stores an image as a matrix but can only color a pixel
black or white (and nothing in between). It assigns a 0 for black and a 1 for
white.
RGB IMAGE
This is another format for color images. It represents an image with three
matrices of sizes matching the image format. Each matrix corresponds to one of
the colors red, green or blue and gives an instruction of how much of each of
these colors a certain pixel should use.
MULTIFRAME IMAGE
The image to processed should be given inside the parenthesis. The command
mat2gray is useful if you have a matrix representing an image but the values
representing the gray scale range between, let's say, 0 and 1000. The command
mat2gray automatically re scales all entries so that they fall within 0 and 255 (if
you use the uint8 class) or 0 and 1 (if you use the double class).
HOW TO READ FILES
When you encounter an image you want to work with, it is usually in form
of file (for example, if you down load an image from the web, it is usually
stored as a JPEG-file). Once we are done processing an image, we may want
to write it back to a JPEG-file so that we can, for example, post the
processed image on the web. This is done using the imread and imwrite
commands.
Make sure to use semi-colon ; after these commands, otherwise you will get
LOTS OF number scrolling on you screen... The commands imread and
imwrite support the formats given in the section "Image formats supported by
Matlab" above.
Mat lab commands for reading and writing files
LOADING AND SAVING VARIABLES IN MATLAB
• This section explains how to load and save variables in Matlab. Once you
have read a file, you probably convert it into an intensity image (a matrix)
and work with this matrix. Once you are done you may want to save the
matrix representing the image in order to continue to work with this matrix
at another time. This is easily done using the commands save and load. Note
that save and load are commonly used Matlab commands, and works
independently of what tool boxes that are installed.
Mat lab command for loading the files