Robust Real Time Pattern Matching using Bayesian Sequential Hypothesis Testing Ofir PeleMichael Werman The Hebrew University of Jerusalem TexPoint fonts.

Slides:



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

BRIEF: Binary Robust Independent Elementary Features
Learning deformable models Yali Amit, University of Chicago Alain Trouvé, CMLA Cachan.
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
Fast Algorithms For Hierarchical Range Histogram Constructions
BRISK (Presented by Josh Gleason)
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Low Complexity Keypoint Recognition and Pose Estimation Vincent Lepetit.
Proportion Priors for Image Sequence Segmentation Claudia Nieuwenhuis, etc. ICCV 2013 Oral.
The loss function, the normal equation,
HMM-BASED PATTERN DETECTION. Outline  Markov Process  Hidden Markov Models Elements Basic Problems Evaluation Optimization Training Implementation 2-D.
1 Robust Video Stabilization Based on Particle Filter Tracking of Projected Camera Motion (IEEE 2009) Junlan Yang University of Illinois,Chicago.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
Computing motion between images
1 Image filtering Hybrid Images, Oliva et al.,
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Most slides from Steve Seitz
Particle Filters++ TexPoint fonts used in EMF.
Face Recognition Using Neural Networks Presented By: Hadis Mohseni Leila Taghavi Atefeh Mirsafian.
TEMPLATE DESIGN © The computation of the confidence over K multiple scans is computed as if all scene points came from.
Robust fitting Prof. Noah Snavely CS1114
©2003/04 Alessandro Bogliolo Background Information theory Probability theory Algorithms.
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
Sequential Detection Overview & Open Problems George V. Moustakides, University of Patras, GREECE.
Mean-shift and its application for object tracking
SIS Sequential Importance Sampling Advanced Methods In Simulation Winter 2009 Presented by: Chen Bukay, Ella Pemov, Amit Dvash.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Learning a Fast Emulator of a Binary Decision Process Center for Machine Perception Czech Technical University, Prague ACCV 2007, Tokyo, Japan Jan Šochman.
Sparse Matrix Factorizations for Hyperspectral Unmixing John Wright Visual Computing Group Microsoft Research Asia Sept. 30, 2010 TexPoint fonts used in.
CVPR 2003 Tutorial Recognition and Matching Based on Local Invariant Features David Lowe Computer Science Department University of British Columbia.
Sparse Bayesian Learning for Efficient Visual Tracking O. Williams, A. Blake & R. Cipolloa PAMI, Aug Presented by Yuting Qi Machine Learning Reading.
Chapter 3: Maximum-Likelihood Parameter Estimation l Introduction l Maximum-Likelihood Estimation l Multivariate Case: unknown , known  l Univariate.
Looking at people and Image-based Localisation Roberto Cipolla Department of Engineering Research team
Guest lecture: Feature Selection Alan Qi Dec 2, 2004.
LUT Method For Inverse Halftone 資工四 林丞蔚 林耿賢. Outline Introduction Methods for Halftoning LUT Inverse Halftone Tree Structured LUT Conclusion.
Distinctive Image Features from Scale-Invariant Keypoints
776 Computer Vision Jan-Michael Frahm Spring 2012.
Application of Dynamic Programming to Optimal Learning Problems Peter Frazier Warren Powell Savas Dayanik Department of Operations Research and Financial.
Intro. ANN & Fuzzy Systems Lecture 16. Classification (II): Practical Considerations.
Sequential Off-line Learning with Knowledge Gradients Peter Frazier Warren Powell Savas Dayanik Department of Operations Research and Financial Engineering.
Frank Bergschneider February 21, 2014 Presented to National Instruments.
SIFT.
Course : T Computer Vision
SIFT Scale-Invariant Feature Transform David Lowe
Distinctive Image Features from Scale-Invariant Keypoints
LOCUS: Learning Object Classes with Unsupervised Segmentation
Feature description and matching
Dynamical Statistical Shape Priors for Level Set Based Tracking
Fast and Robust Object Tracking with Adaptive Detection
Image filtering Hybrid Images, Oliva et al.,
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Where did we stop? The Bayes decision rule guarantees an optimal classification… … But it requires the knowledge of P(ci|x) (or p(x|ci) and P(ci)) We.
Most slides from Steve Seitz
Image filtering Images by Pawan Sinha.
SIFT.
Image filtering
Image filtering
The loss function, the normal equation,
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
Mathematical Foundations of BME Reza Shadmehr
Comparing Images Using Hausdorff Distance
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
Feature descriptors and matching
Most slides from Steve Seitz
Presented by Xu Miao April 20, 2005
Lecture 16. Classification (II): Practical Considerations
Presentation transcript:

