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

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

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

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

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

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.

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

EE795: Computer Vision and Intelligent Systems

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

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 and local feature detection - 2. Importance of edge detection in computer vision

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

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

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

Edge and corner detection

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

2.1 Derivatives and Rates of Change

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.

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

JAMAICA_9th Grade Math Table of Content

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

MATH 115: Review for Chapter 1

Image features. Image Features

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

Other Linear Filters CS 211A

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.

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

Local Image preprocessing (cont d)

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:

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

Derivatives and Graphs of Functions

What you will learn today

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

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

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

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

Unit #19 : Level Curves, Partial Derivatives

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

Local Features: Detection, Description & Matching

SUBJECT: YEAR: Half Term:

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

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

Dijkstra's Algorithm

Planes Intersecting Cones: Static Hypertext Version

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

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

Appendix 1: Manual for Fovea Software

CS143 Introduction to Computer Vision Homework assignment 1.

Functions of Several Variables

Recap Hill Climbing Randomized Algorithms SLS for CSPs. Local Search. CPSC 322 Lecture 12. January 30, 2006 Textbook 3.8

Introduction to Applied and Pre-calculus Mathematics (2008) Correlation Chart - Grade 10 Introduction to Applied and Pre-Calculus Mathematics 2009

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

Transcription:

Visualizing Images Recall two ways of visualizing an image Lecture : Intensity Surfaces and Gradients Intensity pattern d array of numbers We see it at this level Computer works at this level Bridging the Gap Images as Surfaces 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. Surface height proportional to pixel grey value (dark=low, light=high) 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 1

Mean = 111 Std = 15.4 Terrain Concepts How does this visualization help us?

Terrain Concepts 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. www.pianoladynancy.com/ wallpapers/1003/wp86.jpg Consider function f(x) = 100-0.5 * x^ Consider function f(x) = 100-0.5 * x^ Gradient is df(x)/dx = - * 0.5 * x = - x Geometric interpretation: gradient at x 0 is slope of tangent line to curve at point x 0 tangent line Δy slope = Δy / Δx x 0 Δx = df(x)/dx x0 f(x) f(x) = 100-0.5 * x^ df(x)/dx = - x f(x) = 100-0.5 * x^ df(x)/dx = - x grad = slope = 1 0-1 - x 0 = - 3 gradients -3 3

f(x) = 100-0.5 * x^ Gradients on this side of peak are positive 3 df(x)/dx = - x 1 0 gradients -1 - -3 Gradients on this side of peak are negative Math Example : D Gradient f(x,y) = 100-0.5 * x^ - 0.5 * y^ df(x,y)/dx = - x df(x,y)/dy = - y Note: Sign of gradient at point tells you what direction to go to travel uphill Gradient is vector of partial derivs wrt x and y axes Math Example : D Gradient f(x,y) = 100-0.5 * x^ - 0.5 * 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 : D Gradient f(x,y) = 100-0.5 * x^ - 0.5 * 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 : D Gradient f(x,y) = 100-0.5 * x^ - 0.5 * y^ And so on for all points Image Gradient The same is true of D image gradients. The underlying function is numerical (tabulated) rather than algebraic. So need numerical derivatives. 4

Taylor Series expansion See also T&V, Appendix A. Taylor Series expansion See also T&V, Appendix A. Manipulate: Manipulate: Finite forward difference Finite backward difference Taylor Series expansion See also T&V, Appendix A. Finite forward difference See also T&V, Appendix A. subtract Finite backward difference Finite central difference More accurate Finite central difference Example: Temporal Gradient A video is a sequence of image frames I(x,y,t). Example: Temporal Gradient Consider the sequence of intensity values observed at a single pixel over time. df(x)/dx derivative 1D function f(x) over time 1D gradient (deriv) of f(x) over time df(x)/dx derivative Each frame has two spatial indices x, y and one temporal (time) index t. 5

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) Partial derivative wrt x I x =di(x,y)/dx I(x,y+1) - I(x,y-1) Partial derivative wrt y I y =di(x,y)/dy Functions of Gradients Functions of Gradients I(x,y) I x I y I(x,y) I x I y Magnitude of gradient sqrt(ix.^ + Iy.^) Measures steepness of slope at each pixel Angle of gradient atan(iy, Ix) Denotes similarity of orientation of slope Functions of Gradients Next Time: Linear Operators I(x,y) atan(iy, Ix) Gradients are an example of linear operators, i.e. value at a pixel is computed as a linear combination of values of neighboring pixels. What else do we observe in this image? Enhanced detail in low contrast areas (e.g. folds in coat; imaging artifacts in sky) 6