Finding Line and Curve Segments from Edge Images

Slides:



Advertisements
Similar presentations
Hough Transforms CSE 6367 – Computer Vision Vassilis Athitsos University of Texas at Arlington.
Advertisements

Edge Detection Selim Aksoy Department of Computer Engineering Bilkent University
Edge Detection Selim Aksoy Department of Computer Engineering Bilkent University
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Department of Computer Engineering
Department of Computer Engineering
Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Segmentation (2): edge detection
Fitting: The Hough transform
Lecture 5 Hough transform and RANSAC
1 Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
Edges and Lines Readings: Chapter 10:
Fitting a Model to Data Reading: 15.1,
CS 376b Introduction to Computer Vision 04 / 14 / 2008 Instructor: Michael Eckmann.
CS 376b Introduction to Computer Vision 04 / 15 / 2008 Instructor: Michael Eckmann.
Fitting: The Hough transform
1 Lines and Arcs Segmentation In some image sets, lines, curves, and circular arcs are more useful than regions or helpful in addition to regions. Lines.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Edge Linking & Boundary Detection
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
HOUGH TRANSFORM Presentation by Sumit Tandon
HOUGH TRANSFORM & Line Fitting Introduction  HT performed after Edge Detection  It is a technique to isolate the curves of a given shape / shapes.
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
CSSE463: Image Recognition Day 25 This week This week Today: Finding lines and circles using the Hough transform (Sonka 6.26) Today: Finding lines and.
Lecture 08 Detecting Shape Using Hough Transform Lecture 08 Detecting Shape Using Hough Transform Mata kuliah: T Computer Vision Tahun: 2010.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
Object Detection 01 – Basic Hough Transformation JJCAO.
Hough Transform Procedure to find a shape in an image Shape can be described in parametric form Shapes in image correspond to a family of parametric solutions.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
1 Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which.
Image Segmentation Image segmentation (segmentace obrazu)
Edges and Lines Readings: Chapter 10:
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
1 Review and Summary We have covered a LOT of material, spending more time and more detail on 2D image segmentation and analysis, but hopefully giving.
Another Example: Circle Detection
CSSE463: Image Recognition Day 26
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Fitting: Voting and the Hough Transform
Miguel Tavares Coimbra
Detection of discontinuity using
Fitting: The Hough transform
Mean Shift Segmentation
Introduction Computer vision is the analysis of digital images
Fitting: Voting and the Hough Transform (part 2)
Edge Detection EE/CSE 576 Linda Shapiro.
3D Models and Matching particular matching techniques
Fitting Curve Models to Edges
Image Processing, Leture #12
Introduction Computer vision is the analysis of digital images
ECE 692 – Advanced Topics in Computer Vision
Computer Vision Lecture 16: Texture II
Edge Detection CSE 455 Linda Shapiro.
CSSE463: Image Recognition Day 26
CSSE463: Image Recognition Day 26
Hough Transform.
Morphological Operators
Outline Announcement Perceptual organization, grouping, and segmentation Hough transform Read Chapter 17 of the textbook File: week14-m.ppt.
CSSE463: Image Recognition Day 27
CSSE463: Image Recognition Day 26
Finding Basic Shapes Hough Transforms
Grape Detection in Vineyards Introduction To Computational and Biological Vision final project Kobi Ruham Eli Izhak.
Introduction Computer vision is the analysis of digital images
CSSE463: Image Recognition Day 26
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Edge Detection ECE P 596 Linda Shapiro.
Presentation transcript:

Finding Line and Curve Segments from Edge Images Given an edge image, how do we find line and arc segments? junction Method 1: Tracking Use masks to identify the following events: 1. start of a new segment 2. interior point continuing a segment 3. end of a segment 4. junction between multiple segments 5. corner that breaks a segment into two corner

