Docsity

Image Filtering - Introduction to Computer Version - Lecture Sli, Lecture notes of Computer Science

Partial preview of the text

Download Image Filtering - Introduction to Computer Version - Lecture Sli and more Lecture notes Computer Science in PDF only on Docsity!

Motion illusion, rotating snakes

Docsity.com

Image Filtering Computer Vision

Docsity.com

Image filtering

  • Image filtering: compute function of local neighborhood at each position
  • Really important!
    • Enhance images
      • Denoise, resize, increase contrast, etc.
    • Extract information from images
      • Texture, edges, distinctive points, etc.
    • Detect patterns
      • Template matching

Docsity.com

1 1 1 1 1 1 1 1 1 Slide credit: David Lowe (UBC) g[ ,] Example: box filter

Docsity.com

f [.,.] h [.,.] Image filtering

g[ ,]

Credit: S. Seitz

[ , ] [ , ] [ , ] , h m n g k l f m k n l k l    

Docsity.com

f [.,.] h [.,.] Image filtering

g[ ,]

Credit: S. Seitz

[ , ] [ , ] [ , ] , h m n g k l f m k n l k l    

Docsity.com

f [.,.] h [.,.] Image filtering

g[ ,]

Credit: S. Seitz

[ , ] [ , ] [ , ] , h m n g k l f m k n l k l    

Docsity.com

f [.,.] h [.,.] Image filtering

g[ ,]

Credit: S. Seitz

? [ , ] [ , ] [ , ] , h m n g k l f m k n l k l    

Docsity.com

f [.,.] h [.,.] Image filtering

g[ , ]

Credit: S. Seitz

[ , ] [ , ] [ , ] , h m n g k l f m k n l k l    

Docsity.com

What does it do?

  • Replaces each pixel with an average of its neighborhood
  • Achieve smoothing effect (remove sharp features) 1 1 1 1 1 1 1 1 1 Slide credit: David Lowe (UBC) g[ ,] Box Filter

Docsity.com

Practice with linear filters

0 0 0 0 1 0 0 0 0 Original

Source: D. LoweDocsity.com

Practice with linear filters 0 0 0 0 1 0 0 0 0 Original (^) Filtered (no change)

Source: D. LoweDocsity.com

Practice with linear filters 0 0 0 0 0 1 0 0 0 Original (^) Shifted left By 1 pixel

Source: D. LoweDocsity.com

Practice with linear filters

Original 1 1 1 1 1 1 1 1 1 0 0 0 0 2 0 0 0 0

(Note that filter sums to 1)

Source: D. LoweDocsity.com