SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Individual Assignment
11. Line Detection of an Image
MCS3108 – IMAGE
PROCESSING AND VISION
U. V Vandebona
13440722
Tools and Techniques Used
 Java
 OpenCV
 HoughLinesP Function
 Canny Operation
 Gaussian Smoothing
Hough Line Transform
 It is a transformation technique used to detect
straight lines.
 To apply the Transform, first an edge detection pre-
processing is desirable.
Line in an Image expressed as…
 Cartesian coordinate system
 Polar coordinate system
For Hough Transforms, we will express lines in
the Polar system
How it Works
θ
r
x
y
Arranging the terms:
How it Works…
 In general, for each point (x0, y0) , we can define the family
of lines that goes through that point as:
 Meaning that each pair (rθ,θ ) represents each line that
passes by (x0, y0)
How it Works…
 If for a given (x0, y0) we plot the family of lines that
goes through it, we get a sine wave.
 For instance, for x0 = 8 and y0 = 6 and we get the
following plot (in a plane coordinates with θ and r)
We consider only points
such that
r > 0 and 0 < θ < 2π
How it Works…
 We can do the same operation above for all the points in
an image.
 If the curves of two different points intersect in the
plane coordinates with θ and r, that means that both
points belong to a same line.
 For instance, following with the example above and
drawing the plot for two more points: x1 = 9, y1 =
4 and x2 = 12, y2 = 3, we get:
The three plots intersect in one single point (0.925, 9.6),
these coordinates are the parameters ( θ, r) or the line in
which (x0, y0) , (x1, y1) and (x2, y2) lay.
So it means…
 A line can be detected by finding the number of
intersections between curves.
 The more curves intersecting means that the line
represented by that intersection have more points.
 In general, we can define a threshold of the
minimum number of intersections needed to detect a
line.
Hough Line Transform
 It keeps track of the intersection between curves of
every point in the image.
 If the number of intersections is above
some threshold, then it declares it as a line with the
parameters ( θ, rθ) of the intersection point.
Application
1. Loads an image
2. (Optional) Convert to grayscale
3. (Optional) Blur Image
 Gaussian Smoothening
4. Edge Detection
 Canny Operation
5. Line Detection
 Hough Line Transformation
Application

More Related Content

PDF
Image Segmentation
PDF
Image processing, Noise, Noise Removal filters
PPTX
Hough Transform By Md.Nazmul Islam
PPTX
Chapter 9 morphological image processing
PPTX
Edge detection
PPSX
Edge Detection and Segmentation
PPSX
Color Image Processing: Basics
Image Segmentation
Image processing, Noise, Noise Removal filters
Hough Transform By Md.Nazmul Islam
Chapter 9 morphological image processing
Edge detection
Edge Detection and Segmentation
Color Image Processing: Basics

What's hot (20)

PPT
ImageProcessing10-Segmentation(Thresholding) (1).ppt
PPTX
Unit3 dip
PPT
Back propagation
PPSX
Image Processing: Spatial filters
PDF
Digital Image Fundamentals
PPTX
Histogram Processing
PPTX
Log Transformation in Image Processing with Example
PPTX
Image Enhancement in Spatial Domain
PPTX
Region based segmentation
PDF
Region Splitting and Merging Technique For Image segmentation.
PPTX
Image enhancement lecture
PPTX
Spatial Filters (Digital Image Processing)
PPTX
Image feature extraction
PPTX
Color Models.pptx
PDF
Digital Image Processing - Image Enhancement
PPTX
Color Image Processing
PPTX
Image Filtering in the Frequency Domain
PPTX
Image Sampling and Quantization.pptx
PPT
Enhancement in spatial domain
ImageProcessing10-Segmentation(Thresholding) (1).ppt
Unit3 dip
Back propagation
Image Processing: Spatial filters
Digital Image Fundamentals
Histogram Processing
Log Transformation in Image Processing with Example
Image Enhancement in Spatial Domain
Region based segmentation
Region Splitting and Merging Technique For Image segmentation.
Image enhancement lecture
Spatial Filters (Digital Image Processing)
Image feature extraction
Color Models.pptx
Digital Image Processing - Image Enhancement
Color Image Processing
Image Filtering in the Frequency Domain
Image Sampling and Quantization.pptx
Enhancement in spatial domain
Ad

Similar to Line Detection (20)

