SlideShare a Scribd company logo
1 of 41
DIGITAL SIGNAL AND IMAGE
PROCESSING USING MATLAB
Compiled by
Prof.Ms.V.Ezhilya
MATLAB - INTRODUCTION
• It stands for MATrix LABoratory
• It is developed by The Mathworks Inc.
• It is an interactive, integrated, environment
• It is a high level programming language
• Many applications‐ specific toolboxes available
• Can be converted into C code via MATLAB compiler
for better efficiency
DEFINITIONS
• Signal
▫ Signal is a physical quantity that varies with time,
frequency or any other independent variable.
IMAGE
• A 2-D physical likeness or representation of a
person, animal, or thing, photographed, painted,
sculptured, or otherwise made visible.
SIGNAL PROCESSING
Signal processing is an enabling technology that
encompasses the fundamental theory,
applications, algortihms, and implementations
of processing or transferring information
contained in many different physical, symbolic,
or abstract formats broadly designated as
signals.
BASIC SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
• Digital signal processing (DSP) is the numerical
manipulation of signals, usually with the
intention to measure, filter, produce or
compress continuous analog signals.
• APPLICATIONS:
▫ Speech Processing - audio
▫ RADAR
▫ SONAR
▫ Bio-medical etc.,
MATLAB NOTATIONS
• xlabel(‘time’); % label the x-axis with time
• ylabel(‘amplitude’); % label the y-axis with amplitude
• title(‘xxxxx’); % put a title on the plot
• input(‘’); % enter I/P value
• clear; % clears the workspace, all
variables are removed.
• clear all; % clears all variables and
functions from work space.
MATLAB NOTATIONS – Contd.
• clc; % clears command window,
command history is lost.
• plot(x,y) % plot continuous time signal.
• subplot % breaks fig. window.
• Stem % to plot discrete time sequence
• axis tight; % set tight scale on axes.
• zeros(m,n) % returns an m by n matrix of
zeros.
MATLAB NOTATIONS – Contd.
• x=0:.1:20; % create vector x
• b=[2;3;5]; % create vector b
• disp % display array
• length(x) % gives length of vector x.
• conv % perform convolution
• sin % give sine wave
• cos %give cosine wave
• fft & ifft %find dft& idft values
GENERATION OF SIGNALS
% To plot the Sine Function
clc;
clear all;
x=0:1:40;
y=10*sin(2*pi*x/15);
subplot(2,1,1);
plot(x,y); %CT
title('CT sine wave');
grid;
subplot(2,1,2);
stem(x,y); %DT
title('DT sine wave');
grid;
SINE WAVE : Continuous & Discrete
CALCULATION OF FFT
clc;
clear all;
close all;
xn=input('Enter the input sequence: ');
subplot(3,1,1);
stem(xn);
xlabel('Real axis->');
ylabel('Imaginary axis->');
title('INPUT SEQUENCE');
xk=fft(xn);
disp('The resultant is');
disp(xk);
subplot(3,1,3);
plot(xk,'o');
xlabel('Real axis->');
ylabel('Imaginary axis->');
title('OUTPUT SEQUENCE');
DIGITAL IMAGE PROCESSING
• Digital image processing is the use of computer
algorithms to perform image processing on digital images.
• STEPS:
 Image acquisition,
 Image enhancement,
 Image restoration,
 Color image processing,
 Wavelets and Multiresolution processing,
 Compression,
 Morphological processing,
 Segmentation, Representation with description
 Object recognition
