SlideShare una empresa de Scribd logo
1 de 30
Department of Electronics and
Communication Engineering
EC6421D Digital Image ProcessingTechniques
Mini Project
Naman Jain(M220327EC)
Shubham loni(M220305EC)
Line detection through Hough transform
Contents
 Introduction
 Process of line detection
 Canny edge detector
 Flow chart of canny edge detector
 Hough Concept
 Flow chart of Hough transform
 Output
 Applications
 Examples
 References
INTRODUCTION
 Can we fit lines, circles, ellipse or any other shape to link the edges?
 “YES”.
 The Hough transform is basically used for extracting feature from
the image such as outlining , boundary , corners present in the
image.
 The key idea of Hough transform is that if two edges points lay on
the same line, their corresponding cosine curves or lines will
intersect each other on a specific parametric plane.
Input
image
Edge
detection
Hough
transform
Output
Image
Process of Line Detection
Canny Edge Detector
 The Canny edge detector is an edge detection method that has
multistage algorithm to detect the wide range of edges in an image
 It was developed by John F. Canny in 1986.
 Canny edge detection is a technique to extract useful structural
information from different vision objects and dramatically reduce the
amount of data to be processed.
 It has been widely applied in various computer visionsystems.
Flow chart of canny edge detector
• Using Gaussian operator
Noise Reduction
• Using Sobel operator
Edge detection
Non – maximum suppression
Double Thresholding
Hysteresis Edge tracking
Noise Reduction :
 It is basically a smoothing technique.
 In an image noise consist of sharp transition in intensity
 To eliminate those noise spatial filters are used such as box filter , weighted averages and
Gaussian filter.
 Gaussian smoothing is widely used.
Edge detection:
 The Gradient operator is used . Mag(img)
Phase (img)
Non-maximum suppression:
 Original phase is Quantize into one of the four different phases.
 Go in the direction specified by the gradient ,then check the
neighbouring pixel .
 If lower then the centre pixel then treated as edge.
Double Thresholding and Hysteresis:
 Here we are taking Double Thresholding instead of standard way of
threshold.
 The double threshold step aims at identifying 3 kind of pixels :strong
,weak and non relevant .
 Strong:- pixels having intensities so high that they are surely
contribute to final edge.
 Weak:- pixels having intensities so low , that is not enough to be
consider as strong ones but yet not small enough to be consider non-
relevant to be an edge.
 Other pixels are consider to be non-relevant to the edge.
Canny Edge Image
Hough Transform
• Elegant method for direct object recognition
• Edges need not be connected
• Complete object need not be visible
• Key Idea: Edges VOTE for the possible model
Flow chart of Hough transform:
Input Edge image
Mapping edge points to parametric space
Creating ACUMULATOR
Find the point with maximum voting
Detection of Line
Hough Transform: Concept
Line Grouping Problem
The Straight Line
(x1,y1)
(x2,y2)
• For each point (x , y) in the line the following
equation applies:
• Therefore:
𝑦 = 𝑚 ⋅ 𝑥 + 𝑐
Multiple Lines over a single point
 Each pair (m , b) defines a
distinct straight line
containing the point (x,y)
(x,y)
y=m1x+b1
y=m2x+b2
y=m3x+b3
y=m4x+b4
The Parameter Plane
 Each point in the (x,y)
space(image plane) is mapped
to a straight line in the (m ,b)
space (parameter plane).
 A straight line in the (x,y)
space (image plane) is
mapped to the intersection
point of the lines
corresponding to its points, in
the (m.b) space (parameter
plane).
b =-mx1+y1
(x1,y1)
(x2,y2)
(x3,y3)
b =-mx3+y3
b =-mx2+y2
The Accumulator Concept
 The (m.b) space (parameter
plane) is subdivided in
cells.
 Each pixel (x,y) in the
original image vote in the
(m, b) space for each line
passing through it.
 The votes are summed in an
Accumulator
m
mmin mmax
b1
m1
N
Corresponds to a straight line
y=m1x+b1
of N pixels length
b
The Motivation for Polar Coordinates
 Vertical lines cannot be mapped
to the (m,b) space, since:
 Vertical lines can be described
using polar coordinates :
x = r
r
?



b
m
xcos0 + ysin0 = r
Using Polar Coordinates
• For each point (x,y) in
the line the following
equation applies:
• In particular: (x1,y1)
(x2,y2)
r
θ






sin
cos
sin
cos
sin
cos
2
2
1
1
y
x
r
y
x
r
y
x
r







 sin
cos y
x
r 

