Robert Collins CSE486, Penn State. Lecture 2: Intensity Surfaces and Gradients

Similar documents
Visualizing Images. Lecture 2: Intensity Surfaces and Gradients. Images as Surfaces. Bridging the Gap. Examples. Examples

Robert Collins CSE598G. Intro to Template Matching and the Lucas-Kanade Method

f for Directional Derivatives and Gradient The gradient vector is calculated using partial derivatives of the function f(x,y).

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

14.6 Directional Derivatives and the Gradient Vector

CITS 4402 Computer Vision

16. LECTURE 16. I understand how to find the rate of change in any direction. I understand in what direction the maximum rate of change happens.

An Introduction to the Directional Derivative and the Gradient Math Insight

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

MATH Harrell. Which way is up? Lecture 9. Copyright 2008 by Evans M. Harrell II.

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Chapter Multidimensional Gradient Method

Lesson 4: Gradient Vectors, Level Curves, Maximums/Minimums/Saddle Points

UNIT 4 NOTES. 4-1 and 4-2 Coordinate Plane

DIGITAL TERRAIN MODELLING. Endre Katona University of Szeged Department of Informatics

Edge and local feature detection - 2. Importance of edge detection in computer vision

EE795: Computer Vision and Intelligent Systems

Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Surfaces and Partial Derivatives

Outline 7/2/201011/6/

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

COMP 558 lecture 16 Nov. 8, 2010

Exploring Slope. We use the letter m to represent slope. It is the ratio of the rise to the run.

Motivation. Gray Levels

Lecture 6: Edge Detection

Biomedical Image Analysis. Point, Edge and Line Detection

Biomedical Image Analysis. Mathematical Morphology

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Other Linear Filters CS 211A

CS231A Section 6: Problem Set 3

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Image features. Image Features

Local Image preprocessing (cont d)

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Surfaces and Partial Derivatives

Energy Minimization -Non-Derivative Methods -First Derivative Methods. Background Image Courtesy: 3dciencia.com visual life sciences

Digital Image Processing. Lecture # 3 Image Enhancement

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

Edge and corner detection

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

2.1 Derivatives and Rates of Change

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Worksheet 2.7: Critical Points, Local Extrema, and the Second Derivative Test

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

Increasing and Decreasing Functions. MATH 1003 Calculus and Linear Algebra (Lecture 20) Increasing and Decreasing Functions

JAMAICA_9th Grade Math Table of Content

Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

MATH 115: Review for Chapter 1

Spatial Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

LECTURE 18 - OPTIMIZATION

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

Chapter - 2: Geometry and Line Generations

The following information is for reviewing the material since Exam 3:

Lecture 8. Divided Differences,Least-Squares Approximations. Ceng375 Numerical Computations at December 9, 2010

Image Understanding Edge Detection

Section Graphs and Lines

Edges, interpolation, templates. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Image Registration Lecture 4: First Examples

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

SHAPE, SPACE & MEASURE

Output Primitives Lecture: 3. Lecture 3. Output Primitives. Assuming we have a raster display, a picture is completely specified by:

Derivatives and Graphs of Functions

What you will learn today

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

Module 4 : Solving Linear Algebraic Equations Section 11 Appendix C: Steepest Descent / Gradient Search Method

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

Lecture 9: Hough Transform and Thresholding base Segmentation

Cecil Jones Academy Mathematics Fundamentals

A parabolic curve that is applied to make a smooth and safe transition between two grades on a roadway or a highway.

SYSTEMS OF NONLINEAR EQUATIONS

Continuity and Tangent Lines for functions of two variables

Columbus State Community College Mathematics Department Public Syllabus. Course and Number: MATH 1172 Engineering Mathematics A

Horizontal and Vertical Curve Design

Edge detection. Gradient-based edge operators

Fall 2016 Semester METR 3113 Atmospheric Dynamics I: Introduction to Atmospheric Kinematics and Dynamics

Chapter 0. Preliminaries. 0.1 Things that you should know Derivatives

Digital Image Processing. Image Enhancement - Filtering

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Unit #19 : Level Curves, Partial Derivatives

SUBJECT: YEAR: Half Term:

Local Features: Detection, Description & Matching

Terrain correction. Backward geocoding. Terrain correction and ortho-rectification. Why geometric terrain correction? Rüdiger Gens

Mathematics 6 12 Section 26

Week 5: Geometry and Applications

Overview for Families

Section A1: Gradients of straight lines

Dijkstra's Algorithm

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

Planes Intersecting Cones: Static Hypertext Version

Note: Levels A-I respresent Grade Levels K-8; Florida - Grade 7 -Math Standards /Benchmarks PLATO Courseware Covering Florida - Grade 7 - Math

Filtering and Edge Detection. Computer Vision I. CSE252A Lecture 10. Announcement

5. Feature Extraction from Images

Appendix 1: Manual for Fovea Software

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Transcription:

Lecture 2: Intensity Surfaces and Gradients

Visualizing Images Recall two ways of visualizing an image Intensity pattern 2d array of numbers We see it at this level Computer works at this level

