Computer Vision I - Algorithms and Applications: Image Formation Process Part 2

Similar documents
Computer Vision I - Image Matching and Image Formation

Computer Vision I - Appearance-based Matching and Projective Geometry

Computer Vision I - Appearance-based Matching and Projective Geometry

Local features: detection and description. Local invariant features

Outline 7/2/201011/6/

Local features and image matching. Prof. Xin Yang HUST

CS6670: Computer Vision

Geometric camera models and calibration

Range Sensors (time of flight) (1)

Local Features: Detection, Description & Matching

Automatic Image Alignment (feature-based)

CS4670: Computer Vision

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Mosaics. Today s Readings

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

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

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

The SIFT (Scale Invariant Feature

Local Feature Detectors

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

CS5670: Computer Vision

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

Local features: detection and description May 12 th, 2015

3D graphics, raster and colors CS312 Fall 2010

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

10/5/09 1. d = 2. Range Sensors (time of flight) (2) Ultrasonic Sensor (time of flight, sound) (1) Ultrasonic Sensor (time of flight, sound) (2) 4.1.

Representing the World

Computer Vision for HCI. Topics of This Lecture

Computer Vision Course Lecture 02. Image Formation Light and Color. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 04/03/2015

Topics and things to know about them:

Miniature faking. In close-up photo, the depth of field is limited.

Light. Computer Vision. James Hays

Image Formation: Light and Shading. Introduction to Computer Vision CSE 152 Lecture 3

Scale Invariant Feature Transform

HISTOGRAMS OF ORIENTATIO N GRADIENTS

Digital Image Processing COSC 6380/4393

Feature Based Registration - Image Alignment

Laser sensors. Transmitter. Receiver. Basilio Bona ROBOTICA 03CFIOR

CS201 Computer Vision Lect 4 - Image Formation

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

Multiple-Choice Questionnaire Group C

Chapter 32 Light: Reflection and Refraction. Copyright 2009 Pearson Education, Inc.

Lenses: Focus and Defocus

All good things must...

Image correspondences and structure from motion

Scale Invariant Feature Transform

Chapter 2 - Fundamentals. Comunicação Visual Interactiva

Motion illusion, rotating snakes

Feature descriptors and matching

EXAM SOLUTIONS. Computer Vision Course 2D1420 Thursday, 11 th of march 2003,

Midterm Examination CS 534: Computational Photography

Announcements. Image Formation: Light and Shading. Photometric image formation. Geometric image formation

Computer Vision. The image formation process

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

Outline. ETN-FPI Training School on Plenoptic Sensing

CS6670: Computer Vision

Game Programming. Bing-Yu Chen National Taiwan University

Stereo Vision. MAN-522 Computer Vision

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

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

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

Project 4 Results. Representation. Data. Learning. Zachary, Hung-I, Paul, Emanuel. SIFT and HoG are popular and successful.

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

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Local invariant features

Automatic Image Alignment

Other approaches to obtaining 3D structure

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

Information page for written examinations at Linköping University TER2

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Computer Vision I - Filtering and Feature detection

Radiometry and reflectance

Reflectance & Lighting

Complex Sensors: Cameras, Visual Sensing. The Robotics Primer (Ch. 9) ECE 497: Introduction to Mobile Robotics -Visual Sensors

CAP 5415 Computer Vision Fall 2012

CS4495/6495 Introduction to Computer Vision

Contents I IMAGE FORMATION 1

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

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

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

Part I The Basic Algorithm. Principles of Photon Mapping. A two-pass global illumination method Pass I Computing the photon map

Computer and Machine Vision

Image Formation. Antonino Furnari. Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

All human beings desire to know. [...] sight, more than any other senses, gives us knowledge of things and clarifies many differences among them.

Jingyi Yu CISC 849. Department of Computer and Information Science

Object Recognition with Invariant Features

Automatic Image Alignment

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 13!

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

Computer Graphics. - Ray Tracing I - Marcus Magnor Philipp Slusallek. Computer Graphics WS05/06 Ray Tracing I

Dense 3D Reconstruction. Christiano Gava

Assignment #2. (Due date: 11/6/2012)

SIFT - scale-invariant feature transform Konrad Schindler

Cameras and Stereo CSE 455. Linda Shapiro

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

Lecture 19: Depth Cameras. Visual Computing Systems CMU , Fall 2013

Transcription:

Computer Vision I - Algorithms and Applications: Image Formation Process Part 2 Carsten Rother 17/11/2013 Computer Vision I: Image Formation Process

Computer Vision I: Image Formation Process 17/11/2013 2 Roadmap this lecture Geometric primitives and transformations (sec. 2.1.1-2.1.4) Geometric image formation (sec 2.1.5, 2.1.6) Pinhole camera Lens effects Photometric image formation process (sec 2.2) The Human eye Camera Types and Hardware (sec 2.3) Appearance based matching

Reminder: Pinhole Camera (Geometry) Computer Vision I: Image Formation Process 17/11/2013 3 Camera matrix P has 11 DoF Intrinsic parameters Principal point coordinates (p x, p y ) Focal length f Pixel magnification factors m Skew (non-rectangular pixels) s x = P X x = K R (I 3 3 C) ~ X K = f s p x 0 mf p y 0 0 1 Extrinsic parameters ~ Rotation R (3DoF) and translation C (3DoF) relative to world coordinate system

Reminder: Lens effects Computer Vision I: Image Formation Process 17/11/2013 4

Computer Vision I: Image Formation Process 17/11/2013 5 Roadmap this lecture Geometric primitives and transformations (sec. 2.1.1-2.1.4) Geometric image formation (sec 2.1.5, 2.1.6) Pinhole camera Lens effects Photometric image formation process (sec 2.2) The Human eye Camera Types and Hardware (sec 2.3) Appearance based matching

Image formation Process Computer Vision I: Image Formation Process 17/11/2013 6

Model of the Surface Computer Vision I: Image Formation Process 17/11/2013 7 BRDF (Bi-diretcional Reflectance Function) light x ω i ω o Rendering equation: Outgoing energy (shining surface) Incoming light Outgoing energy: t time x position λ wavelength BRDF function (4DoF only ω i, ω o considered) ω i / ω o - incoming / outgoing direction Fore-shorting angle (always 0)

Example: diffuse illumination Computer Vision I: Image Formation Process 17/11/2013 8 Rendering equation DIFFUSE 0 constant f r same for all ω o Single Light source: 0 constant constant (fixed ω i ) Shading effects come from: max(0, w i n)

Examples: BRDFs Computer Vision I: Image Formation Process 17/11/2013 9 Rendering equation (single light source) 0 constant (fixed ω i ) DIFFUSE SPECULAR DIFFUSE + ROUGH SPECULAR f r f r f r Single light source (top, right)

Inside a graphics engine Computer Vision I: Image Formation Process 17/11/2013 10 Rendering equation Ray tracing Radiosity

Example Computer Vision I: Image Formation Process 17/11/2013 11 Texture only 3D scene in blender Direct light Global (direct + indirect) light

How to model light? Computer Vision I: Image Formation Process 17/11/2013 12 Point light source Area light source Non-local illumination situation can be approximated with spherical harmonics First 9 spherical harmonics (gray scale) They can produce this

Capturig BRDF / BTF capture Computer Vision I: Image Formation Process 17/11/2013 13 BTF Bidirectional Texture function. At every spatial location x a different BRDF [Christopher Schwartz, Ralf Sarlette, Michael Weinmann and Reinhard Klein]

Fabricating BRDFs Computer Vision I: Image Formation Process 17/11/2013 14 [Levin et al. Siggraph 2013]

Single Image Computer Vision I: Image Formation Process 17/11/2013 15 [Barron and Malik 2012]

Single Image far from being solved Computer Vision I: Image Formation Process 17/11/2013 16 [Barron and Malik 2012]

Reconstruction and recognition Computer Vision I: Image Formation Process 17/11/2013 17 [Vinett, Rother, Torr, NIPS 13]

Computer Vision I: Image Formation Process 17/11/2013 18 Roadmap this lecture Geometric primitives and transformations (sec. 2.1.1-2.1.4) Geometric image formation (sec 2.1.5, 2.1.6) Pinhole camera Lens effects Photometric image formation process (sec 2.2) The Human eye Camera Types and Hardware (sec 2.3) Appearance based matching

Computer Vision I: Image Formation Process 17/11/2013 19 The Human eye The retina contains different types of sensors: cones Zapfen (colors, 6 million) and rods Staebchen (gray levels, 120 million) The resolution is much higher In fovea centralis Light first passes through the layer of neurons before it reaches photo sensors (smoothing). Only in the fovea centralis the light hits directly the photo sensors Signal goes out the other way: Retina Ganglion cells (1 million) Optic nerve 1 MPixel Camera?

Spatial resolution Computer Vision I: Image Formation Process 17/11/2013 20.

Spatial resolution 2MP Camera, far from the screen. Image Processing: Human seeing 5

Spatial resolution 5MP Camera, close to the screen. Image Processing: Human seeing 5

Spatial resolution (secrets) The resolution is much higher In fovea centralis The Information is pre-processed by Ganglion cells (Compare: 3072 2304=7MPixel, 2.4 MB RGB JPEG lossless) No still image, but a Video (super-resolution) Scanning technique Saccades Image Processing: Human seeing 8

Eye Saccades Computer Vision I: Image Formation Process 17/11/2013 24 Eyes never move uniformly, but jump in saccades (approximately 15-100 ms duration between fixation points) Saccades are driven by the importance of the scene parts (eyes, mouth etc).

The Human eye Computer Vision I: Image Formation Process 17/11/2013 25 cones Zapfen What is light? Spectrum, i.e. a function of the wavelength Different colors can be computed by adding /subtracting signal of rods Spectral resolution of the eye is relatively bad due to projection

Computer Vision I: Image Formation Process 17/11/2013 26 Roadmap this lecture Geometric primitives and transformations (sec. 2.1.1-2.1.4) Geometric image formation (sec 2.1.5, 2.1.6) Pinhole camera Lens effects Photometric image formation process (sec 2.2) The Human eye Camera Types and Hardware (sec 2.3) Appearance based matching

Camera types Computer Vision I: Image Formation Process 17/11/2013 27 RGB cameras Depth cameras: Passive RGB stereo Active Structured light Active Time of Flight Lightfield cameras

Digital RGB cameras Computer Vision I: Image Formation Process 17/11/2013 28 A digital camera replaces film with a sensor array Each cell in the sensor array is light-sensitive diode that converts photons to electrons Two common types: Charge Coupled Device (CCD) Complementary metal oxide semiconductor (CMOS)

CCD versus CMOS Computer Vision I: Image Formation Process 17/11/2013 29 CCD: move charge from pixel to pixel and then converts to voltage and digital signal Negative: more expensive CMOS: converts to voltage inside the pixel Negative: slower to read out image ("rolling shutter" effect) See details on: http://www.dalsa.com/shared/content/pdfs/ccd_vs_cmos_litwiller_2005.pdf

Color - Filters Computer Vision I: Image Formation Process 17/11/2013 30

Problem with de-mosaicing: color moiré Computer Vision I: Image Formation Process 17/11/2013 31

Cause of color moiré Computer Vision I: Image Formation Process 17/11/2013 32

General problems with RGB cameras Computer Vision I: Image Formation Process 17/11/2013 33 Noise low light is where you most notice noise light sensitivity (ISO) / noise tradeoff stuck pixels Resolution: Are more megapixels better? requires higher quality lens noise issues In-camera processing oversharpening can produce halos RAW vs. compressed file size vs. quality tradeoff Blooming charge overflowing into neighboring pixels More info online: http://electronics.howstuffworks.com/ http://www.dpreview.com/ http://www.dxomark.com/

In-camera processing Computer Vision I: Image Formation Process 17/11/2013 34

Historical context of cameras Computer Vision I: Image Formation Process 17/11/2013 35

Camera types Computer Vision I: Image Formation Process 17/11/2013 36 RGB cameras Depth cameras: Passive RGB stereo Active Structured light Active Time of Flight Lightfield cameras

Passive Depth Camera RGB stereo Computer Vision I: Image Formation Process 17/11/2013 37 Easy to match hard to match

Active Depth Camera structured light Computer Vision I: Image Formation Process 17/11/2013 38 IR camera IR projector

Depth Camera structured light Computer Vision I: Image Formation Process 17/11/2013 39 Reference image from IR projector We have to perform matching (as with passive stereo camera) but now we have a very textured image Only works well when external IR light is not too string (not under sunlight)

Depth Camera structure Light Computer Vision I: Image Formation Process 17/11/2013 40

Halfway Computer Vision I: Image Formation Process 17/11/2013 41 3 Minutes Break Question?

Depth camera time of flight Computer Vision I: Image Formation Process 17/11/2013 42 Intensity image Depth Image PMD Camera

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 43 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 44 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 45 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 46 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 47 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Computer Vision I: Image Formation Process 17/11/2013 48 Modulated Light Source Cam Lens Sensor Pixel [slide credits: Rahul Nair, Daniel Kondermann]

Principle Time of Flight Sensor Pixel Φ amplitude offset Measure: Phase shift Amplitude and offset Output: Depth Image (from phase shift) (wavelength determines the range of depth values; around 3.5 meter) 3.5meter Φ means d= 0.3m or 3.8m or 7.3m or (take differently modulated frequences) Intensity image (from amplitude and offset) [slide credits: Rahul Nair, Daniel Kondermann] Computer Vision I: Image Formation Process 17/11/2013 49

Depth camera time of flight Computer Vision I: Image Formation Process 17/11/2013 50 One of the biggest problems is multi-path

Lightfield cameras Computer Vision I: Image Formation Process 17/11/2013 51 Capture all light: http://www.lytro.com/camera/ Refocus and change perspective with one image

Computer Vision I: Image Formation Process 17/11/2013 52 Roadmap this lecture Geometric primitives and transformations (sec. 2.1.1-2.1.4) Geometric image formation (sec 2.1.5, 2.1.6) Pinhole camera Lens effects Photometric image formation process (sec 2.2) The Human eye Camera Types and Hardware (sec 2.3) Appearance based matching

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 53 Find interest points Find orientated patches around interest points to capture appearance Encode patch appearance in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 54 Find interest points Find orientated patches around interest points to capture appearance Encode patch appearance in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

Reminder Lecture 3: Harris Corner Detector Computer Vision I: Image Formation Process 17/11/2013 55 Auto-correlation function: Harris measure:

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 56 Find interest points Find orientated patches around interest points to capture appearance Encode patch appearance in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

How to deal with orientation Computer Vision I: Image Formation Process 17/11/2013 57 Orientate with image gradient:

Choose a patch around each point Computer Vision I: Image Formation Process 17/11/2013 58 How to deal with scale?

Choose a patch around each point Computer Vision I: Image Formation Process 17/11/2013 59 How to deal with scale?

Choose a patch around each point Computer Vision I: Image Formation Process 17/11/2013 60 How to deal with scale?

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 61 f is Laplacian of Gaussian (LoG) operator. Measures an average edge-ness in all directions 2 G(σ) I = 2 (G(σ) I) x 2 + 2 (G(σ) I) y 2 (details on page 191)

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 62

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 63

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 64

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 65 We could match-up these curves and find unique corresponding points

Scale selection (illustration) Computer Vision I: Image Formation Process 17/11/2013 66 Simpler: Find maxima /minima in image

Extensions: general affine transformations Computer Vision I: Image Formation Process 17/11/2013 67

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 68 Find interest points Find orientated patches around interest points to capture appearance Encode patch appearance in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

SIFT feature 64 pixels Computer Vision I: Image Formation Process 17/11/2013 69 v 64 pixels 4*4=16 cells Each cell has an 8 bin histogram (smoothed across cells) In total: 16*8 values, i.e. 128D vector A cell has 16x16 pixels (here 8x8 for illustration only) (blue circle shows center weighting) [Lowe 2004]

SIFT feature is very popular Computer Vision I: Image Formation Process 17/11/2013 70 Fast to compute Can handle large changes in viewpoint well (up to 60 o out of plane rotation) Can handle photometric changes (even day versus night)

Many other feature descriptors Computer Vision I: Image Formation Process 17/11/2013 71 MOPS [Brown, Szeliski and Winder 2005] SURF [Herbert Bay et al. 2006] DAISY [Tola, Lepetit, Fua 2010] Shape Context. DAISY

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 72 Find interest points Find orientated patches around interest points to capture appearance Encode patch appearance in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

Appearance-based matching Computer Vision I: Image Formation Process 17/11/2013 73

Appearance-based matching Computer Vision I: Image Formation Process 17/11/2013 74 N patches (e.g. N = 1000) N patches (e.g. N = 1000) Goal: 1) Find for each patch in left image the closest in right image 2) Accept all matches where descriptors are similar enough Methods: Naïve: N 2 tests (here 1 Million) Hashing Hashing (locality sensitive hashing) Kd-tree; on average NlogN tests (here 10,000) (Hashing Function) Index for patch DB

