Pearson s Correlation

Similar documents
Geometric Camera Parameters

Section V.3: Dot Product

Vector Math Computer Graphics Scott D. Anderson

Figure 1.1 Vector A and Vector F

Section 1.1. Introduction to R n

Lecture 2: Homogeneous Coordinates, Lines and Conics

9 Multiplication of Vectors: The Scalar or Dot Product

Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi

Correlation and Convolution Class Notes for CMSC 426, Fall 2005 David Jacobs

Unified Lecture # 4 Vectors

Orthogonal Projections

Vector Algebra II: Scalar and Vector Products

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Geometric Optics Converging Lenses and Mirrors Physics Lab IV

LINES AND PLANES CHRIS JOHNSON

Solving Simultaneous Equations and Matrices

The Dot and Cross Products

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

The Vector or Cross Product

Common Core State Standards for Mathematics Accelerated 7th Grade

Shear :: Blocks (Video and Image Processing Blockset )

Rotation: Moment of Inertia and Torque

Student Outcomes. Lesson Notes. Classwork. Exercises 1 3 (4 minutes)

3D Tranformations. CS 4620 Lecture 6. Cornell CS4620 Fall 2013 Lecture Steve Marschner (with previous instructors James/Bala)

521493S Computer Graphics. Exercise 2 & course schedule change

Geometry Chapter Point (pt) 1.1 Coplanar (1.1) 1.1 Space (1.1) 1.2 Line Segment (seg) 1.2 Measure of a Segment

OBJECT TRACKING USING LOG-POLAR TRANSFORMATION

3D Scanner using Line Laser. 1. Introduction. 2. Theory

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

Part-Based Recognition

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

A vector is a directed line segment used to represent a vector quantity.

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

Robot Perception Continued

Review Jeopardy. Blue vs. Orange. Review Jeopardy

Essential Mathematics for Computer Graphics fast

MATH APPLIED MATRIX THEORY

6. Vectors Scott Surgent (surgent@asu.edu)

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Computing Orthonormal Sets in 2D, 3D, and 4D

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Math 215 HW #6 Solutions

6. LECTURE 6. Objectives

LINEAR EQUATIONS IN TWO VARIABLES

13.4 THE CROSS PRODUCT

Object Recognition and Template Matching

TF-IDF. David Kauchak cs160 Fall 2009 adapted from:

Linear Algebra Notes for Marsden and Tromba Vector Calculus

INTRODUCTION TO RENDERING TECHNIQUES

Magnetic Field of a Circular Coil Lab 12

[1] Diagonal factorization

COMP6053 lecture: Relationship between two variables: correlation, covariance and r-squared.

Vectors Math 122 Calculus III D Joyce, Fall 2012

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

Inner product. Definition of inner product

Principal components analysis

12.5 Equations of Lines and Planes

Application of Data Matrix Verification Standards

Solutions to Math 51 First Exam January 29, 2015

Section Continued

Polarization of Light

Vector Spaces; the Space R n

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Manifold Learning Examples PCA, LLE and ISOMAP

Solutions to Practice Problems

Summary: Transformations. Lecture 14 Parameter Estimation Readings T&V Sec Parameter Estimation: Fitting Geometric Models

A Study on SURF Algorithm and Real-Time Tracking Objects Using Optical Flow

Addition and Subtraction of Vectors

Common Core Unit Summary Grades 6 to 8

CS 534: Computer Vision 3D Model-based recognition

Synthetic Sensing: Proximity / Distance Sensors

Lesson 26: Reflection & Mirror Diagrams

KEANSBURG SCHOOL DISTRICT KEANSBURG HIGH SCHOOL Mathematics Department. HSPA 10 Curriculum. September 2007

Number Sense and Operations

Relevant Reading for this Lecture... Pages

FURTHER VECTORS (MEI)

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

Interactive Computer Graphics

Space Perception and Binocular Vision

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

A PHOTOGRAMMETRIC APPRAOCH FOR AUTOMATIC TRAFFIC ASSESSMENT USING CONVENTIONAL CCTV CAMERA

Ultra-High Resolution Digital Mosaics

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Georgia Standards of Excellence Curriculum Map. Mathematics. GSE 8 th Grade

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

A Learning Based Method for Super-Resolution of Low Resolution Images

Chapter 17. Orthogonal Matrices and Symmetries of Space

B4 Computational Geometry

When the fluid velocity is zero, called the hydrostatic condition, the pressure variation is due only to the weight of the fluid.

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.

Physics 221 Experiment 5: Magnetic Fields

Digital Imaging and Multimedia. Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

MATHS LEVEL DESCRIPTORS

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