r = x · cos θ + y · sin θ
For given point (0,2) , (2,0), (1,1)
Input Image Output Image
Output
Examples
Applications
 It is widely used in feature extraction (shapes of the objects).
 Another big advantage is used for the building-edge extraction.
 It can extract the lines even through the noisy data.
 By the Hough transform, we can detect the missing lines which are
broken while detecting edge image.
 We can use it in lane detection of the road.
REFRENCE
 Names: Gonzalez, Rafael C., author. | Woods, Richard E. (Richard Eugene), author
 Wikipedia, Internet search
 https://ieeexplore.ieee.org/document/6949962 DOI :- 10.1109/ICCSP.2014.6949962
 https://ieeexplore.ieee.org/document/9422200 DOI :- 10.1109/TPAMI.2021.3077129
Thank You

Más contenido relacionado

La actualidad más candente

Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSACWael Badawy
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Image representation
Image representationImage representation
Image representationRahul Dadwal
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.pptshankar64
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Digital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainDigital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainMostafa G. M. Mostafa
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processingData Science Thailand
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab Amr Rashed
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
 

La actualidad más candente (20)

Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSAC
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Image representation
Image representationImage representation
Image representation
 
Perception
PerceptionPerception
Perception
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
fractals
fractalsfractals
fractals
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
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
 
Otsu binarization
Otsu binarizationOtsu binarization
Otsu binarization
 
Digital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainDigital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial Domain
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 

Similar a Line Detection using Hough transform .pptx

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).pdfvikasmittal92
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptxNaveenKumar5162
 
Image segmentation
Image segmentationImage segmentation
Image segmentationRania H
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresiElsayed Hemayed
 
47549379 paper-on-image-processing
47549379 paper-on-image-processing47549379 paper-on-image-processing
47549379 paper-on-image-processingmaisali4
 
02_atiqa ijaz khan_05_2014
02_atiqa ijaz khan_05_201402_atiqa ijaz khan_05_2014
02_atiqa ijaz khan_05_2014Atiqa khan
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptxmohan134666
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methodssujeeshkumarj
 
Digital image processing
Digital image processingDigital image processing
Digital image processingChetan Hulsure
 
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUESA STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUEScscpconf
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptxMruthyunjayaS
 
Research Paper v2.0
Research Paper v2.0Research Paper v2.0
Research Paper v2.0Kapil Tiwari
 
Practical Digital Image Processing 2
Practical Digital Image Processing 2Practical Digital Image Processing 2
Practical Digital Image Processing 2Aly Abdelkareem
 
Sliced Ridgelet Transform for Image Denoising
Sliced Ridgelet Transform for Image DenoisingSliced Ridgelet Transform for Image Denoising
Sliced Ridgelet Transform for Image DenoisingIOSR Journals
 
Image segmentation methods for brain mri images
Image segmentation methods for brain mri imagesImage segmentation methods for brain mri images
Image segmentation methods for brain mri imageseSAT Journals
 
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKS
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKSFACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKS
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKSijaia
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Editor IJARCET
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Editor IJARCET
 

Similar a Line Detection using Hough transform .pptx (20)

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 image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresi
 
Lect14 lines+circles
Lect14 lines+circlesLect14 lines+circles
Lect14 lines+circles
 
47549379 paper-on-image-processing
47549379 paper-on-image-processing47549379 paper-on-image-processing
47549379 paper-on-image-processing
 
02_atiqa ijaz khan_05_2014
02_atiqa ijaz khan_05_201402_atiqa ijaz khan_05_2014
02_atiqa ijaz khan_05_2014
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUESA STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
 
cv1.ppt
cv1.pptcv1.ppt
cv1.ppt
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptx
 
Research Paper v2.0
Research Paper v2.0Research Paper v2.0
Research Paper v2.0
 
Practical Digital Image Processing 2
Practical Digital Image Processing 2Practical Digital Image Processing 2
Practical Digital Image Processing 2
 
Sliced Ridgelet Transform for Image Denoising
Sliced Ridgelet Transform for Image DenoisingSliced Ridgelet Transform for Image Denoising
Sliced Ridgelet Transform for Image Denoising
 
Image segmentation methods for brain mri images
Image segmentation methods for brain mri imagesImage segmentation methods for brain mri images
Image segmentation methods for brain mri images
 
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKS
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKSFACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKS
FACE RECOGNITION ALGORITHM BASED ON ORIENTATION HISTOGRAM OF HOUGH PEAKS
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
 

Último

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 

