0% found this document useful (0 votes)
32 views

10 DIP Matlab Color

Image Processing Tool Box Extensive Functions Image Restoration Enhancement Information Extraction

Uploaded by

Bharani Dharan
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)
32 views

10 DIP Matlab Color

Image Processing Tool Box Extensive Functions Image Restoration Enhancement Information Extraction

Uploaded by

Bharani Dharan
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
You are on page 1/ 5

Introduction

MATLAB (MATrix LABoratory)


• Integrates Computation, Visualization and
Programming in an easy-to-use Environment

Image Processing
with MATLAB Toolboxes
• MATLAB functions (M-files)
• Signal Processing, Control Systems, Neural
Prof. D. Nagesh Kumar Networks, Fuzzy Logic, Wavelets, Simulation,
Image Processing ...
Dept. of Civil Engg
IISc, Bangalore, India
URL: http://civil.iisc.ernet.in/~nagesh

Demo of Basic Features


Image Processing Tool Box
IRS (Indian Remote Sensing) Satellite 1C
LISS III data
Extensive Functions • B2 (Green) 0.52-0.59 µm 23.5 m
• B3 (Red) 0.62-0.68 µm 23.5 m
Image Restoration • B4 (NIR) 0.77-0.86 µm 23.5 m
• B5 (SWIR) 1.55-1.70 µm 70.5 m
Enhancement
Information Extraction
Uttara Kannada district, Karnataka
• IMAGE?.JPG

Raw Image (Band 4)


Read and Display an Image
Features
• Arabian Sea on the
Read an image (image4. JPG) and store it in left
an array named I • Kalinadi in top half
• Dense vegetation.
• I = imread (‘image4. JPG’);
• Small white
Call imshow to display Image patches in the
image are clouds
• imshow (I)
Features in the image
• Arabian Sea on the left
• Kalinadi in top half
• Dense vegetation.
• Small white patches in the image are clouds

1
Check the Image in Memory Histogram of Raw Image
• Use whos command to see how I is stored in
memory
Name Size Bytes Class
I 342x342 116964 uint8

Histogram of an Image
• Typical Low contrast in Image (0-255)
• Display Histogram of Image

figure, imhist (I)

Histogram Equalized Image


Histogram Equalization
Use histeq to spread the intensity values
over the full range to improve the contrast
of I
I2 = histeq (I);
Display the new equalized image, I2
figure, imshow(I2)

Enhanced Image (Band 5) Standard FCC

2
Images in MATLAB Information Extraction
Data Structure in MATLAB Image Arithmetic
• Matrix representation • Addition, Subtraction, Multiplication and
• I(2,15) gives the Pixel value at Row 2, Division on Images
Column 15 • Adding Images
• Multidimensional Array for RGB… • Add 2 images
I = imread('image3.JPG'); J = imread('image4.JPG');
K = imadd(I,J); imshow(K)
Supports Different Image Formats
• BMP, HDF, JPEG, PCX, PNG, TIFF, XWD • Add a constant 50
Converting Image Storage Classes I = imread('image4.JPG');
J = imadd(I,50);
Converting Graphics File Formats

Adding Two Images (3+4) Subtracting Images


• Subtract One Image from Another (DVI)
X= imread('image5.JPG'); J= imread('image4.JPG');
K= imsubtract(X,J);
• Subtract a Constant Value From an Image
Multiplying Images
• Multiply two images
• Multiply a Constant
I = imread('image4.JPG');J = immultiply(I,3.0);
figure, imshow(J);
Dividing Images (RVI)

Image Multiplied by 3 (Band 4) Special Display Techniques


Adding a Colorbar
F= imread('image5.JPG');
imshow(F), colorbar
Image Resizing
F = imread('image5.JPG'); J = imresize(F,0.5);
Image Rotation
F = imread('image5.JPG');
J = imrotate(I,35,'bilinear'); figure, imshow(J)
Image Cropping
• imcrop function

3
Image with Color Bar Image Rotated by 35 Degrees

Contour Plot of an Image


Image Contours

I = imread('image5.JPG');
figure, imcontour(I)

Edge Detection Image


Edge Detection
F = imread('image5.JPG');
BW1 = edge(F,'sobel');
BW2 = edge(F,'canny');
imshow(BW1);
figure, imshow(BW2)

4
Summary
MATLAB Image Processing Tool Box
has Excellent Features for the Analysis
of Satellite Images
Last date:
October 25, 2018

You might also like