Cameras and Images
Sanja Fidler Intro to Image Understanding 1 / 57
Cameras and Images Sanja Fidler Intro to Image Understanding 1 / - - PowerPoint PPT Presentation
Cameras and Images Sanja Fidler Intro to Image Understanding 1 / 57 Pinhole Camera [Source: A. Torralba] Make your own camera http://www.foundphotography.com/PhotoThoughts/ archives/2005/04/pinhole_camera_2.html Sanja Fidler Intro to Image
Sanja Fidler Intro to Image Understanding 1 / 57
[Source: A. Torralba]
Sanja Fidler Intro to Image Understanding 2 / 57
Sanja Fidler Intro to Image Understanding 3 / 57
Sanja Fidler Intro to Image Understanding 4 / 57
Sanja Fidler Intro to Image Understanding 5 / 57
Sanja Fidler Intro to Image Understanding 6 / 57
Sanja Fidler Intro to Image Understanding 7 / 57
Sanja Fidler Intro to Image Understanding 8 / 57
Sanja Fidler Intro to Image Understanding 9 / 57
Sanja Fidler Intro to Image Understanding 10 / 57
Continuous image projected to sensor array Sampling and quantization
http://pho.to/media/images/digital/digital-sensors.jpg
Sanja Fidler Intro to Image Understanding 11 / 57
Sanja Fidler Intro to Image Understanding 12 / 57
Sanja Fidler Intro to Image Understanding 12 / 57
Sanja Fidler Intro to Image Understanding 12 / 57
Sanja Fidler Intro to Image Understanding 12 / 57
Sanja Fidler Intro to Image Understanding 12 / 57
Sanja Fidler Intro to Image Understanding 13 / 57
Sanja Fidler Intro to Image Understanding 14 / 57
Sanja Fidler Intro to Image Understanding 15 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 16 / 57
Sanja Fidler Intro to Image Understanding 17 / 57
Sanja Fidler Intro to Image Understanding 18 / 57
!" #" $" #" %" #" !" &" #'" ()*+,"-.+/0"1+2+" %" 3)1-401"-.+/0"1+2+" 5).0"678*9)8"
Sanja Fidler Intro to Image Understanding 19 / 57
Sanja Fidler Intro to Image Understanding 20 / 57
Sanja Fidler Intro to Image Understanding 21 / 57
Sanja Fidler Intro to Image Understanding 21 / 57
Sanja Fidler Intro to Image Understanding 22 / 57
Sanja Fidler Intro to Image Understanding 23 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
Sanja Fidler Intro to Image Understanding 24 / 57
k
k
k
k
Sanja Fidler Intro to Image Understanding 25 / 57
k
k
k
k
Sanja Fidler Intro to Image Understanding 25 / 57
k
k
k
k
Sanja Fidler Intro to Image Understanding 25 / 57
k
k
k
k
Sanja Fidler Intro to Image Understanding 25 / 57
Sanja Fidler Intro to Image Understanding 26 / 57
Sanja Fidler Intro to Image Understanding 26 / 57
Sanja Fidler Intro to Image Understanding 26 / 57
k
k
Sanja Fidler Intro to Image Understanding 26 / 57
Sanja Fidler Intro to Image Understanding 27 / 57
Sanja Fidler Intro to Image Understanding 27 / 57
Sanja Fidler Intro to Image Understanding 27 / 57
Sanja Fidler Intro to Image Understanding 27 / 57
Original! !" !" !" !" !" !" !" !" !" #" #" #" #" $" #" #" #" #"
Sanja Fidler Intro to Image Understanding 27 / 57
Original! !" !" !" !" !" !" !" !" !" #" #" #" #" $" #" #" #" #"
!"#$%&'(')*+,-&$* %&''()*+&*(,"(-.(,/*
Sanja Fidler Intro to Image Understanding 27 / 57
Sanja Fidler Intro to Image Understanding 28 / 57
Sanja Fidler Intro to Image Understanding 29 / 57
Sanja Fidler Intro to Image Understanding 30 / 57
Sanja Fidler Intro to Image Understanding 31 / 57
Sanja Fidler Intro to Image Understanding 32 / 57
Sanja Fidler Intro to Image Understanding 33 / 57
Sanja Fidler Intro to Image Understanding 34 / 57
Sanja Fidler Intro to Image Understanding 35 / 57
Sanja Fidler Intro to Image Understanding 36 / 57
Sanja Fidler Intro to Image Understanding 37 / 57
Sanja Fidler Intro to Image Understanding 38 / 57
Sanja Fidler Intro to Image Understanding 38 / 57
Sanja Fidler Intro to Image Understanding 38 / 57
Sanja Fidler Intro to Image Understanding 38 / 57
Sanja Fidler Intro to Image Understanding 39 / 57
Sanja Fidler Intro to Image Understanding 39 / 57
Sanja Fidler Intro to Image Understanding 39 / 57
Sanja Fidler Intro to Image Understanding 39 / 57
k
k
Sanja Fidler Intro to Image Understanding 40 / 57
k
k
Sanja Fidler Intro to Image Understanding 40 / 57
k
k
Sanja Fidler Intro to Image Understanding 40 / 57
Sanja Fidler Intro to Image Understanding 41 / 57
Figure: Fergus, et al., SIGGRAPH 2006
Figure: Bokeh: http://lullaby.homepage.dk/diy-camera/bokeh.html Click for more info
Sanja Fidler Intro to Image Understanding 42 / 57
Sanja Fidler Intro to Image Understanding 43 / 57
Sanja Fidler Intro to Image Understanding 43 / 57
Sanja Fidler Intro to Image Understanding 43 / 57
Sanja Fidler Intro to Image Understanding 44 / 57
[Source: S. Lazebnik]
Sanja Fidler Intro to Image Understanding 45 / 57
[Source: S. Lazebnik]
Sanja Fidler Intro to Image Understanding 45 / 57
k
k
Sanja Fidler Intro to Image Understanding 46 / 57
k
k
Sanja Fidler Intro to Image Understanding 46 / 57
k
k
Sanja Fidler Intro to Image Understanding 46 / 57
k
k
Sanja Fidler Intro to Image Understanding 46 / 57
Sanja Fidler Intro to Image Understanding 47 / 57
Sanja Fidler Intro to Image Understanding 47 / 57
Sanja Fidler Intro to Image Understanding 47 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 47 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 47 / 57
Sanja Fidler Intro to Image Understanding 48 / 57
Sanja Fidler Intro to Image Understanding 48 / 57
Sanja Fidler Intro to Image Understanding 48 / 57
Sanja Fidler Intro to Image Understanding 48 / 57
Gaussian : f (x, y) =
1 2πσ2 e− x2+y2
σ2
=
√ 2πσe− x2
σ2
·
√ 2πσe− y2
σ2
Sanja Fidler Intro to Image Understanding 49 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 50 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 50 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 51 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 51 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 52 / 57
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 52 / 57
Sanja Fidler Intro to Image Understanding 53 / 57
i
Sanja Fidler Intro to Image Understanding 53 / 57
i
Sanja Fidler Intro to Image Understanding 53 / 57
i
1 are the vertical and horizontal filter.
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 53 / 57
i
1 are the vertical and horizontal filter.
[Source: R. Urtasun]
Sanja Fidler Intro to Image Understanding 53 / 57
!"#$#%&'( )*!!+,-.(/0102(
.-+&#'(
!"#$%&'&()
*$+,+'#-) (&.#+-)
Sanja Fidler Intro to Image Understanding 54 / 57
!"#$%&'&() #$%&'&()
Sanja Fidler Intro to Image Understanding 55 / 57
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 correlation fspecial: creates special filters including a Gaussian
Sanja Fidler Intro to Image Understanding 56 / 57
Sanja Fidler Intro to Image Understanding 57 / 57