N. Kiryati, Y. Gofman, "Detecting symmetry in grey-level images: the
global optimization approach"
D. Reisfeld, H. Wolfson, Y. Yeshurun, "Context free attentional operators:
the generalized symmetry transform"
Symmetry Measure A one dimensional real function can be decomposed in a symmetric and an antisymmetric part,
where fs(x)=½( f(x) + f(-1) ) and fa(x)=½( f(x) - f(-1) ). Therefore a measure of symmetry, for 1D functions, is
It is easily seen that S(f) is relate to the correlation of f(x) with f(-x),
where the norms are evaluated with respect to v. It is easily seen that this is related to the correlation with the function mirrored about the u axis,
This symetry measure is scale independent. To avoid emphasizing the small scales, a scale dependent factor should be included.
Given an image I we compute the gradient (dxI, dyI) and write it in polar representation, ie, with modulus g and phase t. To define th e symmetry transform, at each point we evaluate the contribution from neighboring symmetric pairs. More explicictly, at any point p=(x,y) we define the set G(p) of symmetric points as the pairs of points p1 p2 such that &fract12;(p1 + p2) = p. Each pair contribution depends on the strength of the edge at the two points, ie, to the modulus of the gradient. Actually we use R(g) = log( 1 + g ). Each pair contribution is weighted with a distance function D. This is a monotonically decreasing function that goes to zero at infinity, for example a gaussian, D(x) = 1/(sqrt(2 Pi) s) exp( - x²/2s² ). Here s determines the scale of the symmetry, ie, the size of the neighbor. Finally each pair contribution is weighted by
where a is the angle made by the line between the two points and the x-axis. The first term is maximum when t1 - a + t2 - a = Pi, i.e., the two gradients are in the same direction towards each other. The second term reduced the contribution of perpendicular straight edges ( ti-a = Pi/2 ).
Putting all together, the symmetry at the point p is
The symmetry map is invariant under rotations and remains effective when the image is skewed.
Marco Corvi - Page hosted by
geocities.com.