Corner Detection. GV12/3072 Image Processing.

Similar documents
SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

Scale Invariant Feature Transform

Line, edge, blob and corner detection

Problems with template matching

School of Computing University of Utah

Outline 7/2/201011/6/

Scale Invariant Feature Transform

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Towards the completion of assignment 1

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Local Features: Detection, Description & Matching

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

Prof. Feng Liu. Spring /26/2017

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Motion Estimation and Optical Flow Tracking

Advanced Video Content Analysis and Video Compression (5LSH0), Module 4

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Visual Tracking (1) Pixel-intensity-based methods

Local features: detection and description. Local invariant features

Computer Vision for HCI. Topics of This Lecture

Keypoint detection. (image registration, panorama stitching, motion estimation + tracking, recognition )

Feature Based Registration - Image Alignment

Computer Vision 558 Corner Detection Overview and Comparison

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Local invariant features

Scale Invariant Feature Transform by David Lowe

Visual Tracking (1) Feature Point Tracking and Block Matching

Obtaining Feature Correspondences

Key properties of local features

Image features. Image Features

Feature Detection and Matching

The SIFT (Scale Invariant Feature

CS 558: Computer Vision 4 th Set of Notes

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Local Feature Detectors

INTEREST OPERATORS IN CLOSE-RANGE OBJECT RECONSTRUCTION

Image matching. Announcements. Harder case. Even harder case. Project 1 Out today Help session at the end of class. by Diva Sian.

CAP 5415 Computer Vision Fall 2012

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Image processing and features

Local Image preprocessing (cont d)

Corner Detection. Harvey Rhody Chester F. Carlson Center for Imaging Science Rochester Institute of Technology

Local features and image matching. Prof. Xin Yang HUST

A New Class of Corner Finder

Computer Vision I - Filtering and Feature detection

TECHNIQUES OF VIDEO STABILIZATION

Chapter 3 Image Registration. Chapter 3 Image Registration

Computer Vision I - Basics of Image Processing Part 2

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Automatic Image Alignment (feature-based)

Implementing the Scale Invariant Feature Transform(SIFT) Method

Local features: detection and description May 12 th, 2015

Edge and corner detection

3D from Photographs: Automatic Matching of Images. Dr Francesco Banterle

AK Computer Vision Feature Point Detectors and Descriptors

Introduction to Medical Imaging (5XSA0)

Local Image Features

Midterm Wed. Local features: detection and description. Today. Last time. Local features: main components. Goal: interest operator repeatability

Object Recognition with Invariant Features

Lecture 10 Detectors and descriptors

Wikipedia - Mysid

Computer vision: models, learning and inference. Chapter 13 Image preprocessing and feature extraction

CS5670: Computer Vision

Vision and Image Processing Lab., CRV Tutorial day- May 30, 2010 Ottawa, Canada

Local Image Features

CS 556: Computer Vision. Lecture 3

Using Geometric Blur for Point Correspondence

Patch-based Object Recognition. Basic Idea

CS4670: Computer Vision

Recognition of Degraded Handwritten Characters Using Local Features. Markus Diem and Robert Sablatnig

3D Photography. Marc Pollefeys, Torsten Sattler. Spring 2015

Ulas Bagci

INVARIANT CORNER DETECTION USING STEERABLE FILTERS AND HARRIS ALGORITHM

Image Segmentation and Registration

Image Features Detection, Description and Matching

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

AN EFFICIENT BINARY CORNER DETECTOR. P. Saeedi, P. Lawrence and D. Lowe

Implementation and Comparison of Feature Detection Methods in Image Mosaicing

Other Linear Filters CS 211A

EE795: Computer Vision and Intelligent Systems

COMPUTER VISION > OPTICAL FLOW UTRECHT UNIVERSITY RONALD POPPE

HIGH-SPEED IMAGE FEATURE DETECTION USING FPGA IMPLEMENTATION OF FAST ALGORITHM

Motion illusion, rotating snakes

3D Vision. Viktor Larsson. Spring 2019

Image Features. Work on project 1. All is Vanity, by C. Allan Gilbert,

Local Features Tutorial: Nov. 8, 04

DETECTORS AND DESCRIPTORS FOR PHOTOGRAMMETRIC APPLICATIONS

Machine learning for high-speed corner detection

Morphological Corner Detection

CS 556: Computer Vision. Lecture 3

A Review: Semantic Template Matching using Color- Texture features Rajeev K. Singh, Uday Pratap Singh, Sunil Phulre

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

Anno accademico 2006/2007. Davide Migliore

Transcription:

Corner Detection 1

Last Week 2

Outline Corners and point features Moravec operator Image structure tensor Harris corner detector Sub-pixel accuracy SUSAN FAST Example descriptor: SIFT 3

Point Features (a.k.a. Corners or Interest Points) Many applications need to match corresponding points in images. Stereo matching and 3D reconstruction Tracking Localization Recognition Points along lines are poorly defined See Aperture Problem phenomenon (next) 4

Tracking & Reconstruction 2D3 Commercial application: Boujou Match-moving for special effects Computes a point-cloud + camera poses UNC city-scanning (video) (Pollefeys et al.) 9

Feature matching vs. tracking Image-to-image correspondences are key to passive triangulation-based 3D reconstruction Extract features independently and then match by comparing descriptors Extract features in first images and then try to find same feature back in next view What is a good feature? From Marc Pollefeys

Stereo Example 11

Stereo Example 12

Corner Interest Points We want corner points that are: Distinctive Stable from image to image (Sparse)? And are invariant to: View point (scale, orientation, translation) Lighting conditions Object deformations Partial occlusion And are, if possible, Geometrically meaningful, though not necessarily scene-object corners. 13

Intersections Edge and line intersections provide recognizable features Intersections can be stable or unstable 14

Moravec Interest Operator Use a window surrounding each pixel as its own matching template Tests local autocorrelation of the image: SSD = Sum of Squared Differences Good matches in any direction Flat image region Good matches in only one direction Linear feature or edge No good matches in any direction Distinctive point feature Corner point 15

Neighborhood stands out? 17

Check SSDs sum(sum( (patch - Ipad(rowStart:rowStart+2, colstart:colstart+2) ).^2 )); 18

Check SSDs 1.34 2.6 1.79 1.04 2.46 2.34 2.39 0 3.24 1.14 2.12 0.60 19

Implementation Match quality for displacements ( x, y) uses L 2 norm: ε ( Δx, Δy) = ( x, y) N w( x, (3,3)of I, centered at y) ( I( x + Δx, y + Δy) I( x, y) ) w is a window function e.g. constant or Gaussian Cornerness is min ε over the eightneighbourhood N, excluding (0, 0) p0 2 20

Moravec Interest Operator Use a window surrounding each pixel as its own matching template T. Tests local autocorrelation of the image: SSD Good matches in any direction Flat image region Good matches in only one direction Linear feature or edge No good matches in any direction Distinctive point feature Corner point 21

Cornerness Using 7x7 matching window. 22

Cornerness distribution # Pixels Cornerness 23

Non-maximal suppression Set pixels that have an 8 neighbour with higher cornerness to zero. 24

Threshold T = 1 25

Threshold T = 2 26

Threshold T = 3 27

Non-max Suppression Efficiently? Input, I (this time, pretend these are cornerness values) 28

Non-max Suppression by Dilation? Input, I (this time, pretend these are cornerness values) imdilate(i, ones(3,3)) 30

Moravec Algorithm Summary Enhance corner features Non-maximal suppression Threshold 31

Problems Multiple responses at high interest points Extend non-maximal suppression to windows Weak response to blurred corners Slow 32

General Form Can we do better? Derive general theory of cornerness 33 ( ) + Δ + Δ = Δ Δ 0 centered at I, (3,3)of ), ( 2 ), ( ), ( ), ( ), ( p N y x y x I y y x x I y x w y x ε ( ) x x S y x I I I I I I y x y x T y y x y x x = = 2 2, ), ε (

(See online Taylor series expansion/approximation) 35

Analytic Expansion Taylor expansion of I(x + u, y + v) and substitution into ε gives: ε ( x, y) = x y (, ) = x Sx < > denotes average over the window N. S is the image structure tensor I I x 2 x I y I I x y 2 I y x y T 36

Structure tensor S captures the curvature of the local autocorrelation surface The eigenvalues are the principal curvatures They are the solutions to 2 λ λ ( 2 2 ) 2 2 2 I + I + I I I I = 0 x y x y x y 37

Principal Axes (i.e. Eigenvectors) (Note: see Simon Prince s SVD slides online) homogeneous edge corner i.e. maximize smallest eigenvalue of S 38 From Marc Pollefeys

Harris Corner Detector (Example Video) Defines cornerness as size of smallest eigenvalue, or C = det( S) / Tr( S) ( ) 2 2 2 2 C = I x I y I xi y / I x + I y C = λ 1λ2 /( λ1 + λ2 ) Non-maximal suppression and thresholding as before 2 40

Cornerness and NMS 41

Sigma = 1, Threshold T=0.1 42

Sigma = 1, Threshold T=0.15 43

Sigma = 1, Threshold T=0.2 44

Variants Can include Gaussian smoothing when computing I x and I y. Less important than for edge detection. Helps eliminate multiple responses to the same corner Similar effect using larger regions in non-maximal suppression Harris and Stephens combined edge and corner detector R = det( S) ktr 2 ( S) Various other corner measures, thresholding schemes, non-max suppression techniques 0<k<0.25 to get the desired behaviour from R: positive at corners and negative at edges 45

Sigma = 5, Threshold T=0.001 46

Sigma = 5, Threshold T=0.004 47

Sigma = 5, Threshold T=0.007 48

Harris and Stephens k = 0.02 Harris and Stephens, Proc. 4 th Alvey Vision Conference, 147-151, 1988. 49

SUSAN Method for edge and corner detection No image derivatives Insensitive to noise Smith et al, IJCV, 23(1):45-78, 1997 53

USAN Univalue Segment Assimilating Nucleus It is the portion of the template with intensity within a threshold of the nucleus. 54

Edges and Corners In flat regions the USAN has similar area to the template At edges the USAN area is about half the template area At corners the USAN area is smaller than half the template area. SUSAN = Smallest USAN. 55

Example 56

u( r, r Implementation Circular mask C with radius 3.4 ( C = 37 pixels). The nucleus is the centre pixel r 0. 0 ) = 1 I( r) I( r0 ) < 0 otherwise C < = n n T A( r 0 ) 0 otherwise t n = 0011100 0111110 1111111 C=1111111 1111111 0111110 0011100 u( r, r 0 r C ( r0 ) T=3 C /4 for edge detection T= C /2 for corner detection Select t by considering image 57 noise level. )

Refinements Band edge orientation from USAN moments: 1 tan ( μ / μ ) 20 02 Step edge orientation from centre of gravity. Eliminate false positive corners using Distance of USAN centre of gravity from r 0. Connectivity of USAN. Non-maximal suppression 58

FAST Machine learning for high-speed corner detection Rosten & Drummond, ECCV 2006 Reuse nucleus concept From Trajkovic & Hedley 98 Machine learning to train it to be fast Retain performance 59

Trajkovic & Hedley P and P are opposite points, diameter D apart 60 From Rosten & Drummond

FAST Set of n contiguous pixels in the circle which are all brighter / darker by some T? n = 12? 61

For each location (1-16) on the circle x, the pixel at that position relative to p (denoted by p x) can have one of three states: Train decision tree to maximize information gain: 62

FAST Performance On average, 2.26 (for n = 9) and 2.39 (for n = 12) questions are asked per pixel to determine whether or not it is a feature. By contrast, the handwritten detector asks on average 2.8 questions. 63

SIFT Scale Invariant Feature Transform. Detects scale-space extrema. Highly stable features Now widely used in computer vision. D.G. Lowe, IJCV Vol. 60(2) 91-110 2004. 64

SIFT Application: Autostitch 65

DoG Scale Space Subtract Efficiently computed Laplacian scale space. 66

Scale space extrema Find local maxima and minima in the scale space stack. These are SIFT keypoints. 67

SIFT Keypoints 68

Threshold local variance Keep the top 50 %. Notice the response along edges. 69

Threshold Harris cornerness Lowe thresholds a cornerness measure in the scale space. 70

SIFT Features Extrema in Laplacian are distinctive (after removing edges) Extrema in scale space give scale independence. Lowe creates features at each keypoint from the histogram of local edge orientations Very stable features for affine matching 71

Ideas? Evaluation of Interestpoint Detectors? Innovations? 72

Summary Corners and point features Various algorithms Moravec Harris (image structure tensor) Sub-pixel accuracy SUSAN FAST Example descriptor: SIFT 73