Subtask: Search for one patch Computer Vision I: Image Formation Process 17/11/2013 75 Query patch? Database image

Nearest Neighbor Search Computer Vision I: Image Formation Process 17/11/2013 76 Tracking in Video The video is the Database Image retrieval Whole image has one descriptor Database is an image collection

Kd-tree (d stands for dimension) Computer Vision I: Image Formation Process 17/11/2013 77 Build the tree over database image: 1) Cycle over dimensions: x,y,z,x,y,z,. 2) Put in axis-aligned hyper-planes (split at median of point set) Example in 3D Result: balanced tree Nearest Neighbour search (to come) [Invented by Jon Louis Bentley 1975]

Examples Computer Vision I: Image Formation Process 17/11/2013 78 2 3 4 6 1 5

Dimension 2 Examples Computer Vision I: Image Formation Process 17/11/2013 79 Kd-tree 8 3 4 6 d1>5 2 1,2,3 4,5,6 4 1 5 0 5 10 Dimension 1

Dimension 2 Examples Computer Vision I: Image Formation Process 17/11/2013 80 Kd-tree 8 3 4 6 d1>5 2 d2>4.8 d2>6.5 4 5 1 1 2,3 5 4,6 0 5 10 Dimension 1

Dimension 2 Examples Computer Vision I: Image Formation Process 17/11/2013 81 Kd-tree 8 3 4 6 d1>5 2 d2>4.8 d2>6.5 4 5 1 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 82 Kd-tree 8 3 4 6 d1>5 2 d2>4.8 d2>6.5 4 5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 83 Kd-tree 8 3 4 6 d1>5 4 2 5 search radius d2>4.8 d2>6.5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6 visited current best

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 84 Kd-tree 8 3 4 6 d1>5 Radius not intersected 4 2 5 search radius d2>4.8 d2>6.5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6 visited current best

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 85 Kd-tree 8 3 4 6 Radius intersects so go down the subtree d1>5 4 2 5 search radius d2>4.8 d2>6.5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6 visited current best

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 86 Kd-tree 8 3 4 6 d1>5 4 2 1 5 query search radius better solution found d2>4.8 d2>6.5 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6 visited current best

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 87 Kd-tree 8 3 4 6 d1>5 4 2 5 search radius d2>4.8 d2>6.5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 no need to visit these subtrees 2 3 4 6 visited current best

