Generalized structure tensor explained
In image analysis, the generalized structure tensor (GST) is an extension of the Cartesian structure tensor to curvilinear coordinates.[1] It is mainly used to detect and to represent the "direction" parameters of curves, just as the Cartesian structure tensor detects and represents the direction in Cartesian coordinates. Curve families generated by pairs of locally orthogonal functions have been the best studied.
It is a widely known method in applications of image and video processing including computer vision, such as biometric identification by fingerprints,[2] and studies of human tissue sections.[3] [4]
GST in 2D and locally orthogonal bases
Let the term image represent a function
where
are real variables and
, and
, are real valued functions. GST represents the direction along which the image
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(\theta)\xi(x,y)+\sin(\theta)η(x,y)=constant
which are curves in Cartesian coordinates as depicted by the equation above. The error is measured in the
sense and the minimality of the error refers thereby to L2 norm.
2. The functions
constitute a harmonic pair, i.e. they fulfill
Cauchy–Riemann equations,
\begin{align}
&
,\\[4pt]
&
.
\end{align}
Accordingly, such curvilinear coordinates
are locally orthogonal.
Then GST consists in
GST=(λmax-λmin)
\intw(\xi,η)\left[
\begin{array}{c}
\\
\end{array}
\right]
[
,
]d\xidη+λminI
where
are errors of (infinitesimal) translation in the best direction (designated by the angle
) and the worst direction (designated by
). The function
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
or if
is the full image (rather than local). The matrix
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
,
\begin{array}{c}
\xi(x,y)=\Reg(z)\\
η(x,y)=\Img(z)\\
\end{array}
where
.
[5] Examples of analytic functions include
, as well as monomials
,
, where
is an arbitrary positive or negative integer. The monomials
are also referred to as
harmonic functions in computer vision, and image processing.
Thereby, Cartesian Structure tensor is a special case of GST where
, and
, i.e. the harmonic function is simply
. Thus by choosing a harmonic function
, 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.
Complex version of GST
As there is a complex version of the ordinary structure tensor, there is also a complex version of the GST
\begin{array}{c}
\kappa20=(λ1-λ
=λ1+λ
| 2\\
\end{array}
|
| |
| 2&=&|w|*|h*f| |
which is identical to its cousin with the difference that
is a complex filter. It should be recalled that, the ordinary structure tensor
is a real filter, usually defined by a sampled and scaled Gaussian to delineate the neighborhood, also known as the outer scale. This simplicity is a reason for why GST implementations have predominantly used the complex version above. For curve families
defined by analytic functions
, it can be shown that, the neighborhood defining function is complex valued,
w=(x\pmiy)n\exp(-(x2+y2)/(2\sigma
\pm
2+y2)/(2\sigma2))
,
a so called symmetry derivative of a Gaussian. Thus, the orientation wise variation of the pattern to be looked for is directly incorporated into the neighborhood defining function, and the detection occurs in the space of the (ordinary) structure tensor.
Basic concept for its use in image processing and computer vision
Efficient detection of
in images is possible by image processing for a pair
,
. Complex convolutions (or the corresponding matrix operations) and point-wise non-linear mappings are the basic computational elements of GST implementations. A total least square error estimation of
is then obtained along with the two errors,
and
. In analogy with the Cartesian
structure tensor, the estimated angle is in double angle representation, i.e.
is delivered by computations, and can be used as a shape feature whereas
alone or in combination with
can be used as a quality (confidence, certainty) measure for the angle estimation.
Logarithmic spirals, including circles, can for instance be detected by (complex) convolutions and non-linear mappings. The spirals can be in gray (valued) images or in a binary image, i.e. locations of edge elements of the concerned patterns, such as contours of circles or spirals, must not be known or marked otherwise.
Generalized structure tensor can be used as an alternative to Hough transform in image processing and computer vision to detect patterns whose local orientations can be modelled, for example junction points. The main differences comprise:
- Negative, as well as complex voting are allowed;
- With one template multiple patterns belonging to the same family can be detected;
- Image binarization is not required.
Physical and mathematical interpretation
The curvilinear coordinates of GST can explain physical processes applied to images. A well known pair of processes consist in rotation, and zooming. These are related to the coordinate transformation
and
.
If an image
consists in iso-curves that can be explained by only
i.e. its iso-curves consist in circles
, where
is any real valued differentiable function defined on 1D, the image is invariant to rotations (around the origin).
Zooming (comprising unzooming) operation is modeled similarly. If the image has iso-curves that look like a "star" or bicycle spokes, i.e.
for some differentiable 1D function
then, the image
is invariant to scaling (w.r.t. the origin).
In combination,
f(\xi,η)=g(\cos(\theta)log(\sqrt{x2+y2})+\sin(\theta)\tan-1(x,y))
is invariant to a certain amount of rotation combined with scaling, where the amount is precised by the parameter
.
Analogously, the Cartesian structure tensor is a representation of a translation too. Here the physical process consists in an ordinary translation of a certain amount along
combined with translation along
,
\cos(\theta)x+\sin(\theta)y=constant
where the amount is specified by the parameter
. Evidently
here represents the direction of the line.
Generally, the estimated
represents the direction (in
coordinates) along which infinitesimal translations leave the image invariant, in practice least variant. With every curvilinear coordinate basis pair, there is thus a pair of infinitesimal translators, a linear combination of which is a
Differential operator. The latter are related to
Lie algebra.
Miscellaneous
"Image" in the context of the GST can mean both an ordinary image and an image neighborhood thereof (local image), depending on context. For example, a photograph is an image as is any neighborhood of it.
See also
Notes and References
- Bigun . J. . Bigun . T. . Nilsson . K. . Recognition by symmetry derivatives and the generalized structure tensor . IEEE Transactions on Pattern Analysis and Machine Intelligence . December 2004 . 26 . 12 . 1590–1605 . 10.1109/TPAMI.2004.126. 15573820 . 602221 .
- 10.1109/TIP.2007.916155. 18270124. Local Features for Enhancement and Minutiae Extraction in Fingerprints. IEEE Transactions on Image Processing. 17. 3. 354–363. 2008. Fronthaler. H.. Kollreider. K.. Bigun. J.. 2008ITIP...17..354F. 10.1.1.160.6312. 7119251.
- O. Schmitt . H. Birkholz . Improvement in cytoarchitectonic mapping by combining electrodynamic modeling with local orientation in high-resolution images of the cerebral cortex. Microsc. Res. Tech.. 74. 3 . 2010. 225–243. 10.1109/TIP.2007.916155. 18270124 . 7119251 .
- O. Schmitt . M. Pakura . T. Aach . L. Homke . M. Bohme . S. Bock . S. Preusse . Analysis of nerve fibers and their distribution in histologic sections of the human brain . Microsc. Res. Tech. . 63 . 4 . 2004 . 220–243 . 10.1002/jemt.20033 . 14988920 . 28746142.
- Bigun . Josef . Pattern Recognition in Images by Symmetries and Coordinate Transformations . Computer Vision and Image Understanding . December 1997 . 68 . 3 . 290–307 . 10.1006/cviu.1997.0556.