Bridging the Gap Motivation: we want to visualize images at a level high enough to retain human insight, but low enough to allow us to readily translate our insights into mathematical notation and, ultimately, computer algorithms that operate on arrays of numbers.

Images as Surfaces Surface height proportional to pixel grey value (dark=low, light=high)

Examples Note: see demoimsurf.m in matlab examples directory on course web site if you want to generate plots like these. Mean = 164 Std = 1.8

Examples

Examples

Examples

Examples Mean = 111 Std = 15.4

Examples

How does this visualization help us?

Robert Collins Terrain Concepts

Terrain Concepts www.pianoladynancy.com/ wallpapers/1003/wp86.jpg

Terrain Concepts Basic notions: Uphill / downhill Contour lines (curves of constant elevation) Steepness of slope Peaks/Valleys (local extrema) More mathematical notions: Tangent Plane Normal vectors Curvature Gradient vectors (vectors of partial derivatives) will help us define/compute all of these.

Math Example : 1D Gradient Consider function f(x) = 100-0.5 * x^2

Math Example : 1D Gradient Consider function f(x) = 100-0.5 * x^2 Gradient is df(x)/dx = - 2 * 0.5 * x = - x Geometric interpretation: gradient at x 0 is slope of tangent line to curve at point x 0 x 0 tangent line Δx Δy slope = Δy / Δx = df(x)/dx x0 f(x)

Math Example : 1D Gradient f(x) = 100-0.5 * x^2 df(x)/dx = - x grad = slope = 2 x 0 = -2

Math Example : 1D Gradient f(x) = 100-0.5 * x^2 df(x)/dx = - x 2 1 0-1 -2 3 gradients -3

Math Example : 1D Gradient f(x) = 100-0.5 * x^2 df(x)/dx = - x Gradients on this side of peak are positive 3 2 1 0 gradients -1-2 -3 Gradients on this side of peak are negative Note: Sign of gradient at point tells you what direction to go to travel uphill

Math Example : 2D Gradient f(x,y) = 100-0.5 * x^2-0.5 * y^2 df(x,y)/dx = - x df(x,y)/dy = - y Gradient = [df(x,y)/dx, df(x,y)/dy] = [- x, - y] Gradient is vector of partial derivs wrt x and y axes

Math Example : 2D Gradient f(x,y) = 100-0.5 * x^2-0.5 * y^2 Gradient = [df(x,y)/dx, df(x,y)/dy] = [- x, - y] Plotted as a vector field, the gradient vector at each pixel points uphill The gradient indicates the direction of steepest ascent. The gradient is 0 at the peak (also at any flat spots, and local minima, but there are none of those for this function)

Math Example : 2D Gradient f(x,y) = 100-0.5 * x^2-0.5 * y^2 Gradient = [df(x,y)/dx, df(x,y)/dy] = [- x, - y] Let g=[g x,g y ] be the gradient vector at point/pixel (x 0,y 0 ) Vector g points uphill (direction of steepest ascent) Vector - g points downhill (direction of steepest descent) Vector [g y, -g x ] is perpendicular, and denotes direction of constant elevation. i.e. normal to contour line passing through point (x 0,y 0 )

Math Example : 2D Gradient f(x,y) = 100-0.5 * x^2-0.5 * y^2 Gradient = [df(x,y)/dx, df(x,y)/dy] = [- x, - y] And so on for all points

Image Gradient The same is true of 2D image gradients. The underlying function is numerical (tabulated) rather than algebraic. So need numerical derivatives.

Taylor Series expansion Numerical Derivatives See also T&V, Appendix A.2 Manipulate: Finite forward difference

Taylor Series expansion Numerical Derivatives See also T&V, Appendix A.2 Manipulate: Finite backward difference

Numerical Derivatives See also T&V, Appendix A.2 Taylor Series expansion subtract Finite central difference

Numerical Derivatives See also T&V, Appendix A.2 Finite forward difference Finite backward difference Finite central difference More accurate

Example: Temporal Gradient A video is a sequence of image frames I(x,y,t). df(x)/dx derivative Each frame has two spatial indices x, y and one temporal (time) index t.

Example: Temporal Gradient Consider the sequence of intensity values observed at a single pixel over time. 1D function f(x) over time 1D gradient (deriv) of f(x) over time df(x)/dx derivative

Temporal Gradient (cont) What does the temporal intensity gradient at each pixel look like over time?

Example: Spatial Image Gradients I(x,y) I(x+1,y) - I(x-1,y) 2 Partial derivative wrt x I x =di(x,y)/dx I(x,y+1) - I(x,y-1) 2 Partial derivative wrt y I y =di(x,y)/dy

Functions of Gradients I(x,y) I x I y Magnitude of gradient sqrt(ix.^2 + Iy.^2) Measures steepness of slope at each pixel

Functions of Gradients I(x,y) I x I y Angle of gradient atan2(iy, Ix) Denotes similarity of orientation of slope

I(x,y) Functions of Gradients atan2(iy, Ix) What else do we observe in this image? Enhanced detail in low contrast areas (e.g. folds in coat; imaging artifacts in sky)

Next Time: Linear Operators Gradients are an example of linear operators, i.e. value at a pixel is computed as a linear combination of values of neighboring pixels.