SlideShare a Scribd company logo
Digital Image Processing
Edge Detection using
Dual FIS Optimization
Ishaan Gupta
03914802810
7E123 – E2
Electronics and Communications
MAIT
Mentored By:
Prof. Nitin Sharma
Assistant Professor
Electronics and Communications Dept
MAIT
What is D.I.P. ?
• Processing of digital images by means of a digital computer.
• Output can be image and/or values.
• Deals with spatial coordinates, amplitude of ‘f’ at any pair coordinates
(x,y) called gray levels or intensity values which are finite and discrete.
Steps in
DIP
Image acquisition
Image filtering and
enhancement
Image restoration
Color Image
Processing.
Wavelets and
multi-resolution
Processing.
Compression
Morphological
Processing.
Segmentation
Representation &
Description.
Object Recognition
Image acquisition
• Done via:
• Camera – Visible spectrum
• Image matrix (Draw Functions / Convert intensity values -> Image)
• Techniques :
• Xray
• Gamma
• Ultrasound
• IR
• Satellite (Multi-resolution)
Image filters & enhancement
• Filters – LPF, HPF, BPF, Gaussian Filters, etc.
• Depth – Field view, panorama, IR based, Laser Based
• Enhancement – Brightness, Contrast, Smoothening, Equalization,
Saturation [RGB Master, R master, G Master, B Master] , etc.
Detection
• Edge
• Color
• Intensity / gray level - Binary and grayscale Images
• Objects and Object description.
Edge detection algos
• Gaussian - Canny’s Algo, Shen-Castan, etc
• LoG (Laplacian of Gaussian) – Marr-Hildreth – Second Derivative
• Zero Crossing – LoG based
• Classical - Prewitt
• Classical - Sobel
Comparisons
Operator Advantages Disadvantages
Classical (Sobel,
prewitt, Kirsch,…)
Simplicity,
Detection of edges and their
orientations
Sensitivity to
noise, Inaccurate
Zero
Crossing(Laplacian, Second
directional derivative)
Detection of
edges and their orientations. Having
fixed characteristics in all directions
Responding to
some of the existing edges,
Sensitivity to noise
Laplacian of
Gaussian(LoG) (Marr-Hildreth)
Finding the
correct places of edges, Testing wider
area around the pixel
Malfunctioning
at the corners, curves and where the
gray level intensity function varies.
Not finding the orientation of edge
because of using the Laplacian filter
Gaussian(Canny,
Shen-Castan)
Using
probability for finding error rate,
Localization and response. Improving
signal to noise ratio, Better detection
specially in noise conditions
Complex
Computations, False zero crossing,
Time consuming
Edge Detection
9
• Convert a 2D image into a set of curves
• Extracts salient features of the scene
• More compact than pixels
10
Origin of Edges
• Edges are caused by a variety of factors
depth discontinuity
surface color discontinuity
illumination discontinuity
surface normal discontinuity
11
Profiles of image intensity edges
12
Edge detection
1. Detection of short linear edge segments (edgels)
2. Aggregation of edgels into extended edges
• (maybe parametric description)
13
Edgel detection
•Difference operators
•Parametric-model matchers
14
Edge is Where Change Occurs
• Change is measured by derivative in 1D
• Biggest change, derivative has maximum magnitude
• Or 2nd derivative is zero.
15
Image gradient
• The gradient of an image:
• The gradient points in the direction of most rapid change in intensity
The gradient direction is given by:
• how does this relate to the direction of the edge?
The edge strength is given by the gradient magnitude
16
The discrete gradient
• How can we differentiate a digital image f[x,y]?
• Option 1: reconstruct a continuous image, then take gradient
• Option 2: take discrete derivative (finite difference)
17
The Sobel operator
• Better approximations of the derivatives exist
• The Sobel operators below are very commonly used
-1 0 1
-2 0 2
-1 0 1
1 2 1
0 0 0
-1 -2 -1
• The standard defn. of the Sobel operator omits the 1/8 term
– doesn’t make a difference for edge detection
– the 1/8 term is needed to get the right gradient value, however
18
Gradient operators
(a): Roberts’ cross operator (b): 3x3 Prewitt operator
(c): Sobel operator (d) 4x4 Prewitt operator
19
Effects of noise
• Consider a single row or column of the image
• Plotting intensity as a function of position gives a signal
20
Solution: Smooth first
21
Derivative theorem of convolution
• This saves us one operation:
22
Laplacian of Gaussian
• Consider
Laplacian of Gaussian
operator
23
2D edge detection filters
• is the Laplacian operator:
Laplacian of Gaussian
Gaussian derivative of Gaussian
24
Optimal Edge Detection: Canny
• Assume:
• Linear filtering
• Additive iid Gaussian noise
• Edge detector should have:
• Good Detection. Filter responds to edge, not noise.
• Good Localization: detected edge near true edge.
• Single Response: one per edge.
25
Optimal Edge Detection: Canny (continued)
• Optimal Detector is approximately Derivative of Gaussian.
• Detection/Localization trade-off
• More smoothing improves detection
• And hurts localization.
26
The Canny edge detector
• original image (Lena)
27
The Canny edge detector
norm of the gradient
28
The Canny edge detector
thresholding
29
The Canny edge detector
thinning
(non-maximum suppression) 30
Non-maximum suppression
• Check if pixel is local maximum along gradient
direction
• requires checking interpolated pixels p and r
31
Predicting
the next
edge point
Assume the marked point is an
edge point. Then we construct
the tangent to the edge curve
(which is normal to the gradient
at that point) and use this to
predict the next points (here
either r or s).
(Forsyth & Ponce) 32
Hysteresis
• Check that maximum value of gradient value is sufficiently large
• drop-outs? use hysteresis
• use a high threshold to start edge curves and a low threshold to continue them.
33
Effect of (Gaussian kernel size)
Canny with Canny withoriginal
The choice of depends on desired behavior
• large detects large scale edges
• small detects fine features
34
Scale
• Smoothing
• Eliminates noise edges.
• Makes edges smoother.
• Removes fine detail.
35
36
fine scale
high
threshold
37
coarse
scale,
high
threshold
38
coarse
scale
low
threshold
39
Scale space
• Properties of scale space (w/ Gaussian smoothing)
• edge position may shift with increasing scale ( )
• two edges may merge with increasing scale
• an edge may not split into two with increasing scale
larger
Gaussian filtered signal
first derivative peaks
40
Edge detection by subtraction
original
41
Edge detection by subtraction
smoothed (5x5 Gaussian)
42
Edge detection by subtraction
smoothed – original
(scaled by 4, offset +128)
Why does
this work?
filter demo 43
Gaussian - image filter
Laplacian of Gaussian
Gaussian delta function
44
An edge is not a line...
45
Finding lines in an image
• Option 1:
• Search for the line at every possible position/orientation
• What is the cost of this operation?
• Option 2:
• Use a voting scheme: Hough transform
46
Finding lines in an image
• Connection between image (x,y) and Hough (m,b)
spaces
• A line in the image corresponds to a point in Hough space
• To go from image space to Hough space:
• given a set of points (x,y), find all (m,b) such that y = mx + b
x
y
m
b
m0
b0
image space Hough space
47
Finding lines in an image
• Connection between image (x,y) and Hough (m,b) spaces
• A line in the image corresponds to a point in Hough space
• To go from image space to Hough space:
• given a set of points (x,y), find all (m,b) such that y = mx + b
• What does a point (x0, y0) in the image space map to?
x
y
m
b
image space Hough space
– A: the solutions of b = -x0m + y0
– this is a line in Hough space
x0
y0
48
Corners contain more edges than
lines.
• A point on a line is hard to match.
Corner detection
49
Corners contain more edges than lines.
• A corner is easier
50
Edge Detectors Tend to Fail at Corners
51
Finding Corners
Intuition:
• Right at corner, gradient is ill defined.
• Near corner, gradient has two different
values.
52
Fuzzy Logic
&
Fuzzy Inference System (FIS)
Introduction to Fuzzy Sets
• Introduced by A. L. Zadeh (1965)
• Fuzzy sets provide the mechanism for dealing with imprecise
information
• Based and related closely to usage of probability in crisp information.
• Provides margin for error and its correction possibilities in both input
and output values.
• Takes into account full or partial membership and relationship
between one value to another.
Fuzzy
Inference
System
(FIS)
FIS
Types
Mamdani
Sugeno
Components
Membership
Functions
IF-THEN
Rules
Logical
Operations
Applications
DIP
Localizations
Network
Analysis
Steps in FIS
FIS Toolbox in MATLAB
Conventional FIS usage in DIP
FIS(4Input) Image processor Edge
My usage
Image
Restoration
Image
Enhancement
Noise
Removal using
LoG
FIS OutDIP2
Edge
Detection2
DIP 1
Edge
detection1
Mat2Gray
out1
FIS
Image
processor
FIS
Image
Processor
Edge Out
Mat2Gray
out
Filtration
Noise
Removal
Image
enhancement
Image
restoration
FIS 1
Membership Function of Input
Membership of Output
IF-THEN Rule set = 16
FIS2
Membership Function of Input
Membership of Output
IF-THEN Ruleset = 28 +10
Final
Outputs
Compare
d
Thank You