DIP USING MATLAB
• A digital image is composed of a two or three
dimensional matrix of pixels.
• Individual pixels contain a number or numbers
representing what grayscale or color value is
assigned to it.
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Erosion
Dilation
Low level image processing
• Image compression
• Noise reduction
• Edge extraction
• Contrast enhancement
• Segmentation
• Thresholding
• Morphology
• Image restoration
Just some fun visual perception games
Can you count the dots?
More …
Do you see squares?
High level image understanding
• To imitate human cognition according to the
information contained in the image.
• Data represent knowledge about the image
content, and are often in symbolic form.
• Data representation is specific to the high-level
goal.
High level image understanding
• What are the high-level components?
• What tasks can be achieved?
Landmarks
(bifurcation/cros
sover)
Traces
(vessel
centerlines)
BASIC IMAGE PROCESSING FUNCTIONS
• imread() - Loading an image
• imshow() - Displaying an image
• imwrite() - Saving an image
• rgb2gray() - RGB to Gray Scale conversion
• imhist() - Histogram
• imhisteq() - Histogram equalization
• imnoise() - Adding Noise
LOADING AN IMAGE
OUTPUT
SAVING AN IMAGE - imwrite
IMAGE PROPERTIES - HISTOGRAM
• A histogram is a graph drawn between the pixel
values ranging from 0 – 265 and the total
number of pixels in an image.
• In image processing it is used to show how many
values of pixels are present in an image.
• Histograms can be very useful in determining
which pixel values are important in an image.
HISTOGRAM
HISTOGRAM - OUTPUT
FILTERS
• A filter, or convolution kernel - an algorithm for
modifying a pixel value.
• This could entail blurring, deblurring, locating
certain features within an image, etc.,
• LPF: It blur high frequency areas of images.
• This can sometimes be useful when attempting
to remove unwanted noise from an image.
M- FILE FOR LPF DESIGN
OUTPUT
MORPHOLOGICAL PROCESSING
• Processing an image based on its shape
• Types:
▫ Erosion: Removing pixel values from an Image
▫ Dilation: Adding pixel values to an Image
M-File For Erosion and Dilation
OUTPUT for EROSION & DILATION
CONTACT
Ms. V.Ezhilya, M.E.,
Assistant Professor
VSA GI – Salem
Feedback & Suggestions are welcome
Ph: 7339000588
E-mail : ezhilyavenkat@gmail.com
Blog : ezhilyavenkat.blogspot.in

More Related Content

Similar to DIGITAL_SIGNAL_AND_IMAGE_PROCESSING_USIN.pptx

Image processing tool box.pptx
Image processing tool box.pptxImage processing tool box.pptx
Image processing tool box.pptx
AvinashJain66
 
Efficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas RoardEfficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas Roard
Paris Android User Group
 

Similar to DIGITAL_SIGNAL_AND_IMAGE_PROCESSING_USIN.pptx (20)

R programmingmilano
R programmingmilanoR programmingmilano
R programmingmilano
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Introduction to Computer graphics
Introduction to Computer graphicsIntroduction to Computer graphics
Introduction to Computer graphics
 
Image processing in MATLAB
Image processing in MATLABImage processing in MATLAB
Image processing in MATLAB
 
Image Processing Using MATLAB
Image Processing Using MATLABImage Processing Using MATLAB
Image Processing Using MATLAB
 
Image processing tool box.pptx
Image processing tool box.pptxImage processing tool box.pptx
Image processing tool box.pptx
 
Basic image processing techniques
Basic image processing techniquesBasic image processing techniques
Basic image processing techniques
 
Image processing
Image processingImage processing
Image processing
 
Ec section
Ec section Ec section
Ec section
 
Image processing
Image processingImage processing
Image processing
 
Working with images in matlab graphics
Working with images in matlab graphicsWorking with images in matlab graphics
Working with images in matlab graphics
 
Efficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas RoardEfficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas Roard
 
Real life XNA
Real life XNAReal life XNA
Real life XNA
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
ACMP340.pptx
ACMP340.pptxACMP340.pptx
ACMP340.pptx
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Visual CryptoGraphy
Visual CryptoGraphyVisual CryptoGraphy
Visual CryptoGraphy
 
Unsupervised program synthesis
Unsupervised program synthesisUnsupervised program synthesis
Unsupervised program synthesis
 
Signal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABSignal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLAB
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 

