CSE 473/573 Computer Vision and Image Processing (CVIP)

Similar documents
Corners, Blobs & Descriptors. With slides from S. Lazebnik & S. Seitz, D. Lowe, A. Efros

Blob Detection CSC 767

SIFT keypoint detection. D. Lowe, Distinctive image features from scale-invariant keypoints, IJCV 60 (2), pp , 2004.

Blobs & Scale Invariance

Feature extraction: Corners and blobs

Detectors part II Descriptors

CS5670: Computer Vision

Edges and Scale. Image Features. Detecting edges. Origin of Edges. Solution: smooth first. Effects of noise

Lecture 8: Interest Point Detection. Saad J Bedros

Extract useful building blocks: blobs. the same image like for the corners

LoG Blob Finding and Scale. Scale Selection. Blobs (and scale selection) Achieving scale covariance. Blob detection in 2D. Blob detection in 2D

Image Analysis. Feature extraction: corners and blobs

Achieving scale covariance

Advances in Computer Vision. Prof. Bill Freeman. Image and shape descriptors. Readings: Mikolajczyk and Schmid; Belongie et al.

Properties of detectors Edge detectors Harris DoG Properties of descriptors SIFT HOG Shape context

Overview. Harris interest points. Comparing interest points (SSD, ZNCC, SIFT) Scale & affine invariant interest points

Invariant local features. Invariant Local Features. Classes of transformations. (Good) invariant local features. Case study: panorama stitching

Overview. Introduction to local features. Harris interest points + SSD, ZNCC, SIFT. Evaluation and comparison of different detectors

INTEREST POINTS AT DIFFERENT SCALES

Lecture 7: Finding Features (part 2/2)

Lecture 7: Finding Features (part 2/2)

Lecture 12. Local Feature Detection. Matching with Invariant Features. Why extract features? Why extract features? Why extract features?

Recap: edge detection. Source: D. Lowe, L. Fei-Fei

Corner detection: the basic idea

CS 3710: Visual Recognition Describing Images with Features. Adriana Kovashka Department of Computer Science January 8, 2015

Feature detectors and descriptors. Fei-Fei Li

Feature detectors and descriptors. Fei-Fei Li

SIFT: SCALE INVARIANT FEATURE TRANSFORM BY DAVID LOWE

SIFT: Scale Invariant Feature Transform

Image matching. by Diva Sian. by swashford

EE 6882 Visual Search Engine

Vlad Estivill-Castro (2016) Robots for People --- A project for intelligent integrated systems

Lecture 8: Interest Point Detection. Saad J Bedros

Advanced Features. Advanced Features: Topics. Jana Kosecka. Slides from: S. Thurn, D. Lowe, Forsyth and Ponce. Advanced features and feature matching

Lecture 6: Edge Detection. CAP 5415: Computer Vision Fall 2008

SURF Features. Jacky Baltes Dept. of Computer Science University of Manitoba WWW:

Lecture 6: Finding Features (part 1/2)

CS4670: Computer Vision Kavita Bala. Lecture 7: Harris Corner Detec=on

SIFT, GLOH, SURF descriptors. Dipartimento di Sistemi e Informatica

Harris Corner Detector

Lecture 7: Edge Detection

Filtering and Edge Detection

Local Features (contd.)

Edge Detection. CS 650: Computer Vision

Templates, Image Pyramids, and Filter Banks

Scale & Affine Invariant Interest Point Detectors

Instance-level recognition: Local invariant features. Cordelia Schmid INRIA, Grenoble

Edge Detection. Introduction to Computer Vision. Useful Mathematics Funcs. The bad news

Computer Vision Lecture 3

Introduction to Computer Vision

Wavelet-based Salient Points with Scale Information for Classification

Scale-space image processing

I Chen Lin, Assistant Professor Dept. of CS, National Chiao Tung University. Computer Vision: 4. Filtering

Image Filtering. Slides, adapted from. Steve Seitz and Rick Szeliski, U.Washington

Robert Collins CSE598G Mean-Shift Blob Tracking through Scale Space

Lecture 3: Linear Filters

Lecture 3: Linear Filters

Machine vision. Summary # 4. The mask for Laplacian is given

Lecture 04 Image Filtering

CITS 4402 Computer Vision

Scale & Affine Invariant Interest Point Detectors

Edge Detection PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2005

Overview. Introduction to local features. Harris interest points + SSD, ZNCC, SIFT. Evaluation and comparison of different detectors

Machine vision, spring 2018 Summary 4

Given a feature in I 1, how to find the best match in I 2?

Maximally Stable Local Description for Scale Selection

ECE 468: Digital Image Processing. Lecture 8

Laplacian Filters. Sobel Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters

Feature detection.

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

Instance-level l recognition. Cordelia Schmid INRIA

Instance-level recognition: Local invariant features. Cordelia Schmid INRIA, Grenoble

Computational Photography

TRACKING and DETECTION in COMPUTER VISION Filtering and edge detection

Edge Detection. Computer Vision P. Schrater Spring 2003

