0% found this document useful (0 votes)
17 views26 pages

Ab Lect2new1

word book

Uploaded by

asia group
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views26 pages

Ab Lect2new1

word book

Uploaded by

asia group
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Enlarging Images

Shrinking Images
Rotating Images
What is MATLAB?
• MATLAB ➔Stands for MATrix LABoratory
• MATLAB Created by Cleve Moler @ Stanford
U. in 1970
• We use MATLAB because it Makes linear
algebra, numerical analysis and optimization a
lot easier.
• MATLAB you don’t need to declare any
variables, All you need to do is initialize them
and they are created
• MATLAB treats all variables as matrices
• Scalar – 1 x 1 matrix.
• Vector – 1 x N or N x 1 matrix

• MATLAB uses the Image Processing Toolbox


(IPT) - can be installed with MATLAB!
Images in MATLAB
• Binary images : {0,1}
• Intensity images : [0,1] or uint8, double etc.
• RGB images : m-by-n-by-3
Example of RGB image
Example of Binary & Gray image
• A digital image, I, is represented by a
uniformly spaced discrete points or pixels {p =
(r,c)}.
• Sampling as its name suggests can be defined as take samples, There are also
an infinite number of possible colors

• Quantization as its name suggest can be defined as dividing into quanta partitions,
so will reduce the total number of colors to a smaller amount
.
R/W images in MATLAB
Modifying Images
Displaying Images
Writing Images
Some file format
• TIFF (Tagged-Image File Format)—A large file. It is used when a high resolution
photographic file is needed.

• PSD (Photoshop Document)—An Adobe Photoshop.

• EPS (Encapsulated PostScript)—if an image is saved as a Photoshop EPS file, it is a


large file similar to a TIFF file.

• JPG (Joint Photographic Experts Group)—A compressed file. It is used when a small
photographic file is needed (typically for the Web).

• PNG (Portable Network Graphics)—A small, limited-color file, used for on-screen
viewing , it has more color options than a GIF file.

• GIF (Graphics Interchange Format)—A small, limited-color file.

• BMP (Windows Bitmap)—A file specific to Windows with limited color options.
Resizing Images
Rotating Images

You might also like