Edge Tracking Procedure for each edge pixel P { classify its pixel type using masks case 1. isolated point : ignore it 2. start point : make a new segment 3. interior point : add to current segment 4. end point : add to current segment and finish it 5. junction or corner : add to incoming segment finish incoming segment make new outgoing segment(s) The ORT package uses a fancier corner finding approach.

Hough Transform The Hough transform is a method for detecting lines or curves specified by a parametric function. If the parameters are p1, p2, … pn, then the Hough procedure uses an n-dimensional accumulator array in which it accumulates votes for the correct parameters of the lines or curves found on the image. accumulator image b m y = mx + b

Finding Straight Line Segments y = mx + b is not suitable (why?) The equation generally used is: d = r sin  + c cos  c  d d is the distance from the line to origin  is the angle the perpendicular makes with the column axis r

Procedure to Accumulate Lines Set accumulator array A to all zero. Set point list array PTLIST to all NIL. For each pixel (R,C) in the image { compute gradient magnitude GMAG if GMAG > gradient_threshold { compute quantized tangent angle THETAQ compute quantized distance to origin DQ increment A(DQ,THETAQ) update PTLIST(DQ,THETAQ) } }

Example 0 0 0 100 100 - - 0 0 - gray-tone image DQ THETAQ 0 0 0 100 100 100 100 100 100 100 - - 3 3 - 3 3 3 3 - - - - - - - - 0 0 - 90 90 40 20 - 90 90 90 40 - - - - - - Accumulator A PTLIST 360 . 6 3 - - - - - - - 4 - 1 - 2 - 5 - - - - - - - * - * - * - * 360 . 6 3 (3,1) (3,2) (4,1) (4,2) (4,3) distance angle 0 10 20 30 40 …90 (1,3)(1,4)(2,3)(2,4)

How do you extract the line segments from the accumulators? pick the bin of A with highest value V while V > value_threshold { order the corresponding pointlist from PTLIST merge in high gradient neighbors within 10 degrees create line segment from final point list zero out that bin of A pick the bin of A with highest value V }

Finding Circles r = r0 + d sin  r, c, d are parameters Equations: c = c0 + d cos  r, c, d are parameters Equations: Main idea: The gradient vector at an edge pixel points to the center of the circle. d *(r,c)

Why it works Filled Circle: Outer points of circle have gradient direction pointing to center. Circular Ring: Outer points gradient towards center. Inner points gradient away from center. The points in the away direction don’t accumulate in one bin!

Procedure to Accumulate Circles Set accumulator array A to all zero. Set point list array PTLIST to all NIL. For each pixel (R,C) in the image { For each possible value of D { - compute gradient magnitude GMAG - if GMAG > gradient_threshold { . Compute THETA(R,C,D) . R0 := R - D*cos(THETA) . C0 := C - D* sin(THETA) . increment A(R0,C0,D) . update PTLIST(R0,C0,D) }}

45 3 2 3 4 2 The Burns Line Finder 4 1 +22.5 5 1 5 8 6 8 -22.5 6 7 7 1. Compute gradient magnitude and direction at each pixel. 2. For high gradient magnitude points, assign direction labels to two symbolic images for two different quantizations. 3. Find connected components of each symbolic image. Each pixel belongs to 2 components, one for each symbolic image. Each pixel votes for its longer component. Each component receives a count of pixels who voted for it. The components that receive majority support are selected.

See transparencies for comparisons.

Consistent Line Clusters for Object Recognition (Yi Li’s Structure Features) A Consistent Line Cluster is a set of lines that are homogeneous in terms of some line features. Color-CLC: The lines have the same color feature. Orientation-CLC: The lines are parallel to each other or converge to a common vanishing point. Spatially-CLC: The lines are in close proximity to each other.

Color-CLC Color feature of lines: color pair (c1,c2) Color pair space: RGB (2563*2563) Too big! Dominant colors (20*20) Finding the color pairs: One line  Several color pairs Constructing Color-CLC: use clustering Figure 3 (color pair) Figure 4 (dominant colors) Figure 5 (color pair II) Figure 7 (result) Figure l-3 (backup)

Color-CLC Figure 3 (color pair) Figure 4 (dominant colors) Figure 5 (color pair II) Figure 7 (result) Figure l-3 (backup)

Orientation-CLC The lines in an Orientation-CLC are parallel to each other in the 3D world The parallel lines of an object in a 2D image can be: Parallel in 2D Converging to a vanishing point (perspective) Figure l-1

Orientation-CLC Figure l-1

Spatially-CLC Vertical position clustering Horizontal position clustering Figure 10 (coordinate transform) Figure 11 (example) Figure l-2 (vertical) Figure 12 (horizontal) Figure 13 (result) Figure 14 (result II)

Use in Building Recognition (to be covered in the CBIR lecture) http://www.cs.washington.edu/research/imagedatabase/demo