Advanced Edge Detection 1

Visual Object Recognition

ECE Digital Image Processing and Introduction to Computer Vision

Orientation Map Based Palmprint Recognition

Image Processing 1 (IP1) Bildverarbeitung 1

VIDEO SYNCHRONIZATION VIA SPACE-TIME INTEREST POINT DISTRIBUTION. Jingyu Yan and Marc Pollefeys

Lesson 04. KAZE, Non-linear diffusion filtering, ORB, MSER. Ing. Marek Hrúz, Ph.D.

Feature extraction: Corners and blobs

Lec 12 Review of Part I: (Hand-crafted) Features and Classifiers in Image Classification

Instance-level l recognition. Cordelia Schmid & Josef Sivic INRIA

EECS150 - Digital Design Lecture 15 SIFT2 + FSM. Recap and Outline

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Edge Detection. Image Processing - Computer Vision

Interest Operators. All lectures are from posted research papers. Harris Corner Detector: the first and most basic interest operator

Subsampling and image pyramids

Face detection and recognition. Detection Recognition Sally

Loss Functions and Optimization. Lecture 3-1

Feature Extraction and Image Processing

KAZE Features. 1 Introduction. Pablo Fernández Alcantarilla 1, Adrien Bartoli 1, and Andrew J. Davison 2

6.869 Advances in Computer Vision. Prof. Bill Freeman March 1, 2005

* h + = Lec 05: Interesting Points Detection. Image Analysis & Retrieval. Outline. Image Filtering. Recap of Lec 04 Image Filtering Edge Features

Roadmap. Introduction to image analysis (computer vision) Theory of edge detection. Applications

Instance-level recognition: Local invariant features. Cordelia Schmid INRIA, Grenoble

Scale Space Smoothing, Image Feature Extraction and Bessel Filters

Transcription:

CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu inwogu@buffalo.edu Lecture 11 Local Features 1

Schedule Last class We started local features Today More on local features Readings for today: Forsyth and Ponce Chapter 5

A hard feature matching problem NASA Mars Rover images

Overview Corners (Harris Detector) Blobs Descriptors

Harris corner detector summary Good corners High contrast Sharp change in edge orientation Image features at good corners Large gradients that change direction sharply Will have large eigenvalues Compute matrix H by summing over window

Overview Corners (Harris Detector) Blobs Descriptors

Blob detection with scale selection

Achieving scale covariance Goal: independently detect corresponding regions in scaled versions of the same image Need scale selection mechanism for finding characteristic region size that is covariant with the image transformation

Recall: Edge detection f Edge d dx g Derivative of Gaussian f d dx g Edge = maximum of derivative Source: S. Seitz

Edge detection, Take f Edge d dx g Second derivative of Gaussian (Laplacian) d dx f g Edge = zero crossing of second derivative Source: S. Seitz

From edges to blobs Edge = ripple Blob = superposition of two ripples maximum Spatial selection: the magnitude of the Laplacian response will achieve a maximum at the center of the blob, provided the scale of the Laplacian is matched to the scale of the blob

Estimating scale - I Assume we have detected a corner How big is the neighborhood? Use Laplacian of Gaussian filter Details on next slide Kernel looks like fuzzy dark blob on pale light foreground Scale (sigma) of Gaussian gives size of dark, light blob Strategy Apply Laplacian of Gaussian at different scales at corner response is a function of scale Choose the scale that gives the largest response the scale at which the neighborhood looks most like a fuzzy blob This is covariant

Scale selection We want to find the characteristic scale of the blob by convolving it with Laplacians at several scales and looking for the maximum response However, Laplacian response decays as scale increases: original signal (radius=8) increasing σ Why does this happen?

Scale normalization The response of a derivative of Gaussian filter to a perfect step edge decreases as σ increases 1 σ π

Scale normalization The response of a derivative of Gaussian filter to a perfect step edge decreases as σ increases To keep response the same (scale-invariant), must multiply Gaussian derivative by σ Laplacian is the second Gaussian derivative, so it must be multiplied by σ

Effect of scale normalization Original signal Unnormalized Laplacian response Scale-normalized Laplacian response maximum

Blob detection in D Laplacian of Gaussian: Circularly symmetric operator for blob detection in D y g x g g + = 4 1 1 σ σ πσ y x e y x + + =

Blob detection in D Laplacian of Gaussian: Circularly symmetric operator for blob detection in D Scale-normalized: g g g = σ + norm x y

Scale selection At what scale does the Laplacian achieve a maximum response to a binary circle of radius r? r image Laplacian

Scale selection At what scale does the Laplacian achieve a maximum response to a binary circle of radius r? To get maximum response, the zeros of the Laplacian have to be aligned with the circle Zeros of Laplacian is given by (up to scale): x + y 1 σ Therefore, the maximum response occurs at σ = r / =. 0 r circle image Laplacian

characteristic scale T. Lindeberg (1998). "Feature detection with automatic scale selection." International Journal of Computer Vision 30 (): pp 77--116. Characteristic scale We define the characteristic scale of a blob as the scale that produces peak of Laplacian response in the blob center

