44
1/54 Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006 Johann Radon Institute for Computational and Applied Mathematics (RICAM) Austrian Academy of Sciences Altenbergerstraße 56 A-4040 Linz, Austria [email protected]

Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

Embed Size (px)

DESCRIPTION

Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006. Johann Radon Institute for Computational and Applied Mathematics (RICAM) Austrian Academy of Sciences Altenbergerstraße 56 A-4040 Linz, Austria [email protected]. Summary of the previous weeks. - PowerPoint PPT Presentation

Citation preview

Page 1: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

1/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Signal- und Bildverarbeitung, 323.014

Image Analysis and Processing

Arjan Kuijper

09.11.2006

Johann Radon Institute for Computational and Applied Mathematics (RICAM)

Austrian Academy of Sciences Altenbergerstraße 56A-4040 Linz, Austria

[email protected]

Page 2: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

2/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Summary of the previous weeks

• The Gaussian kernel... – Is a filter derived from “almost trivial” assumptions– Is the solution of the heat equation – Regularizes non-differential functions

• Scale is an essential aspect of observations – the width of the kernel

• The scale cannot be taken too small or too large

• Derivatives of images are to be taken by convolution of the image with the derivatives of the Gaussian filter.

Page 3: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

3/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Today

• The differential structure of images– Differential image structure– Isophotes and flow lines– Coordinate systems and transformations– First order gauge coordinates– Gauge coordinate invariants: examples– Second order structure– Skipped:

• Third order image structure: T-junction detection• Fourth order image structure: junction detection• Scale invariance and natural coordinates• Irreducible invariants

Taken from B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, 2003.Chapter 6

Page 4: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

4/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Differential image structure

• The differential structure of (discrete) images is the structure described by the local multi-scale derivatives of the image.

• Using heightlines, local coordinate systems and independence of the choice of coordinates.

• This is differential geometry, a field designed for the structural description of space and the lines, curves, surfaces etc. (a collection known as manifolds) that live there.

• Generate formulas for the detection of particular features, that detect special, semantically circumscribed, local meaningful structures (or properties) in the image, like edges, corners, T-junctions, monkey-saddles, etc.

• Only local!

Page 5: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

5/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Differential image structure

• Combinations of derivatives into expressions give nice feature detectors in images.

• Edges:

• Corners:

• Why do these work? Can we use any combination of derivatives? Does a reasonably small set of basis descriptors exist?

Ly2

2Lx2 2

Lx

Ly

2L

xyL

x2

2Ly2

Lx2 L

y2

Page 6: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

6/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• Lines in the image connecting points of equal intensity are called isophotes. They are the heightlines of the intensity landscape when we consider the intensity as 'height'.

• Example: Isophotes at different scales

Page 7: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

7/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• Simple use: The segmentation method by thresholding and separating the image in pixels lying within or without the isophote at the threshold luminance.

• Proporties:– isophotes are closed curves. Most isophotes in 2D images

are a so-called Jordan curve: a non-self-intersecting planar curve topologically equivalent to a circle;

– isophotes can intersect themselves. These are the critical isophotes. These always go through a saddle point;

– isophotes do not intersect other isophotes;– any planar curve is completely described by its curvature,

and so are isophotes;– isophote shape is independent of grayscale

transformations, such as changing the contrast or brightness of an image.

Page 8: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

8/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• A special class of isophotes is formed by those isophotes that go through a singularity in the intensity landscape, thus through a minimum, maximum or saddle point.

Page 9: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

9/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• When the image is slightly changed, isophotes also change. Critical isophotes (those through critical points) are not stable:

1 1 2 3 4 5

321

123

1 2 3 421

12

0.5 1 1.5 2 2.5 3

1.51

0.5

0.51

1.5

2 1 1 2

10.5

0.51

2 1 1 2

10.5

0.51

2 1 1 2

10.5

0.51

Page 10: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

10/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• Flow lines are the lines everywhere perpendicular to the isophotes.

• Flow lines are the integral curves of the gradient, made up of all the small little gradient vectors in each point integrated to a smooth long curve.

• In 2D, the flow lines and the isophotes together form a mesh or grid on the intensity surface.

• Just as in principle all isophotes together completely describe the intensity surface, so does the set of all flow lines.

• Flow lines are the dual of isophotes, vice versa.

• Just as the isophotes have a singularity at minima and maxima in the image, so have flow lines a singularity in direction in such points.

Page 11: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

11/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophotes and flow lines

• Isophotes and flow lines on the slope of a Gaussian blob. The circles are the isophotes, the flow lines are everywhere perpendicular to them. Inset: The height and intensity map of the Gaussian blob.

Page 12: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

12/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• Local structure is the local shape of the intensity landscape, like how sloped or curved it is, if there are saddle points, etc.

• The first order derivative gives us the slope, the second order is related to how curved the landscape is, etc.