Robust Real Time Pattern Matching using Bayesian Sequential Hypothesis Testing Ofir PeleMichael Werman The Hebrew University of Jerusalem TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA A A A AA A AAA A

Goal of Work Find patterns in images In real time Under different transformations: – Light changes – Occlusion – Non rigid deformations – (small) geometrical transforms

Pattern Occurrence of pattern in image

Pattern Occurrence of pattern in image

Performance Image Size: 640x480 pixels 0.037sec Online Time: sec

Related Work – Fast Pattern Matching Scale Invariant Features – Lowe 04 Normalized Cross Correlation – Lewis 95 Fast filters for norm distances – Cha 00, Hel-Or and Hel-Or 05 Sequential sampling – Barnea and Silverman 72, Pereira and Mascarenhas 84 – Our method

Contributions A simple and robust family of distance measures, the “Image Hamming Distance Family” + Bayesian framework for sequential hypothesis testing on finite populations. = Robust Real Time Pattern Matching

Sliding Window Approach

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast ? Can we use information from one window to the next ?

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast ? Can we use information from one window to the next ?

Sliding Window Approach Questions Which similarity measure - Hamming Can we apply it fast ? Can we use information from one window to the next ?

Hamming Distance on Pixels

Hamming Distance on Pairs of Pixels

Advantages of Hamming Distance Pluggable invariance: – Noise that preserve monotonic relations – Small non-rigid deformations – … Inherent robustness to noise that change the value of pixels completely: – Occlusions – Out of plane rotations – Shading – Spectral reflactance

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast ? Can we use information from one window to the next ?

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast - Sample Can we use information from one window to the next ?

Related Work – SSDA (Barnea and Silverman 72)

Return non-similar Pairs of Pixels Examined Cumulative Difference Related Work – SSDA (Barnea and Silverman 72)

Return non-similar Pairs of Pixels Examined Cumulative Difference Pairs of Pixels Examined Related Work – SSDA (Barnea and Silverman 72)

Which distance measure to use ? How to design the sampling algorithm ? Related Work – SSDA (Barnea and Silverman 72)

Related Work – Wald’s SPRT (Pereira and Mascarenhas 84) Sample while:

Related Work – Wald’s SPRT (Pereira and Mascarenhas 84) Wald’s approximation:

2. Assume everything Gaussian  Related Work – Wald’s SPRT (Pereira and Mascarenhas 84) How to model ? 1. Transform to binary images 

Designing an Optimal Sampling Algorithm

Reduction To Hypothesis Testing Template: Sub Image:

Reduction To Hypothesis Testing Template: Image: … ??? ???

The Decision Matrix Continue sampling Stop and return similarDo the exact computation Stop and return non-similar Pairs of Pixels Examined Cumulative difference

Rules of Game Each coin check cost time units Each check of sack with coins costs time units ???????????????

Optimization

Computing Probabilities Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference ??

Non-similar pairs of pixels sampled Similar pixels sampled Computing Probabilities

Continue sampling Stop and return similarDo the exact computation Stop and return non-similar Computation of n = Pairs of Pixels Examined k = Cumulative difference

Computing Probabilities We define:

Computing Probabilities – Closure

Optimization

Auxiliary problem

? ? ? ? ? ? ? ? ? ? ? Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction Stop and return non-similar Stop and return similar Do the exact computation

Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction

? ? ? ? ? ? ? ? ? ? ? Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction Stop and return non-similar Stop and return similar Do the exact computation Continue sampling

Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction

Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction

Continue sampling Stop and return similarDo the exact computation Stop and return non-similar n = Pairs of Pixels Examined k = Cumulative difference Solving Auxiliary problem - Backward Induction

Solving Optimization using Auxiliary problem Claim:

Solving Optimization using Auxiliary problem Claim:

Solving Optimization using Auxiliary problem Proof:

Solving Optimization using Auxiliary problem

