SlideShare a Scribd company logo
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 1/13
10.2.7 Edge linking and boundary detection
Edge detection is always followed by edge linking
Local processing
• Analyze pixels in small neighbourhood Sxy of each edge point
• Pixels that are similar are linked
• Principal properties used for establishing similarity:
(1) M(x, y) = |∇f(x, y)|: Magnitude of gradient vector
(2) α(x, y): Direction of gradient vector
• Edge pixel with coordinates (s, t) in Sxy is similar in magnitude to pixel at
(x, y) if
|M(s, t) − M(x, y)| < E
• Edge pixel with coordinates (s, t) in Sxy has an angle similar to pixel at
(x, y) if
|α(s, t) − α(x, y)| < A
• Edge pixel (s, t) in Sxy is linked with (x, y) if both criteria are satisfied
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 2/13
The above strategy is expensive. A record has to be kept of all linked points
by, for example, assigning a different label to every set of linked points
Simplification suitable for real-time applications:
(1) Compute M(x, y) and α(x, y) of input image f(x, y)
(2) Form binary image
g(x, y) =

1, if M(x, y)  TM AND α(x, y) ∈ [A − TA, A + TA]
0, otherwise
(3) Scan rows of g and fill (set to 1) all gaps (sets of 0s) in each row that
do not exceed a specified length K
(4) Rotate g by θ and apply step (3). Rotate result back by −θ.
Image rotation is expensive ⇒ when linking in numerous directions is re-
quired, steps (3) and (4) are combined into a single, radial scanning proce-
dure.
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 3/13
Example 10.10:
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 4/13
Regional processing (Polygonal approximations)
A conceptual understanding of this idea is sufficient
Requirements: (1) Two starting points must be specified; (2) All the points
must be ordered
Large distance between successive points, relative to the distance between
other points ⇒ boundary segment (open curve) ⇒ end points used as start-
ing points
Seperation between points uniform ⇒ boundary (closed curve) ⇒ extreme
points used as starting points
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 5/13
Example 10.11: Edge linking using polygonal approximation
Example 10.12: (READ)
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 6/13
Global Processing using the Hough transform
• We attempt to link edge pixels that lie on specified curves
• Brute force method:
When the specified curve is a straight line, the line between each pair of
edge pixels in the image is considered. The distance between every other
edge pixel and the line in question is then calculated.
When the distance is less than a specified threshold, the pixel is considered
to be part of the line
Number of calculations for n edge pixels:
Number of possible lines:
n−1
k=1 k = n(n−1)
2 ≈ n2
Distances per line: n
Total number of distances: n2(n−1)
2 ≈ n3
When n = 2562
then number of calculations is 1.4 × 1014
!!!
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 7/13
• Hough transform (1962)
When different values for a and b are considered, yi = axi+b gives all possible
lines through the point (xi, yi)
The equation b = −xia+yi gives one line in the ab-plane for a specific (xi, yi)
When another point (xj, yj) is considered, b = −xja + yj represents another
line in the ab-plane
Suppose that these two lines intersect at the point (a′
, b′
), then y = a′
x + b′
represents the line in the xy-plane on which both (xi, yi) and (xj, yj) lie
Since a computer can only deal with a finite number of straight lines, we
subdivide the parameter space ab into a finite number of accumulator cells...
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 8/13
(Fig from Ed 2) − − − − − − − 
Algorithm:
(1) Set all cells equal to zero
(2) For every (xk, yk)
(2.1) Let a = every subdivision on the a-axis
(2.2) Calculate b = −xka + yk
(2.3) Round off b to the nearest allotted value on the b-axis
(2.4) Increment accumulator cell (a, b) with 1
Note: When there are K subdivisions on the a-axis, we need only nK
calculations, which is linear (recall that we needed n3
calculations for the
brute force method)
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 9/13
We still have a problem though, since −∞  a  ∞ and −∞  b  ∞!
In order to deal with this problem, we now represent a straight line as follows
x cos θ + y sin θ = ρ
so that (a, b) → (ρ, θ)
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 10/13
Derivation: y = ax + b
b
ρ
= csc θ =
1
sin θ
b = ρ csc θ
a = −
1
tan θ
(negative reciprocal)
= −
cos θ
sin θ
y = −
cos θ
sin θ
x + ρ csc θ ⇒ y sin θ = −x cos θ + ρ ⇒ x cos θ + y sin θ = ρ
Now we have that ρ ∈ [−
√
2D,
√
2D] and θ ∈ [−90o, 90o], where
√
2D is
the diagonal distance between two opposite corners in the image. Problem
solved!
Algorithm:
(1) Set all cells equal to zero
(2) For every (xk, yk)
(2.1) Let θ = every subdivision on the θ-axis
(2.2) Calculate ρ = xk cos θ + yk sin θ
(2.3) Round off ρ to the nearest allotted value on the ρ-axis
(2.4) Increment accumulator cell (ρ, θ) with 1
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 11/13
Example 10.13: Illustration of Hough transform properties
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 12/13
Algorithm for edge linking:
(1) Compute |∇f| and isolate edge pixels through thresholding
(2) Specify subdivisions in the ρθ-plane
(3) Apply Hough transform to edge pixels
(4) Identify accumulator cells with highest values
(5) Examine continuity of pixels that constitute cell
(6) Link these pixels if gaps are smaller than threshold
Extension to more general graphs
• Hough transform applicable to any graph g(v, c) = 0, where v is vector of
coordinates and c is vector of coefficients
• Example: Find the points that lie on a circle
(x − c1)2
+ (y − c2)2
= c2
3
The presence of three parameters (c1, c2 and c3) results in a 3-D parameter
space with cubelike cells and accumulators of the form A(i, j, k)!
Afdeling Toegepaste Wiskunde / Division of Applied Mathematics
Image segmentation (10.2.7) SLIDE 13/13
Example 10.14: Using the Hough transform for edge linking