• Use the Taylor expansion:

• However… The most important constraint for a good local image descriptor comes from the requirement that we want to be independent of our choice of coordinates.

Lx, y L0, 0Lx

x Ly

y 12

2Lx2 x2

2Lxy

x y 2Ly2 y2

13

3Lx3 x3

3Lx2y

x2 y 3L

xy2 x y2 3Ly3 y3 Ox4, y4

Page 13: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

13/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• The frame of the coordinate system is formed by the unit vectors pointing in the respective dimensions.

• Focus on the change of – orientation (rotation of the axes frame), – translation (x and/or y shift of the axes frame), and – zoom (multiplication of the length of the units along the

axes with some factor).

• We call all the possible instantiations of a transformation the transformation group. – All rotations form the rotational group.

In 2D the coordinate frame is rotated over an angle , the coordinates are multiplied with the matrixCosSin

SinCos

Page 14: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

14/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• In general a transformation is described by a set of equations:

• When we transform a space, the volume often changes, and the density of the material inside is distributed over a different volume. To study the change of a small volume we need to consider the matrix of first order partial derivatives, the Jacobian:

x '1 f1x1, x2, … , xn x 'n fnx1, x2, … , xn

J x' x

x'1x1

x'1xn

x'nx1

x'nxn

Page 15: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

15/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• If we consider the change of the infinitesimally small volume, the determinant of the Jacobian is the factor which corrects for the change in volume. – When the Jacobian is unity, we call the transformation a

special transformation.

• The transformation in matrix notation is expressed as , where A is the transformation matrix. When the coefficients of A are constant, we have a linear transformation, often called an affine transformation.

• A rotation matrix that rotates over zero degrees is the identity matrix or the symmetric tensor or -operator

• The matrix that rotates over 90 degrees (p/2 radians) is called the anti-symmetric tensor, the -operator or the Levi-Civita tensor

x' A x

0 11 0

1 00 1

Page 16: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

16/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• A function is said to be invariant under a group of transformations, if the transformation has no effect on the value of the function.

• The only geometrical entities that make physically sense are invariants.

• The derivatives to x and y are not invariant to rotation; However, the combination

is invariant: use

Lx2 L

y2

@~y = (¡ sinÁ;cosÁ) ¢r

@~x = (cosÁ;sinÁ) ¢r

Page 17: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

17/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Coordinate systems and transformations

• Notice that with invariance we mean invariance for the transformation (e.g. rotation) of the coordinate system, not of the image. The value of the local invariant properties is the same when we rotate the image.

Page 18: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

18/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• Consider intrinsic geometry: every point is described in such a way, that if we have the same structure, or local landscape form, no matter the rotation, the description is always the same.

• This can be accomplished by setting up in each point a dedicated coordinate frame which is determined by some special local directions given by the landscape locally itself.

• In each point separately the local coordinate frame is fixed in such a way that one frame vector points to the direction of maximal change of the intensity, and the other perpendicular to it (90 degrees clockwise).

v

w

Page 19: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

19/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• So set

• We have now fixed locally the direction for our new intrinsic local coordinate frame . This set of local directions is called a gauge, the new frame forms the gauge coordinates.

• Usually we divide the frame vectors by their length• The frame can be rewritten as a rotation on the

gradient vectors.

wLx

,Ly

v0 11 0. wL

y,

Lx

v

w

v, w

Page 20: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

20/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• Example:

0 5 10 15 20 25 30

0

5

10

15

20

25

30

Page 21: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

21/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• We want to take derivatives with respect to the gauge coordinates. As they are fixed to the object, no matter any rotation or translation, we have the following very useful result:

• any derivative expressed in gauge coordinates is an orthogonal invariant. E.g. it is clear that is the derivative in the gradient direction, and this is just the length of the gradient itself, an invariant.

• And , as there is no change in the luminance as we move tangentially along the isophote, and we have chosen this direction by definition.

Lw

Lv

0

@w = L x @x +L y @ypL 2

x +L 2y

= 1pL 2

x +L 2y

w¢r

@v = L y @x ¡ L x @ypL 2

x +L 2y

= 1pL 2

x +L 2y

v¢r

Page 22: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

22/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• From the derivatives with respect to the gauge coordinates, we always need to go to Cartesian coordinates in order to calculate the invariant properties on a computer.

• The transformation to the from to the Cartesian frame is done by implementing the definition of the directional derivatives. Important is that first a directional partial derivative (to whatever order) is calculated with respect to a frozen gradient direction. Then the formula is calculated which expresses the gauge derivative into this direction, and finally the frozen direction is filled in from the calculated gradient.

v, wx, y

@v = L y @x ¡ L x @ypL 2

x +L 2y

= 1pL 2

x +L 2y

v¢r

@w = L x @x +L y @ypL 2