Line Detection using Hough transform .pptx

  • 1. Department of Electronics and Communication Engineering EC6421D Digital Image ProcessingTechniques Mini Project Naman Jain(M220327EC) Shubham loni(M220305EC) Line detection through Hough transform
  • 2. Contents  Introduction  Process of line detection  Canny edge detector  Flow chart of canny edge detector  Hough Concept  Flow chart of Hough transform  Output  Applications  Examples  References
  • 3. INTRODUCTION  Can we fit lines, circles, ellipse or any other shape to link the edges?  “YES”.  The Hough transform is basically used for extracting feature from the image such as outlining , boundary , corners present in the image.  The key idea of Hough transform is that if two edges points lay on the same line, their corresponding cosine curves or lines will intersect each other on a specific parametric plane.
  • 5. Canny Edge Detector  The Canny edge detector is an edge detection method that has multistage algorithm to detect the wide range of edges in an image  It was developed by John F. Canny in 1986.  Canny edge detection is a technique to extract useful structural information from different vision objects and dramatically reduce the amount of data to be processed.  It has been widely applied in various computer visionsystems.
  • 6. Flow chart of canny edge detector • Using Gaussian operator Noise Reduction • Using Sobel operator Edge detection Non – maximum suppression Double Thresholding Hysteresis Edge tracking
  • 7. Noise Reduction :  It is basically a smoothing technique.  In an image noise consist of sharp transition in intensity  To eliminate those noise spatial filters are used such as box filter , weighted averages and Gaussian filter.  Gaussian smoothing is widely used.
  • 8. Edge detection:  The Gradient operator is used . Mag(img) Phase (img)
  • 9. Non-maximum suppression:  Original phase is Quantize into one of the four different phases.  Go in the direction specified by the gradient ,then check the neighbouring pixel .  If lower then the centre pixel then treated as edge.
  • 10. Double Thresholding and Hysteresis:  Here we are taking Double Thresholding instead of standard way of threshold.  The double threshold step aims at identifying 3 kind of pixels :strong ,weak and non relevant .  Strong:- pixels having intensities so high that they are surely contribute to final edge.  Weak:- pixels having intensities so low , that is not enough to be consider as strong ones but yet not small enough to be consider non- relevant to be an edge.  Other pixels are consider to be non-relevant to the edge.
  • 12. Hough Transform • Elegant method for direct object recognition • Edges need not be connected • Complete object need not be visible • Key Idea: Edges VOTE for the possible model
  • 13. Flow chart of Hough transform: Input Edge image Mapping edge points to parametric space Creating ACUMULATOR Find the point with maximum voting Detection of Line
  • 16. The Straight Line (x1,y1) (x2,y2) • For each point (x , y) in the line the following equation applies: • Therefore: 𝑦 = 𝑚 ⋅ 𝑥 + 𝑐
  • 17. Multiple Lines over a single point  Each pair (m , b) defines a distinct straight line containing the point (x,y) (x,y) y=m1x+b1 y=m2x+b2 y=m3x+b3 y=m4x+b4
  • 18. The Parameter Plane  Each point in the (x,y) space(image plane) is mapped to a straight line in the (m ,b) space (parameter plane).  A straight line in the (x,y) space (image plane) is mapped to the intersection point of the lines corresponding to its points, in the (m.b) space (parameter plane). b =-mx1+y1 (x1,y1) (x2,y2) (x3,y3) b =-mx3+y3 b =-mx2+y2
  • 19. The Accumulator Concept  The (m.b) space (parameter plane) is subdivided in cells.  Each pixel (x,y) in the original image vote in the (m, b) space for each line passing through it.  The votes are summed in an Accumulator m mmin mmax b1 m1 N Corresponds to a straight line y=m1x+b1 of N pixels length b
  • 20. The Motivation for Polar Coordinates  Vertical lines cannot be mapped to the (m,b) space, since:  Vertical lines can be described using polar coordinates : x = r r ?    b m xcos0 + ysin0 = r
  • 21. Using Polar Coordinates • For each point (x,y) in the line the following equation applies: • In particular: (x1,y1) (x2,y2) r θ       sin cos sin cos sin cos 2 2 1 1 y x r y x r y x r         sin cos y x r  
  • 22. r = x · cos θ + y · sin θ For given point (0,2) , (2,0), (1,1)
  • 23. Input Image Output Image Output
  • 25. Applications  It is widely used in feature extraction (shapes of the objects).  Another big advantage is used for the building-edge extraction.  It can extract the lines even through the noisy data.  By the Hough transform, we can detect the missing lines which are broken while detecting edge image.  We can use it in lane detection of the road.
  • 26.
  • 27.
  • 28.
  • 29. REFRENCE  Names: Gonzalez, Rafael C., author. | Woods, Richard E. (Richard Eugene), author  Wikipedia, Internet search  https://ieeexplore.ieee.org/document/6949962 DOI :- 10.1109/ICCSP.2014.6949962  https://ieeexplore.ieee.org/document/9422200 DOI :- 10.1109/TPAMI.2021.3077129