Introduction to computer vision 3
Jean Ponce
Zuhaib Akhtar za2023@nyu.edu
Ayush Jain aj3152@nyu.edu
Slides will be available after classes
The end of camera geometry and calibration
Linear Camera Calibration
Minimize ||Pm|| under the constraint ||m|| =1
2
2
Degenerate Point Configurations
Are there other solutions besides M ??
surfaces
= straight line + twisted cubic
Does not happen for 6 or more random points!
Analytical Photogrammetry
Non-Linear Least-Squares Methods
Iterative, quadratically convergent in favorable situations
Applications: Mobile Robot Localization (Devy et al., 1997)
(Rothganger, Sudsang, Ponce, 2002)
Affine models: Weak perspective projection
When the scene relief is small compared its distance from the
camera, m can be taken constant: weak perspective projection.
Weak-Perspective Projection
Paraperspective Projection
What about Affine Cameras?
Orthographic Projection
Parallel Projection
More Affine Cameras
Weak-Perspective Projection Model
r
(p and P are in homogeneous coordinates)
p = A P + b
(neither p nor P is in hom. coordinates)
p = M P
(P is in homogeneous coordinates)
Theorem: All affine projection models can be
represented by affine projection matrices.
Definition: A 2x4 matrix M = [A b], where A is a rank-2 2x3 matrix, is called an affine projection matrix.
General form of the weak-perspective
projection equation:
Theorem: An affine projection matrix can be written uniquely (up to a sign amibguity) as a weak perspective projection matrix as defined by (1).
(1)
Image processing
Basic Filters
Convolution
Linear filters = Weighted averages
Rij = (F*G)ij = ∑u,v Fi-u, j-v Gu, v
(f * g) (x,y) = su,v f(x-u,y-v) g(u,v) du dv
1/9 | 1/9 | 1/9 |
1/9 | 1/9 | 1/9 |
1/9 | 1/9 | 1/9 |
Kernel:
0.04 | 0.04 | 0.04 | 0.04 | 0.04 |
0.04 | 0.04 | 0.04 | 0.04 | 0.04 |
0.04 | 0.04 | 0.04 | 0.04 | 0.04 |
0.04 | 0.04 | 0.04 | 0.04 | 0.04 |
0.04 | 0.04 | 0.04 | 0.04 | 0.04 |
Kernel:
Kernel:
15 x 15 matrix of value 1/225
Basic Properties
Practicalities (discrete convolution)
K
Wrap around
Expand/Pad
Crop
Iideal
Ireal
Defocus = Convolution?
P
p
p
NO: Blur depends on depth
1-D:
2-D:
Slight abuse of notation:
We ignore the normalization
constant such that
Gaussian filters
, σ = 5
Kernel:
Simple Averaging
Gaussian Smoothing
Image Noise
Gaussian Smoothing to Remove Noise
σ = 2
σ = 4
No smoothing
Bottom line: The standard deviation of white noise is divided by k*sigma
Increasing σ
σ = 1
σ = 3
σ = 5
Basic Properties
Note about Finite Kernel Support
Oriented Gaussian Filters
Image Derivatives
Image Derivatives
Difference between
Actual image values
True difference
(derivative)
Sum of the noises
-1
0
1
Finite differences
Finite differences responding to noise
Increasing zero-mean Gaussian noise
Smooth Derivatives
G
Gx
Derivative + Smoothing
Better but still blurs away edge information
Without smoothing
With smoothing
Applying the first derivative of Gaussian
I
There is ALWAYS a tradeoff between smoothing and
good edge localization!
Image with Edge
Edge Location
Image + Noise
Derivatives detect edge and noise
Smoothed derivative removes noise, but blurs edge