Claim:

Solving Optimization using Auxiliary problem

Finding the Right Error Weights

Offline Time Complexity

Practical Observation Continue sampling Stop and return similarDo the exact computation Stop and return non-similar Pairs of Pixels Examined Cumulative difference The events of returning similar or doing the exact computation are very rare. There is a cost to check them.

Practical Observation Continue sampling Stop and return similarDo the exact computation Stop and return non-similar Pairs of Pixels Examined Cumulative difference This matrix has a higher expected number of samples, but a smaller expected running time because of the decrease in the cost of each sample,

Can we Reduce Offline Time ?

SPRT for Composite Hypotheses Sample both images as long as:

SPRT for Composite Hypotheses Wald’s approximation:

SPRT for Composite Hypotheses Computation of likelihood ratio: Numerical stability

SPRT for Composite Hypotheses Assuming correct prior, our hypotheses are actually simple – there are no free parameters The proof for sub-optimality of SPRT is valid Sub-optimal because of “overshoot” effect Excellent practical results

Designing the SPRT Continue sampling Stop and return similarDo the exact computation Stop and return non-similar Pairs of Pixels Examined Cumulative difference ? ?

SPRT Offline Time Complexity is updated each stage. time complexity and memory complexity Practical time of seconds for

Estimating the Prior 480 Training images Random, not too smooth, pattern

Estimating the Prior

Experiments That Checks Sampling Performance 480 Test Images Random, not too smooth, pattern

Fixed Size Sampling vs Sequential Sampling 30x30 pattern size Thresholded Absolute Difference Distance Estimated prior

Fixed Size Sampling vs Sequential Sampling 30x30 pattern size Thresholded Absolute Difference Distance Uniform prior

Estimated Prior vs Uniform Prior 60x60 pattern size Threshold l 2 norm in L*a*b color space OPT

SPRT vs OPT 30x30 pattern size Thresholded Absolute Difference Distance Estimated prior

Gaussian Noise Image copyright by Ben Schumin. Taken from: Gaussian noise with mean 0 and variance of 0.01

Gaussian Noise Image copyright by Ben Schumin. Taken from:

Gaussian Noise Image copyright by Ben Schumin. Taken from:

Gaussian Noise Pattern Occurrences of pattern in image Image copyright by Ben Schumin. Taken from:

Distance Used

Performance Image Size: 640x480 pixels Pattern Size: 1089 pixels Average Sample Size: pixels Offline Time: sec 0.019sec Online Time: sec

Light Changes + Rotation

Pattern Occurrences of pattern in image

Light Changes + Rotation Pattern Occurrences of pattern in image

Distance Used Monotonic Relations Neighbors pixels with absolute intensity value difference greater than 80

Performance Image Size: 640x480 pixels Pattern Size: 631 pairs of pixels Average Sample Size: pairs of pixels Offline Time: sec 0.021sec Online Time: sec

Occlusion + Rotation

Pattern Occurrences of pattern in images

Occlusion + Rotation Pattern Occurrences of pattern in images

Distance Used

Performance Image Size: 640x480 pixels Pattern Size: 2197 pixels Average Sample Size: 19.7 pixels Offline Time: sec 0.022sec Online Time: sec No motion considerations.

Non Rigid Deformations

Pattern Occurrence of pattern in image

Non Rigid Deformations Pattern Occurrence of pattern in image

Distance Used

Performance Image Size: 640x480 pixels Pattern Size: 714 pixels Average Sample Size: pixels Offline Time: sec 0.064sec Online Time: sec

Non Rigid Deformations – comparison to SIFT

Performance Image Size: 640x480 pixels Pattern Size: 9409 pairs of pixels Average Sample Size: pairs of pixels Offline Time: sec 0.037sec Online Time: sec

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast ? Can we use information from one window to the next ?

Sliding Window Approach Questions Which similarity measure ? Can we apply it fast ? Can we use information from one window to the next – Using smoothness

LU Rank of Pixels

Computing LU Rank of Pixels

Acknowledgments Professor Ester Samuel-Cahn Refael Vivanti Amichai Zisken, Ori Maoz, Amit Gruber, Amnon Aaronsohn, Aviv Hurvitz and Eran Maryuma

Hamming Distance + Sequential Sampling = Robust Real Time Pattern Matching