1 Model Fitting Hao Jiang Computer Science Department Oct 6, 2009.

Slides:



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

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.
Feature Matching and Robust Fitting Computer Vision CS 143, Brown James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Edge Detection CSE P 576 Larry Zitnick
Fitting: The Hough transform
Lecture 5 Hough transform and RANSAC
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
1 Model Fitting Hao Jiang Computer Science Department Oct 8, 2009.
Object Recognition A wise robot sees as much as he ought, not as much as he can Search for objects that are important lamps outlets wall corners doors.
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Color a* b* Brightness L* Texture Original Image Features Feature combination E D 22 Boundary Processing Textons A B C A B C 22 Region Processing.
Fitting a Model to Data Reading: 15.1,
Moments area of the object center of mass  describe the image content (or distribution) with respect to its axes.
CS 376b Introduction to Computer Vision 04 / 14 / 2008 Instructor: Michael Eckmann.
CS 376b Introduction to Computer Vision 04 / 15 / 2008 Instructor: Michael Eckmann.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Fitting: The Hough transform
Edge Detection.
Robust estimation Problem: we want to determine the displacement (u,v) between pairs of images. We are given 100 points with a correlation score computed.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
FEATURE EXTRACTION FOR JAVA CHARACTER RECOGNITION Rudy Adipranata, Liliana, Meiliana Indrawijaya, Gregorius Satia Budhi Informatics Department, Petra Christian.
Hough Transform on the GPU Presented by Javier Garcia November 29, 2010.
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
Fitting : Voting and the Hough Transform Monday, Feb 14 Prof. Kristen Grauman UT-Austin.
CS 1699: Intro to Computer Vision Matching and Fitting Prof. Adriana Kovashka University of Pittsburgh September 29, 2015.
Image Processing Edge detection Filtering: Noise suppresion.
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.
HOUGH TRANSFORM. Introduced in 1962 by Paul Hough pronounced like “tough” according to orm.html.
Fitting: The Hough transform
Many slides from Steve Seitz and Larry Zitnick
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
EECS 274 Computer Vision Model Fitting. Fitting Choose a parametric object/some objects to represent a set of points Three main questions: –what object.
Fitting Thursday, Sept 24 Kristen Grauman UT-Austin.
1 Model Fitting Hao Jiang Computer Science Department Sept 30, 2014.
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.
CSE 185 Introduction to Computer Vision Feature Matching.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Image Segmentation Image segmentation (segmentace obrazu)
Fitting : Voting and the Hough Transform Thursday, September 17 th 2015 Devi Parikh Virginia Tech 1 Slide credit: Kristen Grauman Disclaimer: Many slides.
CS 2750: Machine Learning Linear Regression Prof. Adriana Kovashka University of Pittsburgh February 10, 2016.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Detecting Image Features: Corner. Corners Given an image, denote the image gradient. C is symmetric with two positive eigenvalues. The eigenvalues give.
Hough Transform CS 691 E Spring Outline Hough transform Homography Reading: FP Chapter 15.1 (text) Some slides from Lazebnik.
Object Recognition. Segmentation –Roughly speaking, segmentation is to partition the images into meaningful parts that are relatively homogenous in certain.
1 Hough Transform. 2 A Technique to Isolate Features of a Particular Shape within an Image The classical Hough transform is most commonly used for the.
Grouping and Segmentation. Sometimes edge detectors find the boundary pretty well.
Fitting: Voting and the Hough Transform
Line Fitting James Hayes.
Detection of discontinuity using
Fitting: The Hough transform
Fitting: Voting and the Hough Transform (part 2)
Fitting: Voting and the Hough Transform April 24th, 2018
Fitting Curve Models to Edges
Edge Detection CSE 455 Linda Shapiro.
CSSE463: Image Recognition Day 26
Hough Transform.
Outline Announcement Perceptual organization, grouping, and segmentation Hough transform Read Chapter 17 of the textbook File: week14-m.ppt.
CSSE463: Image Recognition Day 27
Edge Detection Today’s readings Cipolla and Gee Watt,
CSE 185 Introduction to Computer Vision
CSSE463: Image Recognition Day 26
Presentation transcript:

1 Model Fitting Hao Jiang Computer Science Department Oct 6, 2009

Model Fitting  An object model constrains the kind of object we wish to find in images. 2 window Front wheel Back wheel

Type of 2D Models  Rigid models  Deformable models  Articulated models 3

Template Matching 4 Template Target image

Template Matching 5 Template Target image

