Problems with template matching

Similar documents
Wikipedia - Mysid

Prof. Feng Liu. Spring /26/2017

Automatic Image Alignment (feature-based)

Feature Based Registration - Image Alignment

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

Motion Estimation and Optical Flow Tracking

Corner Detection. GV12/3072 Image Processing.

Local invariant features

Image features. Image Features

CS5670: Computer Vision

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

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

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

Outline 7/2/201011/6/

Edge and corner detection

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

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

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

Local Feature Detectors

Computer Vision for HCI. Topics of This Lecture

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

The SIFT (Scale Invariant Feature

Local features: detection and description. Local invariant features

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

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

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

Key properties of local features

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

Automatic Image Alignment

Automatic Image Alignment

Feature Detection and Matching

CAP 5415 Computer Vision Fall 2012

Local features: detection and description May 12 th, 2015

Scott Smith Advanced Image Processing March 15, Speeded-Up Robust Features SURF

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Local Image preprocessing (cont d)

CS 556: Computer Vision. Lecture 3

SIFT - scale-invariant feature transform Konrad Schindler

SIFT: Scale Invariant Feature Transform

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION

Scale Invariant Feature Transform by David Lowe

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

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

Patch-based Object Recognition. Basic Idea

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

Introduction to Medical Imaging (5XSA0)

Object Recognition with Invariant Features

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

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

Local features and image matching. Prof. Xin Yang HUST

Visual Tracking (1) Pixel-intensity-based methods

Lecture: RANSAC and feature detectors

Other Linear Filters CS 211A

CS 556: Computer Vision. Lecture 3

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

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

CS4670: Computer Vision

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

Local Image Features

Stitching and Blending

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

521466S Machine Vision Assignment #3 Image Features

WAVELET TRANSFORM BASED FEATURE DETECTION

Local Features: Detection, Description & Matching

Lecture 6: Finding Features (part 1/2)

School of Computing University of Utah

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

Lecture 10 Detectors and descriptors

AK Computer Vision Feature Point Detectors and Descriptors

Scale Invariant Feature Transform

Using Geometric Blur for Point Correspondence

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

Large-Scale 3D Point Cloud Processing Tutorial 2013

Implementing the Scale Invariant Feature Transform(SIFT) Method

Line, edge, blob and corner detection

Autonomous Navigation for Flying Robots

Scale Invariant Feature Transform

Visual Tracking (1) Feature Point Tracking and Block Matching

Eppur si muove ( And yet it moves )

Obtaining Feature Correspondences

2D Image Processing Feature Descriptors

Chapter 3 Image Registration. Chapter 3 Image Registration

Low-level Vision Processing Algorithms Speaker: Ito, Dang Supporter: Ishii, Toyama and Y. Murakami

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Multi-modal Registration of Visual Data. Massimiliano Corsini Visual Computing Lab, ISTI - CNR - Italy

Feature Tracking and Optical Flow

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Feature Tracking and Optical Flow

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

Segmentation and Grouping

Lecture 16: Computer Vision

Towards the completion of assignment 1

IMPROVING SPATIO-TEMPORAL FEATURE EXTRACTION TECHNIQUES AND THEIR APPLICATIONS IN ACTION CLASSIFICATION. Maral Mesmakhosroshahi, Joohee Kim

CS143 Introduction to Computer Vision Homework assignment 1.

Scale Invariant Segment Detection and Tracking

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Local Image Features

Video Processing for Judicial Applications

Feature Detectors and Descriptors: Corners, Lines, etc.

Morphological Corner Detection

Transcription:

Problems with template matching The template represents the object as we expect to find it in the image The object can indeed be scaled or rotated This technique requires a separate template for each scale and orientation Template matching become thus too expensive, especially for large templates Sensitive to: noise occlusions SINA 11/1

Local template matching A possible solution is to reduce the size of the templates, and detect salient features in the image that characterize the object we are interested in Extract a set of local features that are invariant to translation, rotation and scale Perform matching only on these local features We then analyze the spatial relationships between those features See for example: Corner detector (Harris and Stephens,1988) SIFT (Lowe, 1999) SINA 11/1

Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging parameters SINA 11/1

Applications Object recognition 3D reconstruction Motion detection Panorama reconstruction SINA 11/1

How do we build a panorama? We need to match (align) images SINA 11/1

Matching with Features Detect feature points in both images Find corresponding pairs SINA 11/1

Matching with Features Detect feature points in both images Find corresponding pairs Use these pairs to align images SINA 11/1

Matching with Features Problem 1: Detect the same point independently in both images no chance to match! We need a repeatable detector SINA 11/1

Matching with Features Problem : For each point correctly recognize the corresponding one? We need a reliable and distinctive descriptor SINA 11/1

Moravec interest operator This operator was developed back in 1977 for navigation Defines points of interest regions in the image that are good candidates for matching in consecutive image frames It is considered a corner detection since it defines interest points as points in which there is large intensity variation in every direction SINA 11/1

Place a small square window (3x3, 5x5, 7x7 ) centered at a point P Shift this window by one pixel in each of eight principle directions (four diagonals, horizontal and vertical) Take the sum of squares of intensity differences of corresponding pixels in these two windows Define the intensity variation V as the minimum intensity variation over the eight principle directions SINA 11/1

SINA 11/1

for each x,y in the image Algorithm V x y I x u a y v b I x a y b (, ) (, ) (, ) uv, ab, ( uv, ) are the considered shifts: 1,0, 1,1, 0,1,( 1,1),( 1,0),( 1, 1),(0, 1),(1, 1) C( x, y) min( V ( x, y)) uv, threshold, set C(x,y) to zero of C(x,y)<T non-maximal suppression to find local maxima SINA 11/1

Non maximal suppression 1 if V( x, y) V( p, q), ( p, q) N( x, y) I( x, y) 0 otherwise SINA 11/1

Source: http://www.cim.mcgill.ca/~dparks/cornerdetector/index.htm Results SINA 11/1

Noise sensitivity Small imperfection in edges will be picked up as corners Edges not oriented along one of the height directions will also be candidate corners SINA 11/1

Harris and Stephens Similarly to Moravec, consider now a continuous function: E ( x) I( x d) I( x dh) h dh, R dw x ( x, y) R Perform local Taylor expansion: T T I( x h) I( x) I( x) h I( x h) I( x) I( x) h I( x) I( x) I( x), x y T SINA 11/1

T T T E ( x) I( x d) h h I( x d) I( x d) h h dw Ix I T xi y h h dw I xiy Iy I T W x I W xi y h h I W xi y I W y dw It is possible to introduce a weighting window w() for each point. For example a Gaussian: I I x y I( xd) x I( xd) y w() d 1 d e SINA 11/1

and compute the filtered variation ˆ T E ( x) h Ch ˆ h ( ) ( ) ˆ Ixw d IxIyw d C...... the eigenvalues of C will be proportional to the principle curvatures of the image surface and form a rotationally invariant description of C from linear algebra: E h 1 1 ( x) v v SINA 11/1

no structure 1 1 0 or 0 and 1 Three cases 0 edge 1 0 corner SINA 11/1

SINA 11/1 define the following index R usually, k=0.04 trace and determinant are preserved t C C 1 1 ˆ ˆ ˆ det ˆ ˆ ˆ ˆ ˆ) det( y x y x y x I I I I C I I C tr C tr k C R

R(x,y) for k=0. SINA 11/1

SINA 11/1

SINA 11/1

Source: http://www.cim.mcgill.ca/~dparks/cornerdetector/index.htm Results SINA 11/1

Problems Moravec and Harris have problems with rotations SINA 11/1

The scale problem SINA 11/1

Other features SINA 11/1

H L L xx xy L L L tr( H ) det( H ) xx xy yy L L xx yy L L yy xy Responds to bolb-like structures, but also to edges Responds to bolb-like structures, and saddles, insensitive to edges SINA 11/1

Search across scale A common approach is to search for maxima across scales Since the amplitude of spatial derivatives decreases with scale, the amplitude of features is expected to decrease Define normalized features: norm det( H tr( H norm ) t norm ) L t xx L yy L xx L L xy yy Lindeberg, Feature Detection With Automatic Scale Selection, Int. Journal of Computer Vision, 1998 SINA 11/1

SINA 11/1

SINA 11/1

Material from: Lecture 10, Advances in Computer Vision, MIT (online). Harris, C. and Stephens, M., A Combined Corner and Edge Detector, Proceedings of the 4th Alvey Vision Conference, pp. 147 151, 1988 D.Lowe and Cordelia Schmid, Recognition and Matching based on local invariant features, CVPR 003 Lowe, D., Object Recognition from Local Scale-Invariant Features, Proc. Of the International Conference on Computer Vision, Corfu, September 1999 Lindeberg, T., Edge and Ridge Detection with Automatic Scale Selection, Intl. Journal of Computer Vision 30(), 117-154, 1998 Lindeberg, T., Feature Detection With Automatic Scale Selection, Int. Journal of Computer Vision, 30(), 79-116, 1998 Lindeberg, T., Scale-space, In Encyclopedia of Computer Science and Engineering, 008 SINA 11/1