Cameras and Images
Sanja Fidler CSC420: Intro to Image Understanding 1 / 58
Cameras and Images Sanja Fidler CSC420: Intro to Image - - PowerPoint PPT Presentation
Cameras and Images Sanja Fidler CSC420: Intro to Image Understanding 1 / 58 Pinhole Camera [Source: A. Torralba] Make your own camera http://www.foundphotography.com/PhotoThoughts/archives/2005/ 04/pinhole_camera_2.html Sanja Fidler
Sanja Fidler CSC420: Intro to Image Understanding 1 / 58
[Source: A. Torralba]
http://www.foundphotography.com/PhotoThoughts/archives/2005/ 04/pinhole_camera_2.html
Sanja Fidler CSC420: Intro to Image Understanding 2 / 58
[Source: A. Torralba]
Sanja Fidler CSC420: Intro to Image Understanding 3 / 58
[Source: A. Torralba]
Sanja Fidler CSC420: Intro to Image Understanding 4 / 58
[Source: A. Torralba] Sanja Fidler CSC420: Intro to Image Understanding 5 / 58
Sanja Fidler CSC420: Intro to Image Understanding 6 / 58
Sanja Fidler CSC420: Intro to Image Understanding 7 / 58
Sanja Fidler CSC420: Intro to Image Understanding 8 / 58
http://electronics.howstuffworks.com/cameras-photography/ digital/digital-camera.htm
Sanja Fidler CSC420: Intro to Image Understanding 9 / 58
Sanja Fidler CSC420: Intro to Image Understanding 10 / 58
Continuous image projected to sensor array Sampling and quantization
http://pho.to/media/images/digital/digital-sensors.jpg
Sanja Fidler CSC420: Intro to Image Understanding 11 / 58
Sanja Fidler CSC420: Intro to Image Understanding 12 / 58
Sanja Fidler CSC420: Intro to Image Understanding 12 / 58
Sanja Fidler CSC420: Intro to Image Understanding 12 / 58
Sanja Fidler CSC420: Intro to Image Understanding 12 / 58
Sanja Fidler CSC420: Intro to Image Understanding 12 / 58
Sanja Fidler CSC420: Intro to Image Understanding 13 / 58
[Adapted from: N. Snavely]
Sanja Fidler CSC420: Intro to Image Understanding 14 / 58
[Adapted from: N. Snavely]
Sanja Fidler CSC420: Intro to Image Understanding 14 / 58
[Adapted from: N. Snavely]
Sanja Fidler CSC420: Intro to Image Understanding 14 / 58
[Adapted from: N. Snavely]
Sanja Fidler CSC420: Intro to Image Understanding 14 / 58
Sanja Fidler CSC420: Intro to Image Understanding 15 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 16 / 58
Sanja Fidler CSC420: Intro to Image Understanding 17 / 58
Sanja Fidler CSC420: Intro to Image Understanding 18 / 58
!" #" $" #" %" #" !" &" #'" ()*+,"-.+/0"1+2+" %" 3)1-401"-.+/0"1+2+" 5).0"678*9)8"
Sanja Fidler CSC420: Intro to Image Understanding 19 / 58
Sanja Fidler CSC420: Intro to Image Understanding 20 / 58
Sanja Fidler CSC420: Intro to Image Understanding 20 / 58
Sanja Fidler CSC420: Intro to Image Understanding 21 / 58
Sanja Fidler CSC420: Intro to Image Understanding 21 / 58
Sanja Fidler CSC420: Intro to Image Understanding 22 / 58
Sanja Fidler CSC420: Intro to Image Understanding 23 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
Sanja Fidler CSC420: Intro to Image Understanding 24 / 58
k
k
k
k
Sanja Fidler CSC420: Intro to Image Understanding 25 / 58
k
k
k
k
Sanja Fidler CSC420: Intro to Image Understanding 25 / 58
k
k
k
k
Sanja Fidler CSC420: Intro to Image Understanding 25 / 58
k
k
k
k
Sanja Fidler CSC420: Intro to Image Understanding 25 / 58
Sanja Fidler CSC420: Intro to Image Understanding 26 / 58
Sanja Fidler CSC420: Intro to Image Understanding 26 / 58
Sanja Fidler CSC420: Intro to Image Understanding 26 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 26 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 26 / 58
[Source: S. Lazebnik]
Sanja Fidler CSC420: Intro to Image Understanding 27 / 58
[Source: S. Lazebnik]
Sanja Fidler CSC420: Intro to Image Understanding 27 / 58
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Original! !" !" !" !" !" !" !" !" !" #" #" #" #" $" #" #" #" #"
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Original! !" !" !" !" !" !" !" !" !" #" #" #" #" $" #" #" #" #"
!"#$%&'(')*+,-&$* %&''()*+&*(,"(-.(,/*
Sanja Fidler CSC420: Intro to Image Understanding 28 / 58
Sanja Fidler CSC420: Intro to Image Understanding 29 / 58
!"#$%&'&() #$%&'&()
Sanja Fidler CSC420: Intro to Image Understanding 30 / 58
Sanja Fidler CSC420: Intro to Image Understanding 31 / 58
Sanja Fidler CSC420: Intro to Image Understanding 32 / 58
Sanja Fidler CSC420: Intro to Image Understanding 33 / 58
Sanja Fidler CSC420: Intro to Image Understanding 34 / 58
Sanja Fidler CSC420: Intro to Image Understanding 35 / 58
Sanja Fidler CSC420: Intro to Image Understanding 36 / 58
Sanja Fidler CSC420: Intro to Image Understanding 37 / 58
Sanja Fidler CSC420: Intro to Image Understanding 38 / 58
Sanja Fidler CSC420: Intro to Image Understanding 39 / 58
Sanja Fidler CSC420: Intro to Image Understanding 40 / 58
Sanja Fidler CSC420: Intro to Image Understanding 40 / 58
Sanja Fidler CSC420: Intro to Image Understanding 40 / 58
Sanja Fidler CSC420: Intro to Image Understanding 40 / 58
Sanja Fidler CSC420: Intro to Image Understanding 41 / 58
Sanja Fidler CSC420: Intro to Image Understanding 41 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 42 / 58
Sanja Fidler CSC420: Intro to Image Understanding 43 / 58
Sanja Fidler CSC420: Intro to Image Understanding 43 / 58
Sanja Fidler CSC420: Intro to Image Understanding 43 / 58
Sanja Fidler CSC420: Intro to Image Understanding 43 / 58
Sanja Fidler CSC420: Intro to Image Understanding 43 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 44 / 58
k
k
Sanja Fidler CSC420: Intro to Image Understanding 44 / 58
Correlation
Convolution
Sanja Fidler CSC420: Intro to Image Understanding 45 / 58
For a Gaussian or box filter, how will the outputs F ∗ I and F ⊗ I differ?
Sanja Fidler CSC420: Intro to Image Understanding 45 / 58
For a Gaussian or box filter, how will the outputs F ∗ I and F ⊗ I differ? How will the outputs differ for: 1
Sanja Fidler CSC420: Intro to Image Understanding 45 / 58
For a Gaussian or box filter, how will the outputs F ∗ I and F ⊗ I differ? How will the outputs differ for: 1 If the input is an impulse signal, how will the outputs differ? δ ∗ I and δ ⊗ I?
Sanja Fidler CSC420: Intro to Image Understanding 45 / 58
Figure: Fergus, et al., SIGGRAPH 2006
Figure: Bokeh: http://lullaby.homepage.dk/diy-camera/bokeh.html Click for more info
Sanja Fidler CSC420: Intro to Image Understanding 46 / 58
Sanja Fidler CSC420: Intro to Image Understanding 47 / 58
Sanja Fidler CSC420: Intro to Image Understanding 47 / 58
Sanja Fidler CSC420: Intro to Image Understanding 47 / 58
Sanja Fidler CSC420: Intro to Image Understanding 48 / 58
Sanja Fidler CSC420: Intro to Image Understanding 49 / 58
Sanja Fidler CSC420: Intro to Image Understanding 49 / 58
Sanja Fidler CSC420: Intro to Image Understanding 49 / 58
Sanja Fidler CSC420: Intro to Image Understanding 49 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 49 / 58
Sanja Fidler CSC420: Intro to Image Understanding 50 / 58
Sanja Fidler CSC420: Intro to Image Understanding 50 / 58
Sanja Fidler CSC420: Intro to Image Understanding 50 / 58
Sanja Fidler CSC420: Intro to Image Understanding 50 / 58
Gaussian : f (x, y) =
1 2πσ2 e− x2+y2
σ2
=
√ 2πσe− x2
σ2
·
√ 2πσe− y2
σ2
Sanja Fidler CSC420: Intro to Image Understanding 51 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 52 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 52 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 53 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 53 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 54 / 58
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 54 / 58
Sanja Fidler CSC420: Intro to Image Understanding 55 / 58
Sanja Fidler CSC420: Intro to Image Understanding 55 / 58
i
Sanja Fidler CSC420: Intro to Image Understanding 55 / 58
i
Sanja Fidler CSC420: Intro to Image Understanding 55 / 58
i
1 are the vertical and horizontal filter.
[Source: R. Urtasun]
Sanja Fidler CSC420: Intro to Image Understanding 55 / 58
Correlation: Slide a filter across image and compare (via dot product) Convolution: Flip the filter to the right and down and do correlation Smooth image with a Gaussian kernel: bigger σ means more blurring Some filters (like Gaussian) are separable: you can filter faster. First apply 1D convolution to each row, followed by another 1D conv. to each column Applying first a Gaussian filter with σ1 and then another Gaussian with σ2 is the same as applying one Gaussian filter with σ =
1 + σ2 2
imfilter: can do both correlation and convolution corr2, filter2: correlation, normxcorr2 normalized correlation conv2: does convolution fspecial: creates special filters including a Gaussian
Sanja Fidler CSC420: Intro to Image Understanding 56 / 58
!"#$#%&'( )*!!+,-.(/0102(
.-+&#'(
[Source: S. Lazebnik]
Sanja Fidler CSC420: Intro to Image Understanding 57 / 58
Sanja Fidler CSC420: Intro to Image Understanding 58 / 58