Template Matching 6 Template Target image

Template Matching 7 Template Target image

Template Matching 8 Template Target image

Matching Criteria 9 At each location (x,y) the matching cost is:

Dealing with Rotations 10 Template Target image

Dealing with Scale Changes 11 Template Target image in multiple scales Sweep window and find the best match

Multi-scale Refinement 12 Template Target image in multiple scales Start from here Complexity reduced from O(n^2 k^2) to O(log(n/m) + m^2 j^2) size n size m size k size j

Multi-scale Refinement Generate the image pyramids 2. Exhaustive search the smallest image and get location (x,y) 3. Go to the next level of the pyramid and check the locations (2x, 2y), (2x+1,2y), (2x,2y+1), (2x+1,2y+1), pick up the best and update the estimate. 4. If at the bottom of the pyramid, stop; otherwise go to Output the estimate (x,y)

Binary Template Matching 14 G.M. Gavrila, “Pedestrian detection from a moving vechicle”, ECCV 2000

Matching Binary Template 15 Template Binary target image Target object Clutter

Distance of Curves 16 d_red(p) d_green(q) For each point p on the red curve, find the closed point q on the green curve. Denote The distance from red curve to the green curve = Similarly, the distance from the green curve to the red curve is q p

Distance Transform  Transform binary image into an image whose pixel values equal the closest distance to the binary foreground. 17

Chamfer Matching 18 d_red(p) = distI(p) p

Chamfer Matching in Matlab 19 % distance transform and matching dist = bwdist(imTarget, ‘euclidean’); map = imfilter(dist, imTemplate, ‘corr’, ‘same’); %look for the local minima in map to locate objects smap = ordfilt2(map, 25, true(5)); [r, c] = find((map == smap) & (map < threshold));

Hough Transform  Template matching may become very complex if transformations such as rotation and scale is allowed.  A voting based method, Hough Transform, can be used to solve the problem.  Instead of trying to match the target at each location, we collect votes in a parameter space using features in the original image. 20

Line Detection 21

Line Detection 22

Line Detection 23 x y (1)Where is the line? (2)How many lines? (3)Which point belongs to which line?

Line Detection 24 x y y = ax + b For each point, there are many lines that pass it. (x1,y1)

Line Detection 25 a b b = -x1a + y1 All the lines passing (x1,y1) can be represented as another line in the parameter space. y1 y1/x1

Line Detection 26 a b b = -x1a + y1 The co-linear points vote for the same point in the a-b space. y y/x b = -x2a + y2

Line Detection 27 a b b = -x1a + y1 y y/x b = -x2a + y2 b = -x(n)a + y(n) The co-linear points vote for the same point in the a-b space. The point that receives the most votes corresponds to the line.

Line Parameterization 28 x y theta d x cos(theta) + y sin(theta) = d

Parameter Space 29 theta r x cos(theta) + y sin(theta) = r

Hough Transform Algorithm Using the polar parameterization: Basic Hough transform algorithm 1.Initialize H[d,  ]=0 2.for each edge point I[x,y] in the image for  = 0 to 180 // some quantization H[d,  ] += 1 3.Find the value(s) of (d,  ) where H[d,  ] is maximum 4.The detected line in the image is given by Hough line demo H: accumulator array (votes) d  Time complexity (in terms of number of votes)? Source: Steve Seitz

Image space edge coordinates Votes  d x y Example: Hough transform for straight lines Bright value = high vote count Black = no votes Source: K. Grauman

Impact of noise on Hough Image space edge coordinates Votes  x y d What difficulty does this present for an implementation? Source: K. Grauman

Image space edge coordinates Votes Impact of noise on Hough Here, everything appears to be “noise”, or random edge points, but we still see peaks in the vote space. Source: K. Grauman

Extensions Extension 1: Use the image gradient 1.same 2.for each edge point I[x,y] in the image  = gradient at (x,y) H[d,  ] += 1 3.same 4.same (Reduces degrees of freedom) Ex The same procedure can be used with circles, squares, or any other shape Source: K. Grauman

Extensions Extension 1: Use the image gradient 1.same 2.for each edge point I[x,y] in the image compute unique (d,  ) based on image gradient at (x,y) H[d,  ] += 1 3.same 4.same (Reduces degrees of freedom) Extension 2  give more votes for stronger edges (use magnitude of gradient) Extension 3  change the sampling of (d,  ) to give more/less resolution Extension 4  The same procedure can be used with circles, squares, or any other shape… Source: K. Grauman