Image Formation, Image Processing
First version was created by Wei-Chih Tu, 2018
1
Image Formation, Image Processing First version was created by - - PowerPoint PPT Presentation
Image Formation, Image Processing First version was created by Wei-Chih Tu, 2018 1 Vision How vision is formed Physical world Sensing device Interpreting device Interpretations cat, lovely, in a box CPU/GPU/DSP Image formation Image
First version was created by Wei-Chih Tu, 2018
1
Sensing device Interpreting device CPU/GPU/DSP Interpretations cat, lovely, in a box Physical world Image formation Image processing
2
Eyes send out “feeling rays” into the world
Slide by Alexei Efros
Supported by:
*http://www.ncbi.nlm.nih.gov/pubmed/12094435?dopt=Abstract
“For every complex problem there is an answer that is clear, simple, and wrong.”
3
4
film
5
film
barrier aperture inverted image
6
7 Slide by Steve Seitz
https://petapixel.com/2012/04/18/german-garbage-men-turn-dumpsters-into-giant-pinhole-cameras/ 8
Slide by Steve Seitz 9
Source: https://www.chegg.com/homework-help/questions-and-answers/theory-thin-lens-equation-written-1-f-1-0-1-f-focal-length-o-
10
film
lens in focus circle of confusion
11
12
Depth of field
Wiki: circle of confusion
13 Wiki: depth of field
Source: AMC 14
Vignetting
15
Source: National Geographic 16
17
film Sensor (CCD/CMOS)
18 Source: Ulas Bagci
pixel
Figure 2.23 from Computer Vision: Algorithms and Applications 19
Low resolution High resolution
20 Figure by Yen-Cheng Liu
Low sampling rate may cause aliasing artifact
21
Example results of 4x upscaling. Figure from SRGAN [Ledig et al. CVPR 2017]
The world is HDR and our eyes have great ability to sense it
An exposure bracketed sequence (Each picture is a LDR image)
22
[Mertens et al. PG 2007]
23 Wiki: tone mapping
3 exposure (-2,0,+2) tone mapped image of a scene at Nippori Station.
Color filter array (CFA) Bayer pattern: 1R1B2G in a 2x2 block
24
25 Wiki: Sergey Prokudin-Gorsky
A picture of Alim Khan (1880-1944), Emir of Bukhara, taken in 1911.
26
27 Source: LUNA
28
29
Kinect V2 (time of flight) PointGrey Bumblebee 2 (stereo)
Sensing device Interpreting device CPU/GPU/DSP Interpretations cat, lovely, in a box Physical world Image formation Image processing
30
31 Wiki: two-streams hypothesis
“what” pathway “where” pathway
32
33
34
35
36
37 https://homepages.inf.ed.ac.uk/rbf/HIPR2/morops.htm
Dilation Example structuring element Erosion dilate
38
modify/enhance image properties
39
40
http://setosa.io/ev/image-kernels/
41 Figure 3.10 from Computer Vision: Algorithms and Applications
Output size changed…
42
Zero padding Symmetric Replicate Circular
43
825 9
box filter
44
Moving 1 pixel forward
45
Sum = 24 Sum = 48 – 14 – 13 + 3 = 24 19 + 17 – 11 + 3 = 28 Note: 𝑃(1) filter is also called constant time filter
46
1D illustration of Gaussian functions
𝜏 = 1 𝜏 = 2 𝜏 = 3
47
(The same technique can be applied to other separable kernels)
48
49
Input Image 1D Pass 1D Pass Input Image 2D Sliding Window
Direct 2D implementation: 𝑃(𝑠2) Separable implementation: 𝑃(𝑠)
50
51
52
Box Box * Box Box3 Box4
Gaussians…
53
1st order IIR filter: 2nd order IIR filter:
54
64
÷2
55
64 32
÷2
56
64 32 16
÷2
57
64 32 16 8
÷2
58
64 32 16 8 4
÷2
59
64 32 16 8 4 2
÷2
60
64 32 16 8 4 2 1
÷2
61
64 32 16 8 4 2 1 0.5
÷2
62
64 32 16 8 4 2 1 0.5
0.25
÷2
63
64
65
“Recursively implementing the Gaussian and its derivatives”, ICIP 1992
66
11 19 22 12 25 27 18 26 23 A local patch 11, 12, 18, 19, 22, 23, 25, 26, 27 Sort 11 19 22 12 22 27 18 26 23 Replace center pixel value by median
67
Original Add salt & pepper Gaussian filter Median filter
Source: https://www.pinterest.com/pin/304485624782669932
68 Slide by Steve Seitz
69
Hubel & Wiesel (1962)
70
depth discontinuity surface color discontinuity illumination discontinuity surface normal discontinuity
Slide by Steve Seitz
71
Intensity profile Gradient magnitude
72
73
[1, -1] [-1, 1] [1, 0, -1]
74 Wiki: Sobel operator
Input image 𝐻 After thresholding
75 Slide by Steve Seitz
76
77
No filtering Gaussian filter, 𝜏 = 2 Gaussian filter, 𝜏 = 5
78
Not edge Missing edge Bad localization
connected to strong edges
79
80
Bilinear interpolation Gradient magnitude After NMS
81
Strong edges Weak edges
82
83
Input Output Edge remains sharp Small fluctuations are removed
intensity (color) to the center pixel
84
Spatial kernel Range kernel
85
86
Flash No flash Joint bilateral filtering
http://hhoppe.com/proj/flash/
approach”, ECCV 2006
4k2k videos at 30fps”, ISCAS 2017
87
88 http://kaiminghe.com/eccv10/index.html
[He et al. ECCV 2010]
89
90
Edit (e.g. color) propagation Guided upsampling (depth maps, features, …, etc.) Detail manipulation
Sensing device Interpreting device CPU/GPU/DSP Interpretations cat, lovely, in a box Physical world Image formation
Image processing
91