Introduction to computer vision 11
Jean Ponce
Zuhaib Akhtar za2023@nyu.edu
Ayush Jain aj3152@nyu.edu
Slides will be available after classes
Self-calibration
Types of ambiguity
Projective
15dof
Affine
12dof
Similarity
7dof
Euclidean
6dof
Preserves intersection and tangency
Preserves parallellism, volume ratios
Preserves angles, ratios of length
Preserves angles, lengths
From uncalibrated to calibrated (affine) cameras
Weak-perspective camera:
Calibrated camera:
Problem: what is Q ?
Assume k and s are known (k=1, s=0)
From uncalibrated to calibrated (affine) cameras
Weak-perspective camera:
Calibrated camera:
Problem: what is Q ?
Assume k and s are known (k=1, s=0)
Reconstruction Results (Tomasi and Kanade, 1992)
Reprinted from “Factoring Image Sequences into Shape and Motion,” by C. Tomasi and
T. Kanade, Proc. IEEE Workshop on Visual Motion (1991). © 1991 IEEE.
What is some parameters are known?
Weak perspective camera:
Zero skew:
Problem: what is Q ?
(the Euclidean upgrade)
0
Self calibration!
^
Projective case, known intrinsic parameters
Euclidean (perspective) camera:
Take then
If K is known take it to be the identity, then:
where
Euclidean upgrade from projective bundle adjustment.
Mean relative error: 1.2%
Projective case, self calibration (Pollefeys, 1998)
Euclidean (perspective) camera:
Take then
If u0=v0=0 (or equivalently are known):
thus
Multi-view object models
Visual Hulls
[Baumgart, 1974]
Visual Hulls
[Baumgart, 1974]
Experimental setup. Calibration courtesy of Jean-Marc Lavest.
[Lazebnik, Furukawa & Ponce, IJCV’07] [Franco & Boyer, PAMI’09]
3
4
8
12
Multi-view stereo:
PMVS
Feature detection
Matching
Expansion
Filtering
Yasutaka Furukawa and Jean Ponce,
Accurate, Dense and Robust Stereopsis, CVPR’07, PAMI’10
A1
B1
C1
D1
A2
B2
C2
b
c
d
e
f
g
I1
I2
Expansion
A1
B1
C1
D1
A2
B2
C2
b
c
d
e
f
g
I1
I2
b’
Expansion
A1
B1
C1
D1
A2
B2
C2
a
b
c
d
e
f
g
I1
I2
b’
Expansion
A1
B1
C1
D1
A2
B2
C2
a
b
c
d
e
f
g
I1
I2
p
q
Filtering
A 3D survey of Palazzo Ducale in Venice, Italy
Courtesy of Yves Ubelmann, Iconem – Exhibit at the Grand Palais https://www.grandpalais.fr/fr/evenement/venise-revelee
Outline:
Texture Classification
Grass
Sea
Image categorization
Cow
Building
The Concept of “Texton”
Multiple training images of the same texture
Multiple training images of the same texture
Filter responses over a bank of filters
Clustering
Texton Dictionary
Question: How do we
perform clustering?
Example of Filter Banks
Isotropic Gabor
Gaussian derivatives at different scales and orientations
‘S’
‘LM’
‘MR8’
Example Textons (LM)
(Linear combinations of filters corresponding to cluster centers)
Example: Visual words in photographs
Images
Word maps
Visual dictionary
Visual word = texton for « objects »
Modeling Texton Distributions
Training
image
Filter Responses
Texton Map
Model = Histogram of textons in the image
Analogy with Text Analysis
Political observers say that the government of Zorgia does not control the political situation. The government will not hold elections …
Analogy:
Text fragment 🡨🡪 Image region
Word 🡨🡪 Texton
Government
Political
Gigabyte
Observers
Election
Memory
Gigahertz
Bus
Word from vocabulary
Frequency of occurrence
« Bag of words »
Analogy with Text Analysis
The ZH-20 unit is a 200Gigahertz processor with 2Gigabyte memory. Its strength is its bus and high-speed memory……
Political
Government
Gigabyte
Observers
Election
Memory
Gigahertz
Bus
Word from vocabulary
Frequency of occurrence
Government
Observers
Histogram from input fragment
Political
Government
Gigabyte
Observers
Election
Memory
Gigahertz
Bus
Frequency of occurrence
Histogram from training “computer” fragments
Political
Gigabyte
Election
Memory
Gigahertz
Bus
Frequency of occurrence
Histogram from training “political” fragments
Compare
Classification
Input Image (or Region of an Input Image)
Model
Compare with Stored Models from Training Images
Models of Plastic
Models of Grass
Example Classification
Input Region
Textons
Examples
Segmentation and clustering
From images to objects
What Defines an Object?
The goals of segmentation
X. Ren and J. Malik. Learning a classification model for segmentation. ICCV 2003.
“superpixels”
The goals of segmentation
Berkeley segmentation database:�http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/
image
human segmentation
The goals of segmentation
Berkeley segmentation database:�http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/
image
human segmentation
The goals of segmentation
Berkeley segmentation database:�http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/
image
human segmentation
Segmentation as clustering
Source: K. Grauman
Segmentation as clustering
Simplest methods:
Agglomerative clustering (Merge):
Divisive clustering (Split):
diverse cluster
Split and merge
Clustering
How to choose the representative colors?
Objective
R
G
R
G
Solution: Break it down into subproblems
Suppose I tell you the cluster centers ci
Suppose I tell you the points in each cluster
K-means clustering
K-means clustering algorithm
Java demo: http://home.dei.polimi.it/matteucc/Clustering/tutorial_html/AppletKM.html �
Properties
Segmentation as clustering
Image
Intensity-based clusters
Color-based clusters
Segmentation as clustering
Source: K. Grauman
(But apples and oranges)
Segmentation as clustering
K-Means for segmentation
Histogram-based segmentation
Goal
Histogram-based segmentation
Goal
Here’s what it looks like if we use two colors
Finding Modes in a Histogram
How Many Modes Are There? What are they? Which points belong with which modes?