More Related Content

What's hot

Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
anam singla
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
BCET, Balasore
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
DHIVYADEVAKI
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
ramya marichamy
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
Rashmi Karkra
 
Lecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard TransformLecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard Transform
VARUN KUMAR
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
Omar Ghazi
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
Gautam Saxena
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processing
PremaPRC211300301103
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
NikhilBanerjee7
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
 
Walsh transform
Walsh transformWalsh transform
Walsh transform
SachinMaithani1
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iAli Hassan
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
vijayanand Kandaswamy
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
priyadharshini murugan
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
Kalyan Acharjya
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
AnupriyaDurai
 

What's hot (20)

Image segmentation
Image segmentationImage segmentation
Image segmentation
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
 
Lecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard TransformLecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard Transform
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processing
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Walsh transform
Walsh transformWalsh transform
Walsh transform
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain i
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 

Similar to Edge linking hough transform

Output primitives computer graphics c version
Output primitives   computer graphics c versionOutput primitives   computer graphics c version
Output primitives computer graphics c version
Marwa Al-Rikaby
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
aravindangc
 
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
csandit
 
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
cscpconf
 
Computer graphics notes 2 tutorials duniya
Computer graphics notes 2   tutorials duniyaComputer graphics notes 2   tutorials duniya
Computer graphics notes 2 tutorials duniya
TutorialsDuniya.com
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
Mattupallipardhu
 
PART I.3 - Physical Mathematics
PART I.3 - Physical MathematicsPART I.3 - Physical Mathematics
PART I.3 - Physical Mathematics
Maurice R. TREMBLAY
 
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEAU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
Thiyagarajan G
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
SanthiNivas
 
cheb_conf_aksenov.pdf
cheb_conf_aksenov.pdfcheb_conf_aksenov.pdf
cheb_conf_aksenov.pdf
Alexey Vasyukov
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machinenozomuhamada
 
CS 354 More Graphics Pipeline
CS 354 More Graphics PipelineCS 354 More Graphics Pipeline
CS 354 More Graphics Pipeline
Mark Kilgard
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
MDRAKIB180107
 
