1 Fitting
1 Fitting
Image Processing
Pinar Duygulu
image m accumulator
y = mx + b
Adapted from Linda Shapiro, U of Washington
Hough transform: line segments
y b
b0
x m0 m
Image space Hough (parameter) space
Connection between image (x,y) and Hough (m,b) spaces
A line in the image corresponds to a point in Hough space
To go from image space to Hough space:
given a set of points (x,y), find all (m,b) such that y = mx + b
x0 x m
Image space Hough (parameter) space
Connection between image (x,y) and Hough (m,b) spaces
A line in the image corresponds to a point in Hough space
To go from image space to Hough space:
given a set of points (x,y), find all (m,b) such that y = mx + b
What does a point (x0, y0) in the image space map to?
Answer: the solutions of b = -x0m + y0
This is a line in Hough space Adapted from Steve Seitz, U of Washington
Hough transform: line segments
y b
(x1, y1)
y0
(x0, y0)
b = –x1m + y1
x0 x m
Image space Hough (parameter) space
What are the line parameters for the line that contains both (x0,
y0) and (x1, y1)?
It is the intersection of the lines b = –x0m + y0 and
b = –x1m + y1
c
d is the distance from the line to origin.
d
d
*(r,c)
https://www.mathworks.com/help/images/ref
/imfindcircles.html
http://shreshai.blogspot.com.tr/2015/01/matl
ab-tutorial-finding-center-pivot.html
http://docs.opencv.org/2.4/doc/tutorials/imgp
roc/imgtrans/hough_circle/hough_circle.html
Hough transform: circles
corner
by Yi Li @ University of Washington
Example: building detection
Example: object extraction
by Serkan Kiranyaz
Tampere University of Technology
Example: object extraction
Example: object extraction
Example: object extraction
Example: object recognition
• Mauro Costa’s dissertation at the University of Washington for
recognizing 3D objects having planar, cylindrical, and threaded
surfaces:
• Detects edges from two intensity images.
• From the edge image, finds a set of high-level features and their relationships.
• Hypothesizes a 3D model using relational indexing.
• Estimates the pose of the object using point pairs, line segment pairs, and
ellipse/circle pairs.
• Verifies the model after projecting to 2D.
Example: object recognition
Example scenes used. The labels “left” and “right” indicate the direction of the light source.
Example: object recognition
Example: object recognition
Example: object recognition
1 coaxials-
multi encloses
1 1 2 3
encloses
2 ellipse
e e e c
encloses
3 parallel coaxial 2 3 3 2
lines Relationship graph and the corresponding 2-graphs.
Example: object recognition
• Learning phase: relational
indexing by encoding each 2-
graph and storing in a hash
table.
• Matching phase: voting by each
2-graph observed in the image.
Example: object recognition
Incorrect hypothesis