More Related Content

What's hot

SIFT
SIFTSIFT
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
Shivangi Saxena
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
babak danyal
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
SN Chakraborty
 
Edge detection
Edge detectionEdge detection
Edge detection
Ishraq Al Fataftah
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
Madhu Bala
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Ayaelshiwi
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
AAKANKSHA JAIN
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Filtering and masking
Filtering and maskingFiltering and masking
Filtering and masking
amudhini
 
Image processing
Image processingImage processing
Image processing
Pooja G N
 
Edge detection
Edge detectionEdge detection
Edge detection
Jyoti Dhall
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
Mrunal Selokar
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
Hemantha Kulathilake
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 

What's hot (20)

SIFT
SIFTSIFT
SIFT
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
 
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 Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Filtering and masking
Filtering and maskingFiltering and masking
Filtering and masking
 
Image processing
Image processingImage processing
Image processing
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 

Viewers also liked

Mesh Processing Course : Differential Calculus
Mesh Processing Course : Differential CalculusMesh Processing Course : Differential Calculus
Mesh Processing Course : Differential Calculus
Gabriel Peyré
 
Edge detection of video using matlab code
Edge detection of video using matlab codeEdge detection of video using matlab code
Edge detection of video using matlab code
Bhushan Deore
 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and code
Vaddi Manikanta
 