Math behind the kernels
Math behind the kernelsMath behind the kernels
Math behind the kernels
Revanth Kumar
 
Computer graphics 2
Computer graphics 2Computer graphics 2
Computer graphics 2
Prabin Gautam
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
MadhuriMulik1
 
Numerical Analysis Assignment Help
Numerical Analysis Assignment HelpNumerical Analysis Assignment Help
Numerical Analysis Assignment Help
Maths Assignment Help
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsKasun Ranga Wijeweera
 

Similar to Edge linking hough transform (20)

Output primitives computer graphics c version
Output primitives   computer graphics c versionOutput primitives   computer graphics c version
Output primitives computer graphics c version
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
 
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
 
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
STATE SPACE GENERATION FRAMEWORK BASED ON BINARY DECISION DIAGRAM FOR DISTRIB...
 
paper
paperpaper
paper
 
Computer graphics notes 2 tutorials duniya
Computer graphics notes 2   tutorials duniyaComputer graphics notes 2   tutorials duniya
Computer graphics notes 2 tutorials duniya
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
 
PART I.3 - Physical Mathematics
PART I.3 - Physical MathematicsPART I.3 - Physical Mathematics
PART I.3 - Physical Mathematics
 
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEAU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
cheb_conf_aksenov.pdf
cheb_conf_aksenov.pdfcheb_conf_aksenov.pdf
cheb_conf_aksenov.pdf
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine
 
CS 354 More Graphics Pipeline
CS 354 More Graphics PipelineCS 354 More Graphics Pipeline
CS 354 More Graphics Pipeline
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
 
Math behind the kernels
Math behind the kernelsMath behind the kernels
Math behind the kernels
 
Computer graphics 2
Computer graphics 2Computer graphics 2
Computer graphics 2
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Numerical Analysis Assignment Help
Numerical Analysis Assignment HelpNumerical Analysis Assignment Help
Numerical Analysis Assignment Help
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of Points
 

Recently uploaded

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
Nettur Technical Training Foundation
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 

Recently uploaded (20)

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 

