Lably
Skip to content

Generalized structure tensor

  • 5 min read
  • 5 chapters

Related on Lably

Through Identity matrix, Chain rule and Convolution

It is a widely known method in applications of image and video processing including computer vision, such as biometric identification by fingerprints, and studies of human tissue sections.

GST in 2D and locally orthogonal bases

Let the term image represent a function f(ξ(x,y),η(x,y)) where x,y are real variables and ξ,η, and f, are real valued functions. GST represents the direction along which the image f can undergo an infinitesimal translation with minimal (total least squares) error, along the "lines" fulfilling the following conditions:

1. The "lines" are ordinary lines in the curvilinear coordinate basis ξ,η

cos⁡(θ)ξ(x,y)+sin⁡(θ)η(x,y)=constant

which are curves in Cartesian coordinates as depicted by the equation above. The error is measured in the L2 sense and the minimality of the error refers thereby to L2 norm.

2. The functions ξ(x,y),η(x,y) constitute a harmonic pair, i.e. they fulfill Cauchy–Riemann equations,

∂ξ∂x=−∂η∂y,∂ξ∂y=∂η∂x.

Accordingly, such curvilinear coordinates ξ,η are locally orthogonal.

Then GST consists in

GST=(λmax−λmin)∫w(ξ,η)[∂f∂ξ∂f∂η][∂f∂ξ,∂f∂η]dξdη+λminI

where 0≤λmin≤λmax are errors of (infinitesimal) translation in the best direction (designated by the angle θ) and the worst direction (designated by θ+π/2). The function w(ξ,η) is the window function defining the "outer scale" wherein the detection of θ will be carried out, which can be omitted if it is already included in f or if f is the full image (rather than local). The matrix I is the identity matrix. Using the chain rule, it can be shown that the integration above can be implemented as convolutions in Cartesian coordinates applied to the ordinary structure tensor when ξ,η pair the real and imaginary parts of an analytic function g(z),

ξ(x,y)=ℜg(z)η(x,y)=ℑg(z)

where z=x+iy. Examples of analytic functions include g(z)=log⁡z=log⁡(x+iy), as well as monomials g(z)=zn=(x+iy)n, g(z)=zn/2=(x+iy)n/2, where n is an arbitrary positive or negative integer. The monomials g(z)=zn are also referred to as harmonic functions in computer vision, and image processing.

Thereby, Cartesian Structure tensor is a special case of GST where ξ=x, and η=y, i.e. the harmonic function is simply g(z)=z=(x+iy). Thus by choosing a harmonic function g, one can detect all curves that are linear combinations of its real and imaginary parts by convolutions on (rectangular) image grids only, even if ξ,η are non-Cartesian. Furthermore, the convolution computations can be done by using complex filters applied to the complex version of the structure tensor. Thus, GST implementations have frequently been done using complex version of the structure tensor, rather than using the (1,1) tensor.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Robotics