Professional Documents
Culture Documents
Reconocimiento de Imágenes
Image Recognition
Image Segmentation and Graphs
Francesc J. Ferri
Dept. d’Informàtica.
Universitat de València
november 2009
Image Segmentation
The problem in its full generality is by far too difficult. Many different
restrictions or particularizations need to be applied.
Local representations
If an appropriate description, x, is assigned to each image location, (x, y ),
then the whole image can be seen as a cloud of points in a representation
space.
In its finest interpretation, pixels are nodes and edge weights represent
pixel similarity or “affinity” with regard to belonging to the same region in
terms of spatial and representation proximity.
Graph clustering
Let G = (V , E , w ) a weighted undirected graph, w : E −→ IR.
{e = (i, j) ∈ E : i ∈ A, j ∈ B}
X
cut(A, B) = w (i, j)
i∈A,j∈B
Minimum cut
Minimum cut
A good bipartition is the one that minimizes the cut. This is a well-studied
problem in graph theory but tends to give too small subgraphs in the kind
of graphs that come from images.
X
assoc(A, V ) = w (i, j)
i∈A,j∈V
Normalized cuts
y T (D − W )y
miny
y T Dy
subject to: y T D1 = 0
Eigensystem
Given G = (V , E , W )
1. Compute the second smallest eigenvector, y2 of D −1 (D − W ).
2. Find an appropriate splitting value for y2
3. Recursively partition each block until some appropriate stop condition
dij 2
−
wij = e σ
40
30
20
10
−10
−20
−30
−10 0 10 20 30 40
Clustering result
40 1
0.8
30
0.6
20 0.4
0.2
10
0
−0.2
−10 −0.4
−0.6
−20
−0.8
−30 −1
−10 0 10 20 30 40 0 10 20 30 40 50 60 70 80 90
Image segmentation
Affinity matrix
is the matrix formed with the weights assigned to each pair of pixels
(nodes).
Edges must take into account both spatial proximity and representation
similarity.
Affinity matrix for images
2
dijF
2
− dijX
−σ
wij = e F · e σX if dijX < r
0 otherwise
Other possibilities for analyzing and partition graphs exist, all based on the
Laplacian matrix.