SlideShare une entreprise Scribd logo
1  sur  33
Filtering an image is to apply a
convolution operation to an
image to achieve: blurring,
sharpening , edge extraction or
noise removal.
FILTERING OF IMAGES
INPUT MATRIX TO BE TAKEN:
 Sumw=(w1+w2+w3+w4+w5+w6+w7+w8+w9)
RESULTANT MATRIX:
 The simplest convolution kernel or filter is
of size 3x3 with equal weights and is
represented as follows:
LOW PASS FILTERS
 This filter produces a simple average (or arithmetic
mean)of the nearest neighbors of each pixel in the
image.
 It is one of a class of what are known as low pass filters.
 They pass low frequencies in the image or equivalently
pass long wavelengths in the image
LOW PASS FILTERS
 It correspond to abrupt changes in image intensity, i.e.
edges. Thus we get blurring.
 Also, because it is replacing each pixel with an average
of the pixels in its local neighborhood, one can
understand why it tends to blur the image.
 Blurring is typical of low pass filters.
CODE:
INPUT GRAYSCALE IMAGE:
MATLAB OUTPUT
EFFECT OF USING LARGER MATRIX:
 The result of using a larger filter(here 10X10) will be that
the low pass filtered image is blurrier than for the 5x5
case and the high pass filtered image will have thicker
edges.
HIGH PASS FILTERS:
 It passes only short wavelengths, i.e. where there
are abrupt changes in intensity
 It removes long wavelengths, i.e. where the
image intensity is varying slowly.
 Thus when applied to an image, it shows only
the edges in the image.
HIGH PASS FILTERS:
 High pass filtering of an image can be achieved
by the application of a low pass filter to the
image and subsequently subtraction of the low
pass filtered result from the image
 In abbreviated terms, this is H = I – L, where H =
highpass filtered image, I = original image and L
= low pass filtered image.
CODE:
 j=zeros(5)
 j(3,3)=1
 h=ones(5)/25;
 j=j-h;
 g=filter2(j,gs,'same');
 imshow(g/255)
OUTPUT:
3. FFT Filters:
 FFT Filters provide precisely controlled low- and high-pass
filtering (smoothing and sharpening, respectively) using a
Butterworth characteristic.
 The image is converted into spatial frequencies using a
Fast Fourier Transform, the appropriate filter is applied.
 Then the image is converted back using an inverse FFT.
PREDEFINED FILTERS IN MATLAB:
 Predefined function used is fspecial:
 Types available:
 Averaging
AVERAGING:
 Code:
 f = fspecial ('average')
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
DISK(Circular averaging filter):
 Code:
 f = fspecial (‘disk‘,5)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
GAUSSIAN(Low pass filter)
 Code:
 f = fspecial (‘gaussian‘,5)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
LAPLACIAN:
 Code:
 f = fspecial (‘laplacian‘);
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
LOG(Laplacian of Gaussian filter):
 Code:
 f = fspecial (‘log‘,5)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
MOTION(Linear motion of camera):
 Code:
 f = fspecial (‘motion‘)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
PREWITT(Horizontal edge detection):
 Code:
 f = fspecial (‘prewitt‘)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
SOBEL(A Better version of prewitt):
 Code:
 f = fspecial (‘sobel‘)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o)
OUTPUT:
UNSHARP(Contrast enhancing filter):
 Code:
 f = fspecial (‘unsharp‘,5)
 I = imread ('tulips.jpg');
 gs = rgb2gray(i);
 o = filter2(f,gs);
 imshow(o/255)
OUTPUT:

Contenu connexe

Tendances

Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensionsAyushi Gagneja
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transformSimranjit Singh
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1Gichelle Amon
 
Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesDataminingTools Inc
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Kalyan Acharjya
 
Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainZara Tariq
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab Amr Rashed
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image ProcessingPallavi Agarwal
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesCristina Pérez Benito
 

Tendances (20)

Image compression
Image compressionImage compression
Image compression
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1
 
Noise
NoiseNoise
Noise
 
Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniques
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 

En vedette

Convolution final slides
Convolution final slidesConvolution final slides
Convolution final slidesramyasree_ssj
 
Introduction To Advanced Image Processing
Introduction To Advanced Image ProcessingIntroduction To Advanced Image Processing
Introduction To Advanced Image ProcessingSuren Kumar
 
Image enhancement and interpretation
Image enhancement and interpretationImage enhancement and interpretation
Image enhancement and interpretationDocumentStory
 
