Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
CS 376b Introduction to Computer Vision 02 / 27 / 2008 Instructor: Michael Eckmann.
Lecture 1: Images and image filtering
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Announcements Kevin Matzen office hours – Tuesday 4-5pm, Thursday 2-3pm, Upson 317 TA: Yin Lou Course lab: Upson 317 – Card access will be setup soon Course.
1 Image filtering Images by Pawan SinhaPawan Sinha.
1 Image filtering
Lecture 2: Image filtering
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Linear filtering.
1 Image filtering Hybrid Images, Oliva et al.,
Most slides from Steve Seitz
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
CSC 589 Introduction to Computer Vision Lecture 2 linear filtering Instructor: Bei Xiao Thursday, January 15th Salvador Dali “Gala Contemplating the Mediterranean.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Linear Filters Monday, Jan 24 Prof. Kristen Grauman UT-Austin …
Linear Filters August 27 th 2015 Devi Parikh Virginia Tech 1 Slide credit: Devi Parikh Disclaimer: Many slides have been borrowed from Kristen Grauman,
Image Filtering Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/02/10.
Why is computer vision difficult?
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 7 – Linear Filters 1.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
CS 691B Computational Photography
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Lecture 3: Filtering and Edge detection
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Images and Filters CSEP 576 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Subtraction Mask mode radiography h(x,y) is the mask.
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Linear Filters April 6th, 2017
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Image Processing - in short
Lecture 1: Images and image filtering
Image filtering Hybrid Images, Oliva et al.,
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Motion illusion, rotating snakes
Linear filtering.
Most slides from Steve Seitz
Image filtering Images by Pawan Sinha.
Image filtering
Image filtering
Department of Computer Engineering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
Lecture: Pixels and Filters
Lecture: Pixels and Filters
Presentation transcript:

Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,

Lecture 1: Images and image filtering CS4670: Computer Vision Kavita Bala Hybrid Images, Oliva et al.,

Lecture 1: Images and image filtering CS4670: Computer Vision Kavita Bala Hybrid Images, Oliva et al.,

CS4670: Computer Vision Kavita Bala Hybrid Images, Oliva et al., Lecture 1: Images and image filtering

Reading and Announcements Szeliski, Chapter For CMS, wait and then contact Randy Hess

What is an image?

Digital Camera The Eye Source: A. Efros We’ll focus on these in this class (More on this process later)

What is an image? A grid (matrix) of intensity values (common to use one byte per value: 0 = black, 255 = white) = =

Images as functions An image contains discrete numbers of pixels Pixel value – grayscale/intensity [0,255] – Color RGB [R, G, B], where [0,255] per channel Lab [L, a, b]: Lightness, a and b are color-opponent dimensions HSV [H, S, V]: Hue, saturation, value

Images as functions Can think of image as a function, f, from R 2 to R or R M : – Grayscale: f (x,y) gives intensity at position (x,y) f: [a,b] x [c,d]  [0,255] – Color: f (x,y) = [r(x,y), g(x,y), b(x,y)]

A digital image is a discrete (sampled, quantized) version of this function What is an image? x y f (x, y)

Image transformations As with any function, we can apply operators to an image g (x,y) = f (x,y) + 20 g (x,y) = f (-x,y)

Image transformations As with any function, we can apply operators to an image g (x,y) = f (x,y) + 20 g (x,y) = f (-x,y)

Filters Filtering – Form a new image whose pixels are a combination of the original pixels Why? – To get useful information from images E.g., extract edges or contours (to understand shape) – To enhance the image E.g., to blur to remove noise E.g., to sharpen to “enhance image” a la CSI

Super-resolution Noise reduction

Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! How to formulate as filtering? Source: S. Seitz

Image filtering Modify the pixels in an image based on some function of a local neighborhood of each pixel Local image data 7 Modified image data Some function S Source: L. Zhang

Filters: examples Original (f) Identical image (g) Source: D. Lowe * = Kernel (k)

Filters: examples Blur (with a mean filter) (g) Source: D. Lowe * = Original (f) Kernel (k)

Mean filtering *

Mean filtering/Moving average

Mean filtering * =

Mean filtering/Moving Average Replace each pixel with an average of its neighborhood Achieves smoothing effect – Removes sharp features

Filters: Thresholding

Linear filtering One simple version: linear filtering – Replace each pixel by a linear combination (a weighted sum) of its neighbors – Simple, but powerful – Cross-correlation, convolution The prescription for the linear combination is called the “kernel” (or “mask”, “filter”) kernel 8 Modified image data Source: L. Zhang Local image data

Filter Properties Linearity – Weighted sum of original pixel values – Use same set of weights at each point – S[f + g] = S[f] + S[g] – S[k f + m g] = k S[f] + m S[g]

Linear Systems Is mean filtering/moving average linear? – Yes Is thresholding linear? – No

Filter Properties Linearity – Weighted sum of original pixel values – Use same set of weights at each point – S[f + g] = S[f] + S[g] – S[p f + q g] = p S[f] + q S[g] Shift-invariance – If f[m,n]  g[m,n], then f[m-p,n-q]  g[m-p, n-q] – The operator behaves the same everywhere SS

Cross-correlation This is called a cross-correlation operation: Let be the image, be the kernel (of size 2k+1 x 2k+1), and be the output image Can think of as a “dot product” between local neighborhood and kernel for each pixel

Convolution Same as cross-correlation, except that the kernel is “flipped” (horizontally and vertically) Convolution is commutative and associative This is called a convolution operation:

Cross-correlation This is called a cross-correlation operation: Let be the image, be the kernel (of size 2k+1 x 2k+1), and be the output image Can think of as a “dot product” between local neighborhood and kernel for each pixel

Stereo head Camera on a mobile vehicle

Example image pair – parallel cameras

Intensity profiles Clear correspondence between intensities, but also noise and ambiguity

region A Normalized Cross Correlation region B vector a vector b write regions as vectors a b

left image band right image band cross correlation x

Convolution Same as cross-correlation, except that the kernel is “flipped” (horizontally and vertically) Convolution is commutative and associative This is called a convolution operation:

Convolution Adapted from F. Durand