PPTX
dip.pptx
PPTX
Line Detection using Hough transform .pptx
PPTX
Edge Detection using Hough Transform
PPT
hough.edv;lrtgkmbopp4tyol;trmgkoperitgbkbkevppt
PDF
Implementation_of_Hough_Transform_for_image_processing_applications.pdf
PPTX
Basics of Linear Hough Transform
PDF
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
PPTX
09 cie552 image_featuresi
PDF
line and circle detection using hough transform
PPT
Edge linking via Hough transform.ppt
PDF
A Hough Transform Implementation for Line Detection for a Mobile Robot Self-N...
PDF
F017663344
DOC
图像分割算法基础
PDF
Robust and real time detection of
PDF
Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...
PPTX
image segmentation image segmentation.pptx
PPT
cv1.ppt
PPTX
Line Detection in Computer Vision
PPTX
Lane detection by use of canny edge
PPTX
Line Detection in Computer Vision - Recent Developments and Applications
dip.pptx
Line Detection using Hough transform .pptx
Edge Detection using Hough Transform
hough.edv;lrtgkmbopp4tyol;trmgkoperitgbkbkevppt
Implementation_of_Hough_Transform_for_image_processing_applications.pdf
Basics of Linear Hough Transform
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
09 cie552 image_featuresi
line and circle detection using hough transform
Edge linking via Hough transform.ppt
A Hough Transform Implementation for Line Detection for a Mobile Robot Self-N...
F017663344
图像分割算法基础
Robust and real time detection of
Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...
image segmentation image segmentation.pptx
cv1.ppt
Line Detection in Computer Vision
Lane detection by use of canny edge
Line Detection in Computer Vision - Recent Developments and Applications
Ad

More from Upekha Vandebona (20)

PPTX
Software Engineering Ethics
PPTX
Need for Software Engineering
PPTX
Characteristics of Software
PPTX
Introduction to Software Engineering
PPTX
Porter Forces and eBusiness Models
PPTX
Porter Forces and eBusiness Strategies
PPTX
Revenue Models for e-Business on The Web
PPTX
Michael Porter’s Five Forces
PPTX
eCommerce Business Strategies
PPTX
Supply Chain Management, Customer Relationship Management and Knowledge Manag...
PPTX
eBusiness Roadmap
PPTX
eBusiness Environment
PPTX
Direct to Customer Interaction through eBusiness
PPTX
eBusiness Benefits and Issues
PPTX
Orientation of eBusiness Applications
PPTX
Professional and Ethical, Issues and Responsibilities
PPTX
Privacy and Civil Liberties
PPTX
Organizational Context - Processes
PPTX
Professional Communication in Computing - Writing
PPTX
Professional Communication in Computing
Software Engineering Ethics
Need for Software Engineering
Characteristics of Software
Introduction to Software Engineering
Porter Forces and eBusiness Models
Porter Forces and eBusiness Strategies
Revenue Models for e-Business on The Web
Michael Porter’s Five Forces
eCommerce Business Strategies
Supply Chain Management, Customer Relationship Management and Knowledge Manag...
eBusiness Roadmap
eBusiness Environment
Direct to Customer Interaction through eBusiness
eBusiness Benefits and Issues
Orientation of eBusiness Applications
Professional and Ethical, Issues and Responsibilities
Privacy and Civil Liberties
Organizational Context - Processes
Professional Communication in Computing - Writing
Professional Communication in Computing

Recently uploaded (20)

PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Pharma ospi slides which help in ospi learning
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
O5-L3 Freight Transport Ops (International) V1.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pharma ospi slides which help in ospi learning
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf

Line Detection

  • 1. Individual Assignment 11. Line Detection of an Image MCS3108 – IMAGE PROCESSING AND VISION U. V Vandebona 13440722
  • 2. Tools and Techniques Used  Java  OpenCV  HoughLinesP Function  Canny Operation  Gaussian Smoothing
  • 3. Hough Line Transform  It is a transformation technique used to detect straight lines.  To apply the Transform, first an edge detection pre- processing is desirable.
  • 4. Line in an Image expressed as…  Cartesian coordinate system  Polar coordinate system For Hough Transforms, we will express lines in the Polar system
  • 6. How it Works…  In general, for each point (x0, y0) , we can define the family of lines that goes through that point as:  Meaning that each pair (rθ,θ ) represents each line that passes by (x0, y0)
  • 7. How it Works…  If for a given (x0, y0) we plot the family of lines that goes through it, we get a sine wave.  For instance, for x0 = 8 and y0 = 6 and we get the following plot (in a plane coordinates with θ and r) We consider only points such that r > 0 and 0 < θ < 2π
  • 8. How it Works…  We can do the same operation above for all the points in an image.  If the curves of two different points intersect in the plane coordinates with θ and r, that means that both points belong to a same line.  For instance, following with the example above and drawing the plot for two more points: x1 = 9, y1 = 4 and x2 = 12, y2 = 3, we get:
  • 9. The three plots intersect in one single point (0.925, 9.6), these coordinates are the parameters ( θ, r) or the line in which (x0, y0) , (x1, y1) and (x2, y2) lay.
  • 10. So it means…  A line can be detected by finding the number of intersections between curves.  The more curves intersecting means that the line represented by that intersection have more points.  In general, we can define a threshold of the minimum number of intersections needed to detect a line.
  • 11. Hough Line Transform  It keeps track of the intersection between curves of every point in the image.  If the number of intersections is above some threshold, then it declares it as a line with the parameters ( θ, rθ) of the intersection point.
  • 12. Application 1. Loads an image 2. (Optional) Convert to grayscale 3. (Optional) Blur Image  Gaussian Smoothening 4. Edge Detection  Canny Operation 5. Line Detection  Hough Line Transformation