Docsity

computer vision slides, Lecture notes of Computer Vision

Partial preview of the text

Download computer vision slides and more Lecture notes Computer Vision in PDF only on Docsity!

scienceacademy.umd.eduDATA/MSML 640

MSML640 COMPUTER VISION

Week 04 scienceacademy.umd.edu

Topics overview

  • Features & filters
    • Filters
    • Gradients
    • Edges
  • Grouping & fitting
  • Multiple views and motion
  • Recognition
  • Video processing 65

Recall: Image filtering

  • Compute a function of the local neighborhood at each pixel in the image - Function specified by a “filter” or mask saying how to combine values from neighbors.
  • Uses of filtering:
    • Enhance an image (denoise, resize, etc)
    • Extract information (texture, edges, etc)
    • Detect patterns (template matching)

Recall: image filtering

  • Compute a function of the local neighborhood at each pixel in the image - Function specified by a “filter” or mask saying how to combine values from neighbors.
  • Uses of filtering:
    • Enhance an image (denoise, resize, etc)
    • Extract information (texture, edges, etc)
    • Detect patterns (template matching)

What causes an edge?

Depth discontinuity: object boundary Change in surface orientation: shape Cast shadows Reflectance change: appearance information, texture

Edges/gradients and invariance

Derivatives with convolution

For 2D function, f(x,y), the partial derivative is: For discrete data, we can approximate using finite differences: To implement above as convolution, what would be the associated filter?

e
e

e

lim

0 f x y f x y x f x y + - = ¶

® 1 ( , ) f ( x 1 , y ) f ( x , y ) x f x y + - » ¶

DATA/MSML 640

Partial derivatives of an image

Which shows changes with respect to x?

- 1 1 1 - 1 or

- 1 1 x f x y

y f x y

(showing filters for correlation)

Image gradient

The gradient of an image: The gradient points in the direction of most rapid change in intensity The gradient direction (orientation of edge normal) is given by: The edge strength is given by the gradient magnitude

Effects of noise

Consider a single row or column of the image

  • Plotting intensity as a function of position gives a signal Where is the edge?

Derivative theorem of convolution

Differentiation property of convolution.

Ä^ [^1 - 1 ]

[ ]

0.0030 0.0133 0.0219 0.0133 0. 0.0133 0.0596 0.0983 0.0596 0. 0.0219 0.0983 0.1621 0.0983 0. 0.0133 0.0596 0.0983 0.0596 0. 0.0030 0.0133 0.0219 0.0133 0. ( I Ä g )Ä h = I Ä( g Ä h ) Derivative of Gaussian filters

Derivative theorem of convolution

DATA/MSML 640

Laplacian of Gaussian

Consider Laplacian of Gaussian operator Where is the edge? Zero-crossings of bottom graph