13
Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find shapes? Book pp 222-235; 243-249

Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Lecture 8 Finding Shapes

COMP3204 & COMP6223 Computer Vision

How can we group points to find shapes?

Book pp222-235; 243-249

Page 2: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Feature extraction by thresholding

• Conclusion: we need shape!

Page 3: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Template Matching• Intuitively simple

• Correlation and convolution

• Implementation via Fourier

• Relationship with matched filter, viz: optimality

accumulator spaceimage template

Page 4: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Template matching in noisy images

Page 5: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Template matching in occluded images

Page 6: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Encore, Monsieur Fourier!

No sliding of templates here;

cost is Fourier Transform plus multiplication

1

, ,

( ) ( )C

i j i n j m

i j

F F F

P P

P T P T

P T

Page 7: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Applying template matching

Page 8: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Applying SIFT in ear biometrics

Page 9: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Hough Transform• Performance equivalent to template matching, but faster

• A line is points x,y gradient m intercept c

• and is points m,c gradient -x intercept y

• In maths it’s the principle of duality

y m x c

c x m y

image

x

y

accumulator space

m

c

Page 10: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Applying the Hough transform for lines

accumulator spacedetected linesimage

Page 11: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Hough Transform for Lines … problems

• m,c tend to infinity

• Change the parameterisation

• Use foot of normal

• Gives polar HT for lines

cos sinx y

Image containing line

Page 12: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Images and the accumulator space of the polar Hough transform

Page 13: Lecture 8 Finding Shapescomp3204.ecs.soton.ac.uk/mark/Lecture 8.pdf · 2020. 12. 23. · Lecture 8 Finding Shapes COMP3204 & COMP6223 Computer Vision How can we group points to find

Applying the Hough transform