VIDEO SIGNALS VIDEO SIGNALS
Corners and Shapes
VIDEO SIGNALS VIDEO SIGNALS Corners and Shapes PROJECTION OF - - PowerPoint PPT Presentation
VIDEO SIGNALS VIDEO SIGNALS Corners and Shapes PROJECTION OF VECTORS PROJECTION OF VECTORS any vector x can be represented as a linear b d li combination of direction vectors of the coordinate system x = a i + a i + a i x = a 1 i 1
Corners and Shapes
b d li
any vector x can be represented as a linear
combination of direction vectors of the coordinate system x = a i + a i + a i x = a1i1 + a2i2 + a3i3
orthogonal projection of x onto each axis
produces components aj = ij
Tx
• rotation of coordinate system produces a • rotation of coordinate system produces a
new system, in which each axis direction vector can be represented as a linear combination of direction vectors of the first system
columns of matrix M are the direction vectors
di t f th t ft
• coordinates of the vector after
transformation
y y = Mx
correlation c of zero-mean random variables x and y
quantifies linear statistical dependency quantifies linear statistical dependency -1 ≤ c ≤ 1 c = 0: uncorrelated c 1: complete positive correlation
N T
c = 1: complete positive correlation c = -1: complete negative correlation
1 T k k k
correlation matrix C of n-dimensional data x
– size nxn computed through covariance matrix R
ij ii jj
c r r
zero-centered data: Σ xi = 0
quantifies linear statistical dependencies of n random variables
1 ≤ ≤ 1 l ti f t t i d j
-1 ≤ cij≤ 1: correlation of vector components i and j cij ii = 1
cij= cji
We can interpret this correlation as an ellipse whose major axis is one
eigenvalue and the minor axis length is the other: No correlation yields a circle, and perfect correlation yields a line.
30
All principal components
20 25 30
PC 1
First PC is direction of
5 10 15
PC 1
Subsequent PCs are
5 10 15 20 25 30 5
Subsequent PCs are
20 25 30
10 15 20
PC 2
5 10 15 20 25 30 5
Given m points in a n dimensional space for large n Given m points in a n dimensional space, for large n,
Given m points in a n dimensional space, for large n, how does
Choose a line that fits the data so the points are spread out well
along the line
Formally, minimize sum of squares of distances to the line. Why sum of squares? Because it allows fast minimization Why sum of squares? Because it allows fast minimization.
Minimizing sum of squares of distances to the line is the same
How is the sum of squares of projection lengths
1 2 k
k k1 1 k2 2 kk k
1 11 1 12 2 1k k
5
4
3 4.0 4.5 5.0 5.5 6.0 2
5
4
3 2 4.0 4.5 5.0 5.5 6.0 2
5
4
3 4.0 4.5 5.0 5.5 6.0 2
Many applications benefit from features localized in (x y) Many applications benefit from features localized in (x,y) Edges well localized only in one direction -> detect corners
Desirable properties of corner detector
Accurate localization Invariance against shift rotation scale brightness change Invariance against shift, rotation, scale, brightness change Robust against noise, high repeatability
Local displacement sensitivity Local displacement sensitivity
Linear approximation for small ∆x,∆y
2 ( )
, , ,
x y i d
x S x y f x y f x y y
Iso-sensitivity curves are ellipses
( , ) x y window
y
Often based on eigenvalues λ1, λ2 of “structure
2
2
Invariant to brightness offset: f(x,y) → f(x,y) + c Invariant to shift and rotation Not invariant to scaling Not invariant to scaling
The Hough Transform of an image with K lines is the sum of many sinusoids intersecting in K points sinusoids intersecting in K points.
Maxima in the dual plane indicate the parameters of the k lines
Consider a discretization of the dual plane for
The limits of ρ are chosen accordingly to the
max max
Clear the matrix H(m,n); Fro every point P(x,y) of the image
1 f ϑ h f /2 /2 i h dϑ
1. for ϑn that ranges from -π/2 to π/2 with step dϑ 1. Evaluate ρ(n)=x*cos(ϑn)+y*sin(ϑn) 2 find the index m corresponding to ρ(n) 2. find the index m corresponding to ρ(n) 3. Increase H(m,n) 2. end
end 4. Find local maxima in H(.,.) that will corresponds to
5 points
line
Periodic
line
line
Dotted line
Same text with different orientations
Noise and noiseless square
q
Accumulation matrices of the previous images Accumulation matrices of the previous images
Find circles of fixed radius r For circles of undetermined radius, use