x +L 2y

= 1pL 2

x +L 2y

w¢r

Page 23: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

23/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• This gives

Lw=

Lww=

Lvv=

• Lvv + Lww = …Lxx+Lyy

Lx2 Ly2

Lx2 Lxx 2 Lx Lxy Ly Ly

2 LyyLx2 Ly2

2 Lx Lxy Ly Lxx Ly2 Lx

2 LyyLx2 Ly2

Page 24: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

24/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

First order gauge coordinates

• The gauge coordinates are not defined if &• In practice however this is not a problem: we have a

finite number of such points, typically just a few, and we know from Morse theory that we can get rid of such a singularity by an infinitesimally small local change in the intensity landscape.

• Due to the fixing of the gauge by removing the degree of freedom for rotation, we have an important result: every derivative to v and w is an orthogonal invariant.

• This also means that polynomial combinations of these gauge derivative terms are invariant.

• We have found a complete family of differential invariants, that are invariant for rotation and translation of the coordinate frame.

Lx 0 Ly 0

Page 25: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

25/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Ridge detection

• Lvv is a ridge detector, since at ridges the curvature of isophotes is large

0 0.5 1 1.5 2 2.5 30

0.5

1

1.5

2

2.5

3

Page 26: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

26/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophote curvature

• Isophote curvature is defined as the change of the tangent vector in the gradient-gauge coordinate system.The definition of an isophote is: L(v,w)=Constant, and w=w(v).

• Differentiation gives

Two times differentiating gives

• In Cartesian coordinates:

w'' 2wv2

w' wv

v

w' 0

Lv vLw

2 Lx Lxy Ly Lxx Ly

2 Lx2 LyyLx2 Ly232

Page 27: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

27/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Isophote curvature

• Example at several scales:

• Tolansky's curvature illusion. The three circle segments have the same curvature 1/10:

Page 28: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

28/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Edge detection

• To find maxima of the gradient: use Lww• Historically, much attention is paid to the zero crossings

of the Laplacian due to the groundbreaking work of Marr and Hildreth. See Bill Green’s pages on Sobel / Laplace edge detection and Canny edge detection The zero crossings are however displaced on curved edges.

• From the expression of the Laplacian in gauge coordinates we see immediately that there is a deviation term which is directly proportional to the isophote curvature . Only on a straight edge with local isophote curvature zero the Laplacian is numerically equal to .

L Lww Lv v Lww Lw

Lww

Page 29: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

29/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Edge detection

• Contours of Lww (left) and L=0 (right) superimposed on an X-thorax image for s=4 pixels.

Page 30: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

30/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Gauge coordinates

• The term can be interpreted as a density of isophotes.

• The term is the flow line curvature.

• Note that have equal dimensionality for the intensity in both nominator and denominator. This leads to the desirable property that these expressions do not change when we e.g. manipulate the contrast or brightness of an image. In general, these terms are said to be invariant under monotonic intensity transformations.

LwwLw

LvwLw

Page 31: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

31/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Affine invariant corner detection

• Corners are defined as locations with high isophote curvature and high intensity gradient.

• Take the product of isophote curvature and the gradient raised to some (to be determined) power n:

• An affine transformation is a linear transformation of the coordinate axes:

• The equation for the affinely distorted coordinates now becomes:

Lv vLw

Lw

n Lv vLw

Lwn Lw

n Lv vLwn1

x 'y ' 1

a d b ca bc dx y

Lva vaLwan1

1b c a d2a2 c2Lx2 2a b c dLx Ly b2 d2Ly2b c a d2 12 3n2 Lx Lxy Ly Lxx Ly2 Lx

2 Lyy

Page 32: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

32/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Affine invariant corner detection

• when n=3 and for an affine transformation with unity Jacobean (a d - b c=1, a so-called special transformation) we are independent of the parameters a, b, c and d. This is the affine invariance condition.

• So the expression

is an affine invariant corner detector. This feature has the nice property that it is not singular at locations where the gradient vanishes, and through its affine invariance it detects corners at all 'opening angles'.

1b c a d2a2 c2Lx2 2a b c dLx Ly b2 d2Ly2b c a d2 12 3n2 Lx Lxy Ly Lxx Ly2 Lx

2 Lyy

Lv vLw

Lw3 Lv vLw

2 2 LxLx y Ly Lx xLy2 Lx

2Ly y

Page 33: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

33/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Gauge coordinates

• Example Lvv Lw2:

• Example Lww Lw2:

Page 34: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

34/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Gauge coordinates

• Example Lvv:

• Example Lww:

Page 35: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

35/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Second order structure

• At any point on the surface we can step into an infinite number of directions away from the point, and in each direction we can define a curvature.

• So in each point an infinite number of curvatures can be defined.

• When we smoothly change direction, there are two (opposite) directions where the curvature is maximal, and there are two (opposite) directions where the curvature is minimal.