Welcome to Math 7 Accelerated Courses (Preparation for Algebra in 8 th grade)

Prentice Hall Mathematics Courses 1-3 Common Core Edition 2013

Wednesday 15 January 2014 Morning Time: 2 hours

Lecture 14: Section 3.3

State of Stress at Point

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Transcription:

Getting Beyond Distance: (Stats) Cross-Correlation & (EE) Correlation CS 510 Lecture #9 February 18, 2015 Pearson s Correlation Recall from the previous lecture ( A( x, y) A) B( x, y) B ( A( x, y) A) 2 ( ) ( B( x, y) B) 2 This is a very important equation 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 2 1

Assumptions of Correlation ( A( x, y) A )( B( x, y) B ) ( A( x, y) A ) 2 ( B( x, y) B ) 2 Two signals vary linearly Constant shift to either signal has no effect. Increased amplitude has no effect. This minimizes sensitivity to: changes in (overall) illumination offset or gain. 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 3 Computing Correlation A constant added to A does not change its correlation to any other signal, so Let s subtract average A from A() Let s subtract average B from B() The mean of both signals is now zero Then correlation reduces to: A B ( A( x, y) A ) 2 ( B( x, y) B ) 2 Know and love the dot product. 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 4 2

Computing Correlation (II) For zero-mean signals, we can scale them without changing their correlation scores Multiply A by the inverse of its length Multiply B by the inverse of its length Both signals are now unit length Then correlation reduces to: A B Gives rise to Correlation Space. Know and love the dot product. J 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 5 Correlation Space Why zero-mean & unit-length your images? Consider, for example, database retrieval Compare new image A with many images in database. When database images are stored in their zero-mean & unit-length form, then Preprocess A (zero-mean, unit-length) Compute dot products 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 6 3

Correlation Space (II) New idea: image as a point in an N dimensional space N = width x height Zero-mean & unit-length images lie on an N-1 dimensional correlation space where the dot product equals correlation. This is a highly non-linear projection. Points lie on an N-1 surface within the original N dimensional space. So consider points in 3-D. 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 7 Correlation Space (II) Subtracting mean - translation. Length one - project onto sphere. Correlation is then: Cosine of angle between vectors (points). 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 8 4

Useful? Yes Very commonly used. For example Face Rec. Google 279,000 hits 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 9 Useful Connection Euclidean distance is inversely proportional to correlation in correlation space. ( A[ x, y] B[ x, y] ) 2 = A[ x, y] 2 + B x, y [ ] 2 2A [ ]B x, y [ ] Nearest- neighbor classifiers in correla3on space maximize correla3on / minimized L 2 norm = 1+1 2 A[ ]B x, y = 2 2A B = 2 2Corr( A,B) [ ] 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 10 5

Limitations To match images this way, they must be The same width & height In correspondence : coordinates match More importantly, objects in the scene must Be in the same location Be at the same scale Be at the same orientation Be seen from the same viewpoint CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 11 New Goal: Find a small image within a larger one The image above is a small piece of the image to the right. But from where? CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 12 6

Brute-Force Translation Invariance To find a small image in a large one, slide the small one across the large, computing Pearson s correlation at every possible position. CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 13 Statistical Cross-Correlation The process of slide & correlate is called cross-correlation Complexity is O(nm) N = # of pixels in image (w h) M = # of pixels in the template (w h) Highly parallel (every position can be computed independently) Still sensitive to Rotation in-plane out-of-plane Scale Perspective CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 14 7

Computing Cross-Correlation In cross-correlation, the mask is correlated repeatedly to image windows zero-mean & unit length the mask zero-mean & unit length the image compute the sliding dot product This is almost convolving the image with the mask 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 15 Naming conventions In Engineering, convolving a normalized mask with the source image is called correlation Is this exactly the same as Pearson s correlation? Why or why not? This is the most common definition of correlation in image processing texts 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 16 8

Application: Tracking Cut picture of a target from the first frame of a video Use it as a template /mask Correlate the target in the following frames Move to highest correlation peak and cut new target. 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 17 Add Scale Correction ECE 695 Project: OBJECT TRACKING IN VIDEOS, Arun Anbumani, December 18, 2013 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 18 9

Application: Mosaicing Take several, overlapping images from a translating camera Camera cannot move along optical axis Correlate the whole images to each other Find location where they match the best Stitch them into a single, larger image 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 19 Mosaicing (II) 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 20 10

Application: Detection Could you use correlation to find Human faces? heads? Hands? bodies? What (if anything) might lead to failures? 2/20/15 CS 510, Image Computa3on, Ross Beveridge & Bruce Draper 21 11