Filtering and masking
Filtering and maskingFiltering and masking
Filtering and maskingamudhini
 
Backpropagation
BackpropagationBackpropagation
Backpropagationariffast
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image RestorationMostafa G. M. Mostafa
 
MNIST for ML beginners
MNIST for ML beginnersMNIST for ML beginners
MNIST for ML beginners홍배 김
 
Introduction to deep learning in python and Matlab
Introduction to deep learning in python and MatlabIntroduction to deep learning in python and Matlab
Introduction to deep learning in python and MatlabImry Kissos
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networksAkash Goel
 
[251] implementing deep learning using cu dnn
[251] implementing deep learning using cu dnn[251] implementing deep learning using cu dnn
[251] implementing deep learning using cu dnnNAVER D2
 
Back propagation
Back propagationBack propagation
Back propagationNagarajan
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Gaurav Mittal
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksChristian Perone
 

En vedette (19)

Convolution final slides
Convolution final slidesConvolution final slides
Convolution final slides
 
Introduction To Advanced Image Processing
Introduction To Advanced Image ProcessingIntroduction To Advanced Image Processing
Introduction To Advanced Image Processing
 
Image enhancement and interpretation
Image enhancement and interpretationImage enhancement and interpretation
Image enhancement and interpretation
 
Filtering and masking
Filtering and maskingFiltering and masking
Filtering and masking
 
Practical Deep Learning
Practical Deep LearningPractical Deep Learning
Practical Deep Learning
 
Backpropagation
BackpropagationBackpropagation
Backpropagation
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
MNIST for ML beginners
MNIST for ML beginnersMNIST for ML beginners
MNIST for ML beginners
 
Deep Learning for Computer Vision: Backward Propagation (UPC 2016)
Deep Learning for Computer Vision: Backward Propagation (UPC 2016)Deep Learning for Computer Vision: Backward Propagation (UPC 2016)
Deep Learning for Computer Vision: Backward Propagation (UPC 2016)
 
Deep Reasoning
Deep ReasoningDeep Reasoning
Deep Reasoning
 
Introduction to deep learning in python and Matlab
Introduction to deep learning in python and MatlabIntroduction to deep learning in python and Matlab
Introduction to deep learning in python and Matlab
 
Convolution
ConvolutionConvolution
Convolution
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
[251] implementing deep learning using cu dnn
[251] implementing deep learning using cu dnn[251] implementing deep learning using cu dnn
[251] implementing deep learning using cu dnn
 
Back propagation
Back propagationBack propagation
Back propagation
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural Networks
 

Similaire à Filtering an image is to apply a convolution

Frequency Image Processing
Frequency Image ProcessingFrequency Image Processing
Frequency Image ProcessingSuhas Deshpande
 
13 fourierfiltrationen
13 fourierfiltrationen13 fourierfiltrationen
13 fourierfiltrationenhoailinhtinh
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Scienceinventy
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainMalik obeisat
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIPbabak danyal
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGPriyanka Rathore
 
Computer Vision - Image Filters
Computer Vision - Image FiltersComputer Vision - Image Filters
Computer Vision - Image FiltersYoss Cohen
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingrkumarankit06875
 
Spatial domain filtering.ppt
Spatial domain filtering.pptSpatial domain filtering.ppt
Spatial domain filtering.pptssuser4bbfb1
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringShajun Nisha
 
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...Norishige Fukushima
 

Similaire à Filtering an image is to apply a convolution (20)

Frequency Image Processing
Frequency Image ProcessingFrequency Image Processing
Frequency Image Processing
 
13 fourierfiltrationen
13 fourierfiltrationen13 fourierfiltrationen
13 fourierfiltrationen
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Assignment 3Fourier.docx
Assignment 3Fourier.docxAssignment 3Fourier.docx
Assignment 3Fourier.docx
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
 
Computer Vision - Image Filters
Computer Vision - Image FiltersComputer Vision - Image Filters
Computer Vision - Image Filters
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
Spatial domain filtering.ppt
Spatial domain filtering.pptSpatial domain filtering.ppt
Spatial domain filtering.ppt
 
unit-3.ppt
unit-3.pptunit-3.ppt
unit-3.ppt
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
PPT s04-machine vision-s2
PPT s04-machine vision-s2PPT s04-machine vision-s2
PPT s04-machine vision-s2
 
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...
Non-essentiality of Correlation between Image and Depth Map in Free Viewpoin...
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 