Lecture11
Lecture11Lecture11
Lecture11
zukun
 
Capturing image
Capturing imageCapturing image
Capturing image
Haseeb Patel
 
Edge detection-LOG
Edge detection-LOGEdge detection-LOG
Edge detection-LOG
Ankita Khadsare
 
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
Fred Kozlov
 
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
CSCJournals
 
Ontologia1
Ontologia1Ontologia1
Ontologia1
Metalco Panama
 
Building extraction from remote sensing imageries by data fusion techniques
Building extraction from remote sensing imageries by data fusion techniquesBuilding extraction from remote sensing imageries by data fusion techniques
Building extraction from remote sensing imageries by data fusion techniques
eSAT Journals
 
Java and OWL
Java and OWLJava and OWL
Java and OWL
Raji Ghawi
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detection
Rumah Belajar
 
fuzzy image processing
fuzzy image processingfuzzy image processing
fuzzy image processing
amalalhait
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
VIKAS SINGH BHADOURIA
 
Edge Detection
Edge Detection Edge Detection
Edge Detection
Jakir Hossain
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
Data Science Thailand
 
Number plate recognition system using matlab.
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.
Namra Afzal
 

Viewers also liked (17)

Mesh Processing Course : Differential Calculus
Mesh Processing Course : Differential CalculusMesh Processing Course : Differential Calculus
Mesh Processing Course : Differential Calculus
 
