《图像处理与计算机视觉 Image Processing and Computer Vision》课程教学资源(PPT课件讲稿)Chapter 05 Hough transform

Image processing and computer vision Chapter 5: Hough transform Hough transform vo.b
Image processing and computer vision Chapter 5: Hough transform Hough transform v0.b 1

<Introduction Line detection I circle detection I irregular shape detection Overview What is the problem? a method to fit a line for a set of features Why traditional methods are poor? Need a different formulation for different line types(i.e. line, curve cIrcle How to do it? We will discuss the basic algorithm for lines circles ellipse We will extend it to any line types Using the Generalized Hough transform e http:/en.wikipedia.org/wiki/houghtransform Lecture notes by Instructor S Narasimhan Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection Overview • What is the problem? – A method to fit a line for a set of features. • Why traditional methods are poor? – Need a different formulation for different line types (i.e., line, curve, circle…) • How to do it? – We will discuss the basic algorithm for lines, circles, ellipse. • We will extend it to any line types. – Using the Generalized Hough transform • Ref – http://en.wikipedia.org/wiki/Hough_transform – Lecture notes by Instructor: S. Narasimhan Hough transform v0.b 2

<Introduction Line detection I circle detection I irregular shape detection The problem Fit a curve, line, circle or ellipse to a set of edge points Traditⅰona| method (x2y) y=mx+c Energy minimization by Calculus. Features are found by edge detection ★☆ Fit a curve a circle an ellipse nx.-C or a line which has minimum y distances from the edges Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection The problem • Fit a curve , line, circle or ellipse to a set of edge points. • Traditional method – Energy minimization by Calculus. Features are found by edge detection • Fit a curve, a circle, an ellipse or a line which has minimum distances from the edges. Hough transform v0.b 3 y = mx+c y mx c i − i − ( , ) i i x y y x

<Introduction Line detection I circle detection I irregular shape detection Least squares energy minimization (seehttp://mathworld.wolframcom/leastsquarEsfittinghtml) Given: Many(i,yi)pairs (x2y) y=mx+c Find: Parameters(m, c) ☆ Minimize: Average square distance: ★☆ (y2-mx-c)2 y nx.-c E N Using aE aE 0 y=mx am C ∑(x1-x)y-y) Note ∑y∑ ∑(x-x N Hough transfor
Introduction | Line detection | circle detection | irregular shape detection Least Squares energy minimization (see http://mathworld.wolfram.com/LeastSquaresFitting.html) Hough transform v0.b 4 y = mx+c y mx c i − i − ( , ) i i x y y x Given: Many pairs Find: Parameters Minimize: Average square distance: Using: Note: ( , ) i i x y (m,c) − − = i i i N y mx c E 2 ( ) 0 & = 0 = c E m E c = y − m x − − − = i i i i i x x x x y y m 2 ( ) ( )( ) N y y i i = N x x i i =

<Introduction Line detection I circle detection I irregular shape detection Curve Fitting Find polynomial: y=f(x)=ax+bx+cx+d that best fits the given points(,y) ☆ ★ Minimize 1S[-(ax3+bx2+cx1+)/2 N Using OE aE aE aE 0 0 0 a ab ad Note: f()is LINEAR in the parameters(a, b, C,d) Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection Curve Fitting Hough transform v0.b 5 y x Find Polynomial: that best fits the given points Minimize: Using: Note: is LINEAR in the parameters (a, b, c, d) ( , ) i i x y y = f x = ax + bx + cx + d 3 2 ( ) − + + + i yi axi bxi cxi d N 3 2 2 [ ( )] 1 0 , 0 , 0 , = 0 = = = d E c E b E a E f (x)

Introduction (Line detectioN circle detection I irregular shape detection Line detection using Hough transform For straight line detection (a very efficient method) Hough transform vo.b 6
Introduction | Line detection | circle detection | irregular shape detection Line detection using Hough transform For straight line detection (a very efficient method) Hough transform v0.b 6

Introduction (Line detectioN circle detection I irregular shape detection Reason to use Hough transform Why the previous energy minimization method is too complicated? Because Different formulations for different types(line, circle, ellipse etc. Hough is the same method for all types Hough transform is more suitable for computers Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection Reason to use Hough transform • Why the previous energy minimization method is too complicated? Because: – Different formulations for different types (line, circle, ellipse etc.) – Hough is the same method for all types. – Hough transform is more suitable for computers. Hough transform v0.b 7

Introduction (Line detectioN circle detection I irregular shape detection Example To find the line y=mx+c) y=2X+10 m=-2,C=10 Assume you don t know the line formula But have three points passing through the line X=1,y=8 (1,8) X=2,y=6 Line 34) y=mx+C X=3y=4 Hough transform vo.b 8
Introduction | Line detection | circle detection | irregular shape detection Example • To find the line (y=mx+c) – y=-2x+10 – m=-2, c=10 • Assume you don’t know the line formula – But have three points passing through the line – X=1, y=8 – X=2, y=6 – X=3,y=4 Hough transform v0.b 8 x y (1,8) (2,6) (3,4) Line y=mx+c

Introduction (Line detectioN circle detection I irregular shape detection Change of variables (x, y)>(m, c) y=mx+C m=(y-c)/ m=(-1/x)c+y/x m=G*C+D, where G=-1/, D=y/ Procedure: find(m, c from points xi, yi) 1 Find the line for(m, c)as variables(not x, y as variables 2)For each point xi, yi), plot line in(m, c) space Give a range of m values(e g-10,0, 10. etc, at least 2 values Find c value for each m value plot line 3)The cutting point of lines in m-c space is the solution for(m, c) Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection Change of variables (x,y)→(m,c) • y=mx+c • m=(y-c)/x • m=(-1/x)c+y/x • m=G*c+D, where G=-1/x, D=y/x • Procedure: find (m,c) from points (xi,yi) – 1)Find the line for (m,c) as variables (not x,y as variables) – 2)For each point (xi,yi), plot line in (m,c) space • Give a range of m values (e.g -10,0,10. etc, at least 2 values) • Find c value for each m value, plot line – 3) The cutting point of lines in m-c space is the solution for (m,c) Hough transform v0.b 9

Introduction Line detection I circle detection I irregular shape detection Exercise 1: Derivation exercise Exercise 1: y=px+g, where p is the gradient of the line, q is the vertical-axis cutting point Rearrange the equation in p, g space. Le p=(U)q+(v). Find U, V in terms of x, y Answer: Hough transform vo.b
Introduction | Line detection | circle detection | irregular shape detection Hough transform v0.b 10 Exercise 1 :Derivation exercise • Exercise 1:y=px+q, where p is the gradient of the line, q is the vertical-axis cutting point. Rearrange the equation in p,q space. I.e. p=(U)q+(V). Find U,V in terms of x,y • Answer:
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- GD-Aggregate:A WAN Virtual Topology Building Tool for Hard Real-Time and Embedded Applications.ppt
- Introduction to Internet and TCPIP(PPT讲稿)IP转发 IP FORWARDING.pptx
- 《图像处理与计算机视觉 Image Processing and Computer Vision》课程教学资源(PPT课件讲稿)Chapter 10 Pose estimation by the iterative method.pptx
- 《操作系统》课程教学资源(PPT课件讲稿)Chapter 8 Virtual Memory.ppt
- 《操作系统》课程教学资源(PPT课件讲稿)Chapter 6 Concurrency Deadlock and Starvation.ppt
- 《操作系统》课程教学资源(PPT课件讲稿)Chapter 1 and 2 Computer System and Operating System Overview.ppt
- 印第安纳大学:《Informatics》课程PPT教学课件(信息学)08 网络爬虫 Web Crawling.ppt
- 《Java编程导论》课程教学资源(PPT课件讲稿)Chapter 8 Strings and Text I/O.ppt
- 《计算机网络与通讯》课程教学资源(PPT课件讲稿,英文版)Chapter 3 Transport Layer.ppt
- C++ Review.ppt
- 《计算机网络与通讯》课程教学资源(PPT课件讲稿,英文版)Chapter 07 Network Security.ppt
- Incorporating Structured World Knowledge into Unstructured Documents via——Heterogeneous Information Networks.pptx
- FairCloud:Sharing the Network in Cloud Computing.pptx
- 香港科技大学:《计算机网络 Computer Networks》课程教学资源(PPT课件)Chapter 1 Introduction of computer networking.ppsx
- Fluent:《GAMBIT建模教程》教学资源(PPT讲稿)Geometry Operations in GAMBIT.ppt
- 有限元分析 ANSYS:Modeling Turbulent Flows(PPT讲稿)Introductory FLUENT Training.ppt
- 隐马尔科夫模型和词性标注(PPT课件讲稿).ppt
- 哈尔滨工业大学:《中文信息处理》课程教学资源(PPT课件讲稿)句法分析(张宇).ppt
- 新乡学院:《计算机网络》课程教学大纲(适用专业:信息与计算科学).pdf
- 新乡学院:《数据库原理》课程电子教案(PPT课件)第3章 关系数据库.ppt
- 香港中文大学:Image processing and computer vision(PPT课件讲稿)Edge detection and image filtering.pptx
- 《图像处理与计算机视觉 Image Processing and Computer Vision》课程教学资源(PPT课件讲稿)Chapter 07 Mean-shift and Cam-shift.pptx
- Essential Cluster OS Commands.ppt
- 香港浸会大学:Kickstart Tutorial/Seminar on using the 64-nodes P4-Xeon Cluster in Science Faculty.ppt
- 香港浸会大学:并行输入输出(PPT讲稿)Parallel I/O.ppt
- 四川大学:《操作系统 Operating System》课程教学资源(PPT课件讲稿)Chapter 7 Memory Management.ppt
- 四川大学:《数据库技术》课程教学资源(PPT课件讲稿)第4章 数据库查询.ppt
- 《计算机系统结构》课程教学资源(PPT课件讲稿)第五章 存储层次.ppt
- 软件配置管理和项目管理工具(PPT讲稿)Software Configuration Management and Project Management Tool.ppt
- 《数据库基础》课程PPT教学课件(SQL Server)第4章 T-SQL与可编程对象.ppt
- 《嵌入式系统开发》课程PPT教学课件(讲稿)第一章 嵌入式系统概述.ppt
- 《编译原理 Compiler Construction》课程教学资源(PPT讲稿)语义分析 Semantic Analysis(Attributes and Attribute Grammars、Algorithms for Attribute Computation).ppt
- 四川大学:《Linux操作系统》课程教学资源(PPT课件讲稿)第6章 Linux系统调用.ppt
- 《数据库技术》课程教学资源(PPT课件讲稿)第3章 SQL语言基础及数据定义功能(主讲:曾晓东).ppt
- 四川大学:.NET and .NET Core:Languages, Cloud, Mobile and AI(PPT课件讲稿)NET for Data Science and AI.pptx
- 四川大学:《Matlab程序设计》课程教学资源(教学大纲)Programming in Matlab.pdf
- 电子科技大学:《计算系统与网络安全 Computer System and Network Security》课程教学资源(PPT课件讲稿)第4章 网络基础(网络概述、协议).ppt
- 电子科技大学:《计算系统与网络安全 Computer System and Network Security》课程教学资源(PPT课件讲稿)第7章 协议安全技术(安全协议实例).ppt
- 电子科技大学:《计算系统与网络安全 Computer System and Network Security》课程教学资源(PPT课件讲稿)第5章 网络隔离技术.ppt
- 电子科技大学:《计算系统与网络安全 Computer System and Network Security》课程教学资源(PPT课件讲稿)第2章 信息安全数学基础(计算复杂性).ppt