Plus de Abhishek Mukherjee (8)

Abhishek_Mukherjee
Abhishek_MukherjeeAbhishek_Mukherjee
Abhishek_Mukherjee
 
WELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANINGWELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANING
 
Map Reduce basics
Map Reduce basicsMap Reduce basics
Map Reduce basics
 
Php Bascis
Php BascisPhp Bascis
Php Bascis
 
INSPIRING DESIGNS
INSPIRING DESIGNSINSPIRING DESIGNS
INSPIRING DESIGNS
 
Photoshop Basics
Photoshop BasicsPhotoshop Basics
Photoshop Basics
 
C# basics...
C# basics...C# basics...
C# basics...
 
Net framework
Net frameworkNet framework
Net framework
 

Dernier

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
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...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
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 Conduitsrknatarajan
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
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 workingrknatarajan
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
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.pptxfenichawla
 
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
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Dernier (20)

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
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...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
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
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
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
 
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...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 

Filtering an image is to apply a convolution

  • 1. Filtering an image is to apply a convolution operation to an image to achieve: blurring, sharpening , edge extraction or noise removal. FILTERING OF IMAGES
  • 2. INPUT MATRIX TO BE TAKEN:  Sumw=(w1+w2+w3+w4+w5+w6+w7+w8+w9)
  • 4.  The simplest convolution kernel or filter is of size 3x3 with equal weights and is represented as follows:
  • 5. LOW PASS FILTERS  This filter produces a simple average (or arithmetic mean)of the nearest neighbors of each pixel in the image.  It is one of a class of what are known as low pass filters.  They pass low frequencies in the image or equivalently pass long wavelengths in the image
  • 6. LOW PASS FILTERS  It correspond to abrupt changes in image intensity, i.e. edges. Thus we get blurring.  Also, because it is replacing each pixel with an average of the pixels in its local neighborhood, one can understand why it tends to blur the image.  Blurring is typical of low pass filters.
  • 10. EFFECT OF USING LARGER MATRIX:  The result of using a larger filter(here 10X10) will be that the low pass filtered image is blurrier than for the 5x5 case and the high pass filtered image will have thicker edges.
  • 11. HIGH PASS FILTERS:  It passes only short wavelengths, i.e. where there are abrupt changes in intensity  It removes long wavelengths, i.e. where the image intensity is varying slowly.  Thus when applied to an image, it shows only the edges in the image.
  • 12. HIGH PASS FILTERS:  High pass filtering of an image can be achieved by the application of a low pass filter to the image and subsequently subtraction of the low pass filtered result from the image  In abbreviated terms, this is H = I – L, where H = highpass filtered image, I = original image and L = low pass filtered image.
  • 13. CODE:  j=zeros(5)  j(3,3)=1  h=ones(5)/25;  j=j-h;  g=filter2(j,gs,'same');  imshow(g/255)
  • 15. 3. FFT Filters:  FFT Filters provide precisely controlled low- and high-pass filtering (smoothing and sharpening, respectively) using a Butterworth characteristic.  The image is converted into spatial frequencies using a Fast Fourier Transform, the appropriate filter is applied.  Then the image is converted back using an inverse FFT.
  • 16. PREDEFINED FILTERS IN MATLAB:  Predefined function used is fspecial:  Types available:  Averaging
  • 17. AVERAGING:  Code:  f = fspecial ('average')  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 19. DISK(Circular averaging filter):  Code:  f = fspecial (‘disk‘,5)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 21. GAUSSIAN(Low pass filter)  Code:  f = fspecial (‘gaussian‘,5)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 22. LAPLACIAN:  Code:  f = fspecial (‘laplacian‘);  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 24. LOG(Laplacian of Gaussian filter):  Code:  f = fspecial (‘log‘,5)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 26. MOTION(Linear motion of camera):  Code:  f = fspecial (‘motion‘)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 28. PREWITT(Horizontal edge detection):  Code:  f = fspecial (‘prewitt‘)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 30. SOBEL(A Better version of prewitt):  Code:  f = fspecial (‘sobel‘)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o)
  • 32. UNSHARP(Contrast enhancing filter):  Code:  f = fspecial (‘unsharp‘,5)  I = imread ('tulips.jpg');  gs = rgb2gray(i);  o = filter2(f,gs);  imshow(o/255)