Edge detection of video using matlab code
Edge detection of video using matlab codeEdge detection of video using matlab code
Edge detection of video using matlab code
 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and code
 
Lecture11
Lecture11Lecture11
Lecture11
 
Capturing image
Capturing imageCapturing image
Capturing image
 
Edge detection-LOG
Edge detection-LOGEdge detection-LOG
Edge detection-LOG
 
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
A Combined Method for E-Learning Ontology Population based on NLP and User Ac...
 
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
 
Ontologia1
Ontologia1Ontologia1
Ontologia1
 
Building extraction from remote sensing imageries by data fusion techniques
Building extraction from remote sensing imageries by data fusion techniquesBuilding extraction from remote sensing imageries by data fusion techniques
Building extraction from remote sensing imageries by data fusion techniques
 
Java and OWL
Java and OWLJava and OWL
Java and OWL
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detection
 
fuzzy image processing
fuzzy image processingfuzzy image processing
fuzzy image processing
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Edge Detection
Edge Detection Edge Detection
Edge Detection
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
 
Number plate recognition system using matlab.
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.
 

Similar to Fuzzy Logic Based Edge Detection

09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresi
Elsayed Hemayed
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny Algorithm
Prasad Thakur
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
NaveenKumar5162
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
Binus Online Learning
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
vikasmittal92
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
mohan134666
 
Review (1)
Review (1)Review (1)
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detection
Shashank Kapoor
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
AJAYMALIK97
 
Real-time Edge-aware Image Processing with the Bilateral Grid
Real-time Edge-aware Image Processing with the Bilateral GridReal-time Edge-aware Image Processing with the Bilateral Grid
Real-time Edge-aware Image Processing with the Bilateral Grid
MLReview
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Kuppusamy P
 
Passive stereo vision with deep learning
Passive stereo vision with deep learningPassive stereo vision with deep learning
Passive stereo vision with deep learning
Yu Huang
 
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge DetectionEdge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
cihantopal2
 
cv1.ppt
cv1.pptcv1.ppt
cv1.ppt
sachin397946
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
Sanyam Agarwal
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
Wael Sharba
 
Edges and lines
Edges and linesEdges and lines
Edges and lines
Rushil Anirudh
 
YCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptxYCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptx
SharmilaMore5
 

Similar to Fuzzy Logic Based Edge Detection (20)

09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresi
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny Algorithm
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
Review (1)
Review (1)Review (1)
Review (1)
 
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detection
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
 
Real-time Edge-aware Image Processing with the Bilateral Grid
Real-time Edge-aware Image Processing with the Bilateral GridReal-time Edge-aware Image Processing with the Bilateral Grid
Real-time Edge-aware Image Processing with the Bilateral Grid
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Passive stereo vision with deep learning
Passive stereo vision with deep learningPassive stereo vision with deep learning
Passive stereo vision with deep learning
 
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge DetectionEdge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
 
cv1.ppt
cv1.pptcv1.ppt
cv1.ppt
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Edges and lines
Edges and linesEdges and lines
Edges and lines
 
YCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptxYCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptx
 

Recently uploaded

一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 

Recently uploaded (20)

一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 