Scale-space blob detector 1. Convolve image with scale-normalized Laplacian at several scales. Find maxima of squared Laplacian response in scale-space

Scale-space blob detector: Example

Scale-space blob detector: Example

Scale-space blob detector: Example

Efficient implementation Approximating the Laplacian with a difference of Gaussians: ( (,, ) (,, )) L= Gxx xy + Gyy xy σ σ σ (Laplacian) DoG= Gxyk (,, σ) Gxy (,, σ) (Difference of Gaussians)

Efficient implementation David G. Lowe. "Distinctive image features from scale-invariant keypoints. IJCV 60 (), pp. 91-110, 004.

Scale Invariant Detectors Harris-Laplacian 1 Find local maximum of: Harris corner detector in space (image coordinates) Laplacian in scale scale y Harris x Laplacian Difference of Gaussians a.k.a. SIFT (Lowe) Find local maximum of: Difference of Gaussians in space and scale scale y DoG x DoG 1 K.Mikolajczyk, C.Schmid. Indexing Based on Scale Invariant Interest Points. ICCV 001 D.Lowe. Distinctive Image Features from Scale-Invariant Keypoints. Accepted to IJCV 004

Scale Invariant Detectors Experimental evaluation of detectors w.r.t. scale change Repeatability rate: # correspondences # possible correspondences K.Mikolajczyk, C.Schmid. Indexing Based on Scale Invariant Interest Points. ICCV 001

Invariance and covariance properties Laplacian (blob) response is invariant w.r.t. rotation and scaling Blob location is covariant w.r.t. rotation and scaling

Estimating scale - summary Assume we have detected a corner How big is the neighborhood? Use Laplacian of Gaussian filter Details on next slide Kernel looks like fuzzy dark blob on pale light foreground Scale (sigma) of Gaussian gives size of dark, light blob Strategy Apply Laplacian of Gaussian at different scales at corner response is a function of scale Choose the scale that gives the largest response the scale at which the neighborhood looks most like a fuzzy blob This is covariant

Estimating scale - summary Laplacian of a function Gaussian So Laplacian of Gaussian Convolve with image

Overview Corners (Harris Detector) Blobs Descriptors

Scale Invariant Feature Transform Basic idea: David Lowe IJCV 004 Take 16x16 square window around detected feature Compute edge orientation (angle of the gradient - 90 ) for each pixel Throw out weak edges (threshold gradient magnitude) Create histogram of surviving edge orientations 0 π angle histogram Adapted from slide by David Lowe

SIFT features Very strong record of effectiveness in matching applications use orientations to suppress intensity change effects use histograms so neighborhood need not be exactly localized weight large gradients higher than small gradients Weighting processes are different SIFT features behave very well using nearest neighbors matching i.e. the nearest neighbor to a query patch is usually a matching patch

Orientation Histogram 4x4 spatial bins (16 bins total) Gaussian center-weighting 8-bin orientation histogram per bin 8 x 16 = 18 dimensions total Normalized to unit norm

SIFT Features

Neighborhoods and SIFT - Key Points Algorithms to find neighborhoods Represented by location, scale and orientation Neighborhood is covariant If image is translated, scaled, rotated Neighborhood is translated, scaled, rotated Important property for matching Affine covariant constructions are available Once found, describe with SIFT features A representation of local orientation histograms, comparable to HOG Normalized differently

SIFT Scale Invariant Feature Transform 1 Empirically found to show very good performance, invariant to image rotation, scale, intensity change, and to moderate affine transformations Scale =.5 Rotation = 45 0 1 D.Lowe. Distinctive Image Features from Scale-Invariant Keypoints. Accepted to IJCV 004 K.Mikolajczyk, C.Schmid. A Performance Evaluation of Local Descriptors. CVPR 003

SIFT invariances Spatial binning gives tolerance to small shifts in location and scale Explicit orientation normalization Photometric normalization by making all vectors unit norm Orientation histogram gives robustness to small local deformations

Summary of SIFT Extraordinarily robust matching technique Can handle changes in viewpoint Up to about 60 degree out of plane rotation Can handle significant changes in illumination Sometimes even day vs. night (below) Fast and efficient can run in real time Lots of code available http://people.csail.mit.edu/albert/ladypack/wiki/index.php/known_implementations_of_sift

Summary We started last class with linear filters including filter construction and separability, convolution methods and image blurring This week we discussed filter derivatives and scale space/pyramids including 1 st and nd derivatives of the Gaussian filters, the Gaussian pyramid and the Laplacian pyramid In this lecture we discussed how DoG filters detect edges and how post-processing works specifically we focused on the Canny edge detector and its post-processing techniques 4

Slide Credits David A. Forsyth - UIUC Svetlana Lazebnik UIUC Rob Fergus NYU 43

Next class Texture Readings for next lecture: Forsyth and Ponce 6.1 6.4, Szelinski 10.5 (optional) Readings for today: Forsyth and Ponce 5; Szeliski 3.1-3.3 44

Questions 45