Dimension 2 Examples: nearest neighbor search Computer Vision I: Image Formation Process 17/11/2013 88 Kd-tree 8 3 4 6 d1>5 4 2 5 search radius d2>4.8 d2>6.5 1 query 1 d1>1 5 d1>5.5 0 5 10 Dimension 1 2 3 4 6 Done since root-node is marked in both ways visited current best

Nearest neighbour search pseudo code Computer Vision I: Image Formation Process 17/11/2013 89 Input: query point Pseudo code Step 1: Find leave node (bucket) with query point Step 2: Make hyper-sphere with radius (current best and query point) Step3: go up the tree and see if hyper-plane intersects hyper-sphere Step 3a: no intersection: mark tree branch as visited since no better point can be found there. If node is root node then stop. Step 3b: intersection: go down the branch to find potentially a better point. If so, mark as current best and go to Step 2. Nothing better possible Hyper-plane positions Current best query On average O(log N)

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 90 From Andrew Moore: http://www.cs.cmu.edu/~awm/animations/kdtree/

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 91

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 92

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 93

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 94

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 95

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 96

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 97

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 98

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 99

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 100

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 101

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 102

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 103

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 104

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 105

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 106

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 107

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 108

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 109

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 110

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 111

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 112

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 113

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 114

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 115

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 116

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 117

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 118

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 119

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 120

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 121

Example with many points in 2D Computer Vision I: Image Formation Process 17/11/2013 122

Roadmap: matching 2 Images (appearance & geometry) Computer Vision I: Image Formation Process 17/11/2013 123 Find interest points (including different scales) Find orientated patches around interest points to capture appearance Encode patch in a descriptor Find matching patches according to appearance (similar descriptors) Verify matching patches according to geometry v

Reading for next class Computer Vision I: Basics of Image Processing 17/11/2013 124 This lecture: Photometric image formation (sec 2.2) Camera Types and Hardware (sec 2.3) Appearance matching: (sec. 4.1.2-4.1.3) Next lecture: Two-view Geometry (Hartley Zissermann)