Edge linking hough transform

  • 1. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 1/13 10.2.7 Edge linking and boundary detection Edge detection is always followed by edge linking Local processing • Analyze pixels in small neighbourhood Sxy of each edge point • Pixels that are similar are linked • Principal properties used for establishing similarity: (1) M(x, y) = |∇f(x, y)|: Magnitude of gradient vector (2) α(x, y): Direction of gradient vector • Edge pixel with coordinates (s, t) in Sxy is similar in magnitude to pixel at (x, y) if |M(s, t) − M(x, y)| < E • Edge pixel with coordinates (s, t) in Sxy has an angle similar to pixel at (x, y) if |α(s, t) − α(x, y)| < A • Edge pixel (s, t) in Sxy is linked with (x, y) if both criteria are satisfied
  • 2. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 2/13 The above strategy is expensive. A record has to be kept of all linked points by, for example, assigning a different label to every set of linked points Simplification suitable for real-time applications: (1) Compute M(x, y) and α(x, y) of input image f(x, y) (2) Form binary image g(x, y) = 1, if M(x, y) TM AND α(x, y) ∈ [A − TA, A + TA] 0, otherwise (3) Scan rows of g and fill (set to 1) all gaps (sets of 0s) in each row that do not exceed a specified length K (4) Rotate g by θ and apply step (3). Rotate result back by −θ. Image rotation is expensive ⇒ when linking in numerous directions is re- quired, steps (3) and (4) are combined into a single, radial scanning proce- dure.
  • 3. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 3/13 Example 10.10:
  • 4. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 4/13 Regional processing (Polygonal approximations) A conceptual understanding of this idea is sufficient Requirements: (1) Two starting points must be specified; (2) All the points must be ordered Large distance between successive points, relative to the distance between other points ⇒ boundary segment (open curve) ⇒ end points used as start- ing points Seperation between points uniform ⇒ boundary (closed curve) ⇒ extreme points used as starting points
  • 5. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 5/13 Example 10.11: Edge linking using polygonal approximation Example 10.12: (READ)
  • 6. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 6/13 Global Processing using the Hough transform • We attempt to link edge pixels that lie on specified curves • Brute force method: When the specified curve is a straight line, the line between each pair of edge pixels in the image is considered. The distance between every other edge pixel and the line in question is then calculated. When the distance is less than a specified threshold, the pixel is considered to be part of the line Number of calculations for n edge pixels: Number of possible lines: n−1 k=1 k = n(n−1) 2 ≈ n2 Distances per line: n Total number of distances: n2(n−1) 2 ≈ n3 When n = 2562 then number of calculations is 1.4 × 1014 !!!
  • 7. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 7/13 • Hough transform (1962) When different values for a and b are considered, yi = axi+b gives all possible lines through the point (xi, yi) The equation b = −xia+yi gives one line in the ab-plane for a specific (xi, yi) When another point (xj, yj) is considered, b = −xja + yj represents another line in the ab-plane Suppose that these two lines intersect at the point (a′ , b′ ), then y = a′ x + b′ represents the line in the xy-plane on which both (xi, yi) and (xj, yj) lie Since a computer can only deal with a finite number of straight lines, we subdivide the parameter space ab into a finite number of accumulator cells...
  • 8. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 8/13 (Fig from Ed 2) − − − − − − − Algorithm: (1) Set all cells equal to zero (2) For every (xk, yk) (2.1) Let a = every subdivision on the a-axis (2.2) Calculate b = −xka + yk (2.3) Round off b to the nearest allotted value on the b-axis (2.4) Increment accumulator cell (a, b) with 1 Note: When there are K subdivisions on the a-axis, we need only nK calculations, which is linear (recall that we needed n3 calculations for the brute force method)
  • 9. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 9/13 We still have a problem though, since −∞ a ∞ and −∞ b ∞! In order to deal with this problem, we now represent a straight line as follows x cos θ + y sin θ = ρ so that (a, b) → (ρ, θ)
  • 10. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 10/13 Derivation: y = ax + b b ρ = csc θ = 1 sin θ b = ρ csc θ a = − 1 tan θ (negative reciprocal) = − cos θ sin θ y = − cos θ sin θ x + ρ csc θ ⇒ y sin θ = −x cos θ + ρ ⇒ x cos θ + y sin θ = ρ Now we have that ρ ∈ [− √ 2D, √ 2D] and θ ∈ [−90o, 90o], where √ 2D is the diagonal distance between two opposite corners in the image. Problem solved! Algorithm: (1) Set all cells equal to zero (2) For every (xk, yk) (2.1) Let θ = every subdivision on the θ-axis (2.2) Calculate ρ = xk cos θ + yk sin θ (2.3) Round off ρ to the nearest allotted value on the ρ-axis (2.4) Increment accumulator cell (ρ, θ) with 1
  • 11. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 11/13 Example 10.13: Illustration of Hough transform properties
  • 12. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 12/13 Algorithm for edge linking: (1) Compute |∇f| and isolate edge pixels through thresholding (2) Specify subdivisions in the ρθ-plane (3) Apply Hough transform to edge pixels (4) Identify accumulator cells with highest values (5) Examine continuity of pixels that constitute cell (6) Link these pixels if gaps are smaller than threshold Extension to more general graphs • Hough transform applicable to any graph g(v, c) = 0, where v is vector of coordinates and c is vector of coefficients • Example: Find the points that lie on a circle (x − c1)2 + (y − c2)2 = c2 3 The presence of three parameters (c1, c2 and c3) results in a 3-D parameter space with cubelike cells and accumulators of the form A(i, j, k)!
  • 13. Afdeling Toegepaste Wiskunde / Division of Applied Mathematics Image segmentation (10.2.7) SLIDE 13/13 Example 10.14: Using the Hough transform for edge linking