Fuzzy Logic Based Edge Detection

  • 1. Digital Image Processing Edge Detection using Dual FIS Optimization Ishaan Gupta 03914802810 7E123 – E2 Electronics and Communications MAIT Mentored By: Prof. Nitin Sharma Assistant Professor Electronics and Communications Dept MAIT
  • 2. What is D.I.P. ? • Processing of digital images by means of a digital computer. • Output can be image and/or values. • Deals with spatial coordinates, amplitude of ‘f’ at any pair coordinates (x,y) called gray levels or intensity values which are finite and discrete.
  • 3. Steps in DIP Image acquisition Image filtering and enhancement Image restoration Color Image Processing. Wavelets and multi-resolution Processing. Compression Morphological Processing. Segmentation Representation & Description. Object Recognition
  • 4. Image acquisition • Done via: • Camera – Visible spectrum • Image matrix (Draw Functions / Convert intensity values -> Image) • Techniques : • Xray • Gamma • Ultrasound • IR • Satellite (Multi-resolution)
  • 5. Image filters & enhancement • Filters – LPF, HPF, BPF, Gaussian Filters, etc. • Depth – Field view, panorama, IR based, Laser Based • Enhancement – Brightness, Contrast, Smoothening, Equalization, Saturation [RGB Master, R master, G Master, B Master] , etc.
  • 6. Detection • Edge • Color • Intensity / gray level - Binary and grayscale Images • Objects and Object description.
  • 7. Edge detection algos • Gaussian - Canny’s Algo, Shen-Castan, etc • LoG (Laplacian of Gaussian) – Marr-Hildreth – Second Derivative • Zero Crossing – LoG based • Classical - Prewitt • Classical - Sobel
  • 8. Comparisons Operator Advantages Disadvantages Classical (Sobel, prewitt, Kirsch,…) Simplicity, Detection of edges and their orientations Sensitivity to noise, Inaccurate Zero Crossing(Laplacian, Second directional derivative) Detection of edges and their orientations. Having fixed characteristics in all directions Responding to some of the existing edges, Sensitivity to noise Laplacian of Gaussian(LoG) (Marr-Hildreth) Finding the correct places of edges, Testing wider area around the pixel Malfunctioning at the corners, curves and where the gray level intensity function varies. Not finding the orientation of edge because of using the Laplacian filter Gaussian(Canny, Shen-Castan) Using probability for finding error rate, Localization and response. Improving signal to noise ratio, Better detection specially in noise conditions Complex Computations, False zero crossing, Time consuming
  • 10. • Convert a 2D image into a set of curves • Extracts salient features of the scene • More compact than pixels 10
  • 11. Origin of Edges • Edges are caused by a variety of factors depth discontinuity surface color discontinuity illumination discontinuity surface normal discontinuity 11
  • 12. Profiles of image intensity edges 12
  • 13. Edge detection 1. Detection of short linear edge segments (edgels) 2. Aggregation of edgels into extended edges • (maybe parametric description) 13
  • 15. Edge is Where Change Occurs • Change is measured by derivative in 1D • Biggest change, derivative has maximum magnitude • Or 2nd derivative is zero. 15
  • 16. Image gradient • The gradient of an image: • The gradient points in the direction of most rapid change in intensity The gradient direction is given by: • how does this relate to the direction of the edge? The edge strength is given by the gradient magnitude 16
  • 17. The discrete gradient • How can we differentiate a digital image f[x,y]? • Option 1: reconstruct a continuous image, then take gradient • Option 2: take discrete derivative (finite difference) 17
  • 18. The Sobel operator • Better approximations of the derivatives exist • The Sobel operators below are very commonly used -1 0 1 -2 0 2 -1 0 1 1 2 1 0 0 0 -1 -2 -1 • The standard defn. of the Sobel operator omits the 1/8 term – doesn’t make a difference for edge detection – the 1/8 term is needed to get the right gradient value, however 18
  • 19. Gradient operators (a): Roberts’ cross operator (b): 3x3 Prewitt operator (c): Sobel operator (d) 4x4 Prewitt operator 19
  • 20. Effects of noise • Consider a single row or column of the image • Plotting intensity as a function of position gives a signal 20
  • 22. Derivative theorem of convolution • This saves us one operation: 22
  • 23. Laplacian of Gaussian • Consider Laplacian of Gaussian operator 23
  • 24. 2D edge detection filters • is the Laplacian operator: Laplacian of Gaussian Gaussian derivative of Gaussian 24
  • 25. Optimal Edge Detection: Canny • Assume: • Linear filtering • Additive iid Gaussian noise • Edge detector should have: • Good Detection. Filter responds to edge, not noise. • Good Localization: detected edge near true edge. • Single Response: one per edge. 25
  • 26. Optimal Edge Detection: Canny (continued) • Optimal Detector is approximately Derivative of Gaussian. • Detection/Localization trade-off • More smoothing improves detection • And hurts localization. 26
  • 27. The Canny edge detector • original image (Lena) 27
  • 28. The Canny edge detector norm of the gradient 28
  • 29. The Canny edge detector thresholding 29
  • 30. The Canny edge detector thinning (non-maximum suppression) 30
  • 31. Non-maximum suppression • Check if pixel is local maximum along gradient direction • requires checking interpolated pixels p and r 31
  • 32. Predicting the next edge point Assume the marked point is an edge point. Then we construct the tangent to the edge curve (which is normal to the gradient at that point) and use this to predict the next points (here either r or s). (Forsyth & Ponce) 32
  • 33. Hysteresis • Check that maximum value of gradient value is sufficiently large • drop-outs? use hysteresis • use a high threshold to start edge curves and a low threshold to continue them. 33
  • 34. Effect of (Gaussian kernel size) Canny with Canny withoriginal The choice of depends on desired behavior • large detects large scale edges • small detects fine features 34
  • 35. Scale • Smoothing • Eliminates noise edges. • Makes edges smoother. • Removes fine detail. 35
  • 36. 36
  • 40. Scale space • Properties of scale space (w/ Gaussian smoothing) • edge position may shift with increasing scale ( ) • two edges may merge with increasing scale • an edge may not split into two with increasing scale larger Gaussian filtered signal first derivative peaks 40
  • 41. Edge detection by subtraction original 41
  • 42. Edge detection by subtraction smoothed (5x5 Gaussian) 42
  • 43. Edge detection by subtraction smoothed – original (scaled by 4, offset +128) Why does this work? filter demo 43
  • 44. Gaussian - image filter Laplacian of Gaussian Gaussian delta function 44
  • 45. An edge is not a line... 45
  • 46. Finding lines in an image • Option 1: • Search for the line at every possible position/orientation • What is the cost of this operation? • Option 2: • Use a voting scheme: Hough transform 46
  • 47. Finding lines in an image • Connection between image (x,y) and Hough (m,b) spaces • A line in the image corresponds to a point in Hough space • To go from image space to Hough space: • given a set of points (x,y), find all (m,b) such that y = mx + b x y m b m0 b0 image space Hough space 47
  • 48. Finding lines in an image • Connection between image (x,y) and Hough (m,b) spaces • A line in the image corresponds to a point in Hough space • To go from image space to Hough space: • given a set of points (x,y), find all (m,b) such that y = mx + b • What does a point (x0, y0) in the image space map to? x y m b image space Hough space – A: the solutions of b = -x0m + y0 – this is a line in Hough space x0 y0 48
  • 49. Corners contain more edges than lines. • A point on a line is hard to match. Corner detection 49
  • 50. Corners contain more edges than lines. • A corner is easier 50
  • 51. Edge Detectors Tend to Fail at Corners 51
  • 52. Finding Corners Intuition: • Right at corner, gradient is ill defined. • Near corner, gradient has two different values. 52
  • 54. Introduction to Fuzzy Sets • Introduced by A. L. Zadeh (1965) • Fuzzy sets provide the mechanism for dealing with imprecise information • Based and related closely to usage of probability in crisp information. • Provides margin for error and its correction possibilities in both input and output values. • Takes into account full or partial membership and relationship between one value to another.
  • 57. FIS Toolbox in MATLAB
  • 58. Conventional FIS usage in DIP FIS(4Input) Image processor Edge
  • 59. My usage Image Restoration Image Enhancement Noise Removal using LoG FIS OutDIP2 Edge Detection2 DIP 1 Edge detection1 Mat2Gray out1 FIS Image processor FIS Image Processor Edge Out Mat2Gray out Filtration Noise Removal Image enhancement Image restoration
  • 60. FIS 1
  • 64. FIS2