1 Image Features Hao Jiang Sept. 2014. Image Matching 2.

Slides:



Advertisements
Similar presentations
Distinctive Image Features from Scale-Invariant Keypoints
Advertisements

Feature extraction: Corners
Summary of Friday A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging planes or.
CSE 473/573 Computer Vision and Image Processing (CVIP)
Interest points CSE P 576 Ali Farhadi Many slides from Steve Seitz, Larry Zitnick.
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
TP14 - Local features: detection and description Computer Vision, FCUP, 2014 Miguel Coimbra Slides by Prof. Kristen Grauman.
Matching with Invariant Features
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Invariant Features.
Algorithms and Applications in Computer Vision
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Harris corner detector
Lecture 6: Feature matching CS4670: Computer Vision Noah Snavely.
1 Image Features - I Hao Jiang Computer Science Department Sept. 22, 2009.
Lecture 4: Feature matching
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and.
Feature extraction: Corners and blobs
Scale Invariant Feature Transform (SIFT)
Image Features: Descriptors and matching
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Scale-Invariant Feature Transform (SIFT) Jinxiang Chai.
Summary of Previous Lecture A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging.
Feature Matching and RANSAC : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Lecture 06 06/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
CSE 185 Introduction to Computer Vision Local Invariant Features.
CSCE 643 Computer Vision: Extractions of Image Features Jinxiang Chai.
Feature extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Local invariant features 1 Thursday October 3 rd 2013 Neelima Chavali Virginia Tech.
Lecture 7: Features Part 2 CS4670/5670: Computer Vision Noah Snavely.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Notes on the Harris Detector
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Harris Corner Detector & Scale Invariant Feature Transform (SIFT)
Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.
Distinctive Image Features from Scale-Invariant Keypoints David Lowe Presented by Tony X. Han March 11, 2008.
Feature extraction: Corners and blobs. Why extract features? Motivation: panorama stitching We have two images – how do we combine them?
Local features and image matching October 1 st 2015 Devi Parikh Virginia Tech Disclaimer: Many slides have been borrowed from Kristen Grauman, who may.
Automatic Image Alignment : Computational Photography Alexei Efros, CMU, Fall 2011 with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Features Jan-Michael Frahm.
CS654: Digital Image Analysis
Automatic Image Alignment with a lot of slides stolen from Steve Seitz and Rick Szeliski © Mike Nese CS194: Image Manipulation & Computational Photography.
Summary of Monday A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging planes or.
CSE 185 Introduction to Computer Vision Local Invariant Features.
Lecture 10: Harris Corner Detector CS4670/5670: Computer Vision Kavita Bala.
Keypoint extraction: Corners 9300 Harris Corners Pkwy, Charlotte, NC.
Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging.
MAN-522: Computer Vision Edge detection Feature and blob detection
Interest Points EE/CSE 576 Linda Shapiro.
Distinctive Image Features from Scale-Invariant Keypoints
Local features: main components
3D Vision Interest Points.
TP12 - Local features: detection and description
Source: D. Lowe, L. Fei-Fei Recap: edge detection Source: D. Lowe, L. Fei-Fei.
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/22
Corners and Interest Points
CAP 5415 Computer Vision Fall 2012 Dr. Mubarak Shah Lecture-5
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Local features and image matching
Lecture VI: Corner and Blob Detection
Lecture 5: Feature invariance
Lecture 5: Feature invariance
Corner Detection COMP 4900C Winter 2008.
Presentation transcript:

1 Image Features Hao Jiang Sept. 2014

Image Matching 2

Image Mosaicing 3

How can This be Done Automatically? 4

5 Easy to match Hard to match

Image Local Structures 6 Step Ridge Peak Valley CornerJunction

Image Local Structures 7 Step Ridge Peak Valley CornerJunction Line Structures: “Edge” Point Structures: “Corners”

Regions 8

An Example 9 edge Region corners

Edge Detection in Matlab 10 >> im = imread('flower.jpg'); >> im = im2double(im); >> im = rgb2gray(im); >> ed = edge(im, 'canny', 0.15);

How to Find an Edge? 11 A 1D edge

12 f(x) f’(x) f’’(x)

Extend to 2D 13 a b There is a direction in which image f(x,y) increases the fastest. The direction is called the gradient direction. Gradient [df/dx df/dy] Magnitude: sqrt(fx^2 + fy^2) Direction: atan2(fy, fx)