• These directions are perpendicular to each other, and the extremal curvatures are called the principal curvatures.

Page 36: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

36/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

The Hessian matrix and principal curvatures

• The Hessian matrix is the gradient of the gradient vectorfield. The coefficients form the second order structure matrix.

• The Hessian matrix is square and symmetric, so we can bring it in diagonal form by calculating the Eigenvalues of the matrix and put these on the diagonal elements.

• These special values are the principal curvatures of that point of the surface. In the diagonal form the Hessian matrix is rotated in such a way, that the curvatures are maximal and minimal. The principal curvature directions are given by the Eigenvectors of the Hessian matrix.

12Lxx Lyy Lxx2 4 Lxy2 2 Lxx Lyy Lyy2 , 0,0, 12Lxx Lyy Lxx2 4 Lxy2 2 Lxx Lyy Lyy2

Page 37: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

37/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

The shape index

• For the two principal curvatures the shape index is given by

• The shape index runs from -1 (cup) via the shapes trough, rut, and saddle rut to zero, the saddle (here the shape index is undefined), and the goes via saddle ridge, ridge, and dome to the value of +1, the cap.

• The length of the vector defines how curved a shape is, definition of curvedness

shapeindex 2

arctan1 2

1 21 2

shapeindex 2

arctan Lx x Ly yLx x2 4 Lx y2 2 Lx x Ly y Ly y2

curvedness 12

12 2

212Lxx2 2 Lxy2 Lyy2

Page 38: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

38/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Principal directions

• The principal curvature directions are given by the Eigenvectors of the Hessian matrix:

• The local principal direction vectors form locally a frame. We orient the frame in such a way that the largest Eigenvalue (maximal principal curvature) is one direction, the minimal principal curvature direction is /2 rotated clockwise.

Lxx Lyy Lxx2 4 Lxy2 2 Lxx Lyy Lyy2

2 Lxy, 1,

Lxx Lyy Lxx2 4 Lxy2 2 Lxx Lyy Lyy2

2 Lxy, 1

Page 39: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

39/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Principal directions

• Frames of the normalized principal curvature directions at a scale of 1 pixel.

• Green: maximal principal curvature direction;

• Red: minimal principal curvature direction.

• The principal curvatures have been employed in studies to the 2D and 3D structure of trabecular bone & blood vessels.

Page 40: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

40/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Gaussian and mean curvature

• The Gaussian curvature K is defined as the product of the two principal curvatures.

• The Gaussian curvature is equal to the determinant of the Hessian matrix:

• Left: Gaussian curvature K for an MR image at a scale of 5 pixels. Middle: sign of K. Right: zerocrossings of K.

Lxy2 Lxx Lyy

Page 41: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

41/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Gaussian and mean curvature

• The mean curvature is defined as the arithmetic mean of the principal curvatures.

• The mean curvature is related to the trace of the Hessian matrix:

• The directional derivatives of the principal curvatures in the direction of the principal directions are called the extremalities

• The product of the two extremalities is called the Gaussian extremality, a true local invariant.

• The boundaries of the regions where the Gaussian extremality changes sign, are the extremal lines.

12Lxx Lyy

Page 42: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

42/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• A rather complicated expression

• … but useful for e.g. brain matching

Lxy2 Lxxx2 2 Lxxx Lxyy 3Lxxy2 Lxyy2 Lxxx LxyyLxx Lyy2

2 Lxxx Lxxy LxyLxx LyyLxx2 Lxxy 2 Lxy Lxyy Lyy

2 LxxLxy Lxyy Lxxy Lyy Lxxy2 Lxy2 Lyy2Lyyy

Lxy2 Lyyy

2 Lxx2 4 Lxy2 2 Lxx Lyy Lyy

2

Page 43: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

43/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Summary

• Invariant differential feature detectors are special (mostly) polynomial combinations of image derivatives, which exhibit invariance under some chosen group of transformations.

• The derivatives are easily calculated from the image through the multiscale Gaussian derivative kernels.

• The notion of invariance is crucial for geometric relevance. • Non-invariant properties have no value in general feature

detection tasks.• A convenient paradigm to calculate features invariant under

Euclidean coordinate transformations is the notion of gauge coordinates (v,w).

• Any combination of derivatives with respect to v and w is invariant under Euclidean tranformations.

• The second order derivatives yield isophote and flowline curvature, cornerness; the third order derivatives gives T-junction detection in this framework, etc.

Page 44: Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 09.11.2006

44/54Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Next week

• Remainder of differential invariants– Third order image structure: T-junction detection– Fourth order image structure: junction detection– Scale invariance and natural coordinates– Irreducible invariants

• Non-linear diffusion– Geometry driven– Denoising – enhancing

• Perona & Malik approach– Idea– Stability– Examples