DIGITAL_SIGNAL_AND_IMAGE_PROCESSING_USIN.pptx

  • 1. DIGITAL SIGNAL AND IMAGE PROCESSING USING MATLAB Compiled by Prof.Ms.V.Ezhilya
  • 2. MATLAB - INTRODUCTION • It stands for MATrix LABoratory • It is developed by The Mathworks Inc. • It is an interactive, integrated, environment • It is a high level programming language • Many applications‐ specific toolboxes available • Can be converted into C code via MATLAB compiler for better efficiency
  • 3. DEFINITIONS • Signal ▫ Signal is a physical quantity that varies with time, frequency or any other independent variable.
  • 4. IMAGE • A 2-D physical likeness or representation of a person, animal, or thing, photographed, painted, sculptured, or otherwise made visible.
  • 5. SIGNAL PROCESSING Signal processing is an enabling technology that encompasses the fundamental theory, applications, algortihms, and implementations of processing or transferring information contained in many different physical, symbolic, or abstract formats broadly designated as signals.
  • 7. DIGITAL SIGNAL PROCESSING • Digital signal processing (DSP) is the numerical manipulation of signals, usually with the intention to measure, filter, produce or compress continuous analog signals. • APPLICATIONS: ▫ Speech Processing - audio ▫ RADAR ▫ SONAR ▫ Bio-medical etc.,
  • 8. MATLAB NOTATIONS • xlabel(‘time’); % label the x-axis with time • ylabel(‘amplitude’); % label the y-axis with amplitude • title(‘xxxxx’); % put a title on the plot • input(‘’); % enter I/P value • clear; % clears the workspace, all variables are removed. • clear all; % clears all variables and functions from work space.
  • 9. MATLAB NOTATIONS – Contd. • clc; % clears command window, command history is lost. • plot(x,y) % plot continuous time signal. • subplot % breaks fig. window. • Stem % to plot discrete time sequence • axis tight; % set tight scale on axes. • zeros(m,n) % returns an m by n matrix of zeros.
  • 10. MATLAB NOTATIONS – Contd. • x=0:.1:20; % create vector x • b=[2;3;5]; % create vector b • disp % display array • length(x) % gives length of vector x. • conv % perform convolution • sin % give sine wave • cos %give cosine wave • fft & ifft %find dft& idft values
  • 11. GENERATION OF SIGNALS % To plot the Sine Function clc; clear all; x=0:1:40; y=10*sin(2*pi*x/15); subplot(2,1,1); plot(x,y); %CT title('CT sine wave'); grid; subplot(2,1,2); stem(x,y); %DT title('DT sine wave'); grid;
  • 12. SINE WAVE : Continuous & Discrete
  • 13. CALCULATION OF FFT clc; clear all; close all; xn=input('Enter the input sequence: '); subplot(3,1,1); stem(xn); xlabel('Real axis->'); ylabel('Imaginary axis->'); title('INPUT SEQUENCE'); xk=fft(xn); disp('The resultant is'); disp(xk); subplot(3,1,3); plot(xk,'o'); xlabel('Real axis->'); ylabel('Imaginary axis->'); title('OUTPUT SEQUENCE');
  • 14. DIGITAL IMAGE PROCESSING • Digital image processing is the use of computer algorithms to perform image processing on digital images. • STEPS:  Image acquisition,  Image enhancement,  Image restoration,  Color image processing,  Wavelets and Multiresolution processing,  Compression,  Morphological processing,  Segmentation, Representation with description  Object recognition
  • 15. DIP USING MATLAB • A digital image is composed of a two or three dimensional matrix of pixels. • Individual pixels contain a number or numbers representing what grayscale or color value is assigned to it.
  • 16. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 17. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 18. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 19. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 20. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 21. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 22. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration Erosion Dilation
  • 23. Low level image processing • Image compression • Noise reduction • Edge extraction • Contrast enhancement • Segmentation • Thresholding • Morphology • Image restoration
  • 24. Just some fun visual perception games Can you count the dots?
  • 25. More … Do you see squares?
  • 26. High level image understanding • To imitate human cognition according to the information contained in the image. • Data represent knowledge about the image content, and are often in symbolic form. • Data representation is specific to the high-level goal.
  • 27. High level image understanding • What are the high-level components? • What tasks can be achieved? Landmarks (bifurcation/cros sover) Traces (vessel centerlines)
  • 28. BASIC IMAGE PROCESSING FUNCTIONS • imread() - Loading an image • imshow() - Displaying an image • imwrite() - Saving an image • rgb2gray() - RGB to Gray Scale conversion • imhist() - Histogram • imhisteq() - Histogram equalization • imnoise() - Adding Noise
  • 31. SAVING AN IMAGE - imwrite
  • 32. IMAGE PROPERTIES - HISTOGRAM • A histogram is a graph drawn between the pixel values ranging from 0 – 265 and the total number of pixels in an image. • In image processing it is used to show how many values of pixels are present in an image. • Histograms can be very useful in determining which pixel values are important in an image.
  • 35. FILTERS • A filter, or convolution kernel - an algorithm for modifying a pixel value. • This could entail blurring, deblurring, locating certain features within an image, etc., • LPF: It blur high frequency areas of images. • This can sometimes be useful when attempting to remove unwanted noise from an image.
  • 36. M- FILE FOR LPF DESIGN
  • 38. MORPHOLOGICAL PROCESSING • Processing an image based on its shape • Types: ▫ Erosion: Removing pixel values from an Image ▫ Dilation: Adding pixel values to an Image
  • 39. M-File For Erosion and Dilation
  • 40. OUTPUT for EROSION & DILATION
  • 41. CONTACT Ms. V.Ezhilya, M.E., Assistant Professor VSA GI – Salem Feedback & Suggestions are welcome Ph: 7339000588 E-mail : ezhilyavenkat@gmail.com Blog : ezhilyavenkat.blogspot.in