Finite Difference  Approximating derivatives using finite difference.  Finite difference and convolution 14

Noise Reduction noise 0.03 noise

Noise Reduction 16

Gaussian Filtering in Edge Detection 17

Gaussian Filtering in Edge Detection 18 h * (g * f) = (h * g) * f Difference KernelGaussian Kernel image Difference Gaussian Kernel 18 [1,-1]

Edge Detection in Images  Gaussian smoothed filtering in x and y directions: Ix, Iy  Non-maximum suppression for |Ix|+|Iy|  Edge Tracing – double thresholding. 19

Edge Detection Using Matlab  Canny edge detector: edge(image, ‘canny’, threshold)  Sobel edge detector: edge(image, ‘sobel’, threshold)  Prewitt edge detector: edge(image, ‘prewitt’, threshold) 20

21 D. Martin, C. Fowlkes, D. Tal, J. Malik. "A Database of Human Segmented Natural Images and its Application to Evaluating Segmentation Algorithms and Measuring Ecological Statistics”, ICCV, 2001 Berkeley Segmentation DataSet [BSDS]

Corner Detection  Corner is a point feature that has large changing rate in all directions. 22 StepLine Corner Flat region

Harris corner detector  C.Harris, M.Stephens. “A Combined Corner and Edge Detector”. 1988

The Basic Idea  We should easily recognize the point by looking through a small window  Shifting a window in any direction should give a large change in intensity

Harris Detector: Basic Idea “flat” region: no change in all directions “edge”: no change along the edge direction “corner”: significant change in all directions

Find a Corner 26 Compute matrix H = in each window. If the ratio (Ix2 * Iy2 – Ixy ^2 ) R = > T (Ix2 + Iy2 + eps) We have a corner Ix2 Ixy Ixy Iy2 =

Harris Detector: Workflow

Compute corner response R

Harris Detector: Workflow Find points with large corner response: R>threshold

Harris Detector: Workflow Take only the points of local maxima of R

Harris Detector: Workflow

Corner Detection Programming 32

Harris Detector: Some Properties  Rotation invariance Ellipse rotates but its shape (i.e. eigenvalues) remains the same Corner response R is invariant to image rotation

Harris Detector: Some Properties  Partial invariance to affine intensity change Only derivatives are used => invariance to intensity shift I  I + b Intensity scale: I  a I R x (image coordinate) threshold R x (image coordinate)

Harris Detector: Some Properties  But: non-invariant to image scale! All points will be classified as edges Corner !

Scale Invariant Detection  Consider regions (e.g. circles) of different sizes around a point  Regions of corresponding sizes will look the same in both images

Scale Invariant Detection  The problem: how do we choose corresponding circles independently in each image?  Choose the scale of the “best” corner

Descriptors Invariant to Rotation  Find local orientation Dominant direction of gradient Extract image patches relative to this orientation

Descriptor Vector  Orientation = blurred gradient  Rotation Invariant Frame  Scale-space position (x, y, s) + orientation (  )

Scale and Rotation Invariant Feature  SIFT (D. Lowe, UBC) 40

Stable Feature 41

Stable Feature 42 Local max/min point’s values are stable when the scale changes

SIFT 43 Filtering the image using filters at different scales. (for example using Gaussian filter)

Difference of Gaussian 44

SIFT Feature Points 45 (b) Shows the points at the local max/min of DOG scale space for the image in (a).

Feature matching ?

Exhaustive search  for each feature in one image, look at all the other features in the other image(s) Hashing  compute a short descriptor from each feature vector, or hash longer descriptors (randomly) Nearest neighbor techniques  kd-trees and their variants

What about outliers? ?

Feature-space outlier rejection  Let’s not match all features, but only these that have “similar enough” matches?  How can we do it?  SSD(patch1,patch2) < threshold  How to set threshold?

Feature-space outlier rejection  A better way [Lowe, 1999]:  1-NN: SSD of the closest match  2-NN: SSD of the second-closest match  Look at how much better 1-NN is than 2-NN, e.g. 1-NN/2-NN  That is, is our best match so much better than the rest?

Feature-space outliner rejection  Can we now compute H from the blue points?  No! Still too many outliers…  What can we do?