Ridge detection
In image processing, ridge detection is the attempt, via software, to locate ridges in an image, defined as curves whose points are local maxima of the function, akin to geographical ridges. For a function of N variables, its ridges are a set of curves whose points are local maxima in N − 1 dimensions. In this respect, the notion of ridge points extends the concept of a local maximum. Correspondingly, the notion of valleys for a function can be defined by replacing the condition of a local maximum with the condition of a local minimum. The union of ridge sets and valley sets, together with a related set of points called the connector set, form a connected set of curves that partition... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In image processing, ridge detection is the attempt, via software, to locate ridges in an image, defined as curves whose points are local maxima of the function, akin to geographical ridges. For a function of N variables, its ridges are a set of curves whose points are local maxima in N − 1 dimensions. In this respect, the notion of ridge points extends the concept of a local maximum. Correspondingly, the notion of valleys for a function can be defined by replacing the condition of a local maximum with the condition of a local minimum. The union of ridge sets and valley sets, together with a related set of points called the connector set, form a connected set of curves that partition, intersect, or meet at the critical points of the function. This union of sets together is called the function's relative critical set. Ridge sets, valley sets, and relative critical sets represent important geometric information intrinsic to a function. In a way, they provide a compact representation of important features of the function, but the extent to which they can be used to determine global features of the function is an open question. The primary motivation for the creation of ridge detection and valley detection procedures has come from image analysis and computer vision and is to capture the interior of elongated objects in the image domain. Ridge-related representations in terms of watersheds have been used for image segmentation. There have also been attempts to capture the shapes of objects by graph-based representations that reflect ridges, valleys and critical points in the image domain. Such representations may, however, be highly noise sensitive if computed at a single scale only. Because scale-space theoretic computations involve convolution with the Gaussian (smoothing) kernel, it has been hoped that use of multi-scale ridges, valleys and critical points in the context of scale space theory should allow for more a robust representation of objects (or shapes) in the image. In this respect, ridges and valleys can be seen as a complement to natural interest points or local extremal points. With appropriately defined concepts, ridges and valleys in the intensity landscape (or in some other representation derived from the intensity landscape) may form a scale invariant skeleton for organizing spatial constraints on local appearance, with a number of qualitative similarities to the way the Blum's medial axis transform provides a shape skeleton for binary images. In typical applications, ridge and valley descriptors are often used for detecting roads in aerial images and for detecting blood vessels in retinal images or three-dimensional magnetic resonance images. g(x, y, t) = \frac{1}{2 \pi t} e^{-(x^2+y^2)/2t} . Furthermore, let L_{pp} and L_{qq} denote the eigenvalues of the Hessian matrix H = \begin{bmatrix} L_{xx} & L_{xy} \\ L_{xy} & L_{yy} \end{bmatrix} of the scale-space representation L with a coordinate transformation (a rotation) applied to local directional derivative operators, \partial_p = \sin \beta \partial_x - \cos \beta \partial_y, \partial_q = \cos \beta \partial_x + \sin \beta \partial_y where p and q are coordinates of the rotated coordinate system. It can be shown that the mixed derivative L_{pq} in the transformed coordinate system is zero if we choose \cos \beta = \sqrt{\frac{1}{2} \left( 1 + \frac{L_{xx}-L_{yy}}{\sqrt{(L_{xx}-L_{yy})^2 + 4 L_{xy}^2}} \right)} , \sin \beta = \sgn(L_{xy}) \sqrt{\frac{1}{2} \left( 1 - \frac{L_{xx}-L_{yy}}{\sqrt{(L_{xx}-L_{yy})^2 + 4 L_{xy}^2}} \right)} . Then, a formal differential geometric definition of the ridges of f(x, y) at a fixed scale t can be expressed as the set of points that satisfy L_{p} = 0, L_{pp} \leq 0, |L_{pp}| \geq |L_{qq}|. Correspondingly, the valleys of f(x, y) at scale t are the set of points L_{q} = 0, L_{qq} \geq 0, |L_{qq}| \geq |L_{pp}|. In terms of a (u, v) coordinate system with the v direction parallel to the image gradient \partial_u = \sin \alpha \partial_x - \cos \alpha \partial_y, \partial_v = \cos \alpha \partial_x + \sin \alpha \partial_y where \cos \alpha = \frac{L_x}{\sqrt{L_x^2 + L_y^2}}, \sin \alpha = \frac{L_y}{\sqrt{L_x^2 + L_y^2}} it can be shown that this ridge and valley definition can instead be equivalently written as L_{uv} = 0, L_{uu}^2 - L_{vv}^2 \geq 0 where L_v^2 L_{uu} = L_x^2 L_{yy} - 2 L_x L_y L_{xy} + L_y^2 L_{xx}, L_v^2 L_{uv} = L_x L_y (L_{xx} - L_{yy}) - (L_x^2 - L_y^2) L_{xy}, L_v^2 L_{vv} = L_x^2 L_{xx} + 2 L_x L_y L_{xy} + L_y^2 L_{yy} and the sign of L_{uu} determines the polarity; L_{uu} for ridges and L_{uu}>0 for valleys. L_{p} = 0, L_{pp} \leq 0, \partial_t(R) = 0, \partial_{tt}(R) \leq 0, where t is the scale parameter in the scale-space representation. Similarly, a scale-space valley is the set of points that satisfy L_{q} = 0, L_{qq} \geq 0, \partial_t(R) = 0, \partial_{tt}(R) \leq 0. An immediate consequence of this definition is that for a two-dimensional image the concept of scale-space ridges sweeps out a set of one-dimensional curves in the three-dimensional scale-space, where the scale parameter is allowed to vary along the scale-space ridge (or the scale-space valley). The ridge descriptor in the image domain will then be a projection of this three-dimensional curve into the two-dimensional image plane, where the attribute scale information at every ridge point can be used as a natural estimate of the width of the ridge structure in the image domain in a neighbourhood of that point. In the literature, various measures of ridge strength have been proposed. When Lindeberg (1996, 1998) coined the term scale-space ridge, he considered three measures of ridge strength: The main principal curvature L_{pp, \gamma-norm} = \frac{t^{\gamma}}{2} \left( L_{xx}+L_{yy} - \sqrt{(L_{xx}-L_{yy})^2 + 4 L_{xy}^2} \right) expressed in terms of \gamma -normalized derivatives with \partial_{\xi} = t^{\gamma/2} \partial_x, \partial_{\eta} = t^{\gamma/2} \partial_y . The square of the \gamma -normalized square eigenvalue difference N_{\gamma-norm} = \left( L_{pp, \gamma-norm}^2 - L_{qq, \gamma-norm}^2 \right)^2 = t^{4 \gamma} (L_{xx}+L_{yy})^2 \left( (L_{xx}-L_{yy})^2 + 4 L_{xy}^2 \right). The square of the \gamma -normalized eigenvalue difference A_{\gamma-norm} = \left( L_{pp, \gamma-norm} - L_{qq, \gamma-norm} \right)^2 = t^{2 \gamma} \left( (L_{xx}-L_{yy})^2 + 4 L_{xy}^2 \right). The notion of \gamma -normalized derivatives is essential here, since it allows the ridge and valley detector algorithms to be calibrated properly. By requiring that for a one-dimensional Gaussian ridge embedded in two (or three dimensions) the detection scale should be equal to the width of the ridge structure when measured in units of length (a requirement of a match between the size of the detection filter and the image structure it responds to), it follows that one should choose \gamma = 3/4 . Out of these three measures of ridge strength, the first entity L_{pp, \gamma-norm} is a general purpose ridge strength measure with many applications such as blood vessel detection and road extraction. Nevertheless, the entity A_{\gamma-norm} has been used in applications such as fingerprint enhancement, real-time hand tracking and gesture recognition as well as for modelling local image statistics for detecting and tracking humans in images and video. There are also other closely related ridge definitions that make use of normalized derivatives with the implicit assumption of \gamma = 1 . Develop these approaches in further detail. When detecting ridges with \gamma = 1 , however, the detection scale will be twice as large as for \gamma = 3/4 , resulting in more shape distortions and a lower ability to capture ridges and valleys with nearby interfering image structures in the image domain. ==Definition of ridges and valleys in N dimensions== In its broadest sense, the notion of ridge generalizes the idea of a local maximum of a real-valued function. A point \mathbf{x}_0 in the domain of a function f:\mathbb{R}^n \rightarrow \mathbb{R} is a local maximum of the function if there is a distance \delta>0 with the property that if \mathbf{x} is within \delta units of \mathbf{x}_0 , then f(\mathbf{x}) . It is well known that critical points, of which local maxima are just one type, are isolated points in a function's domain in all but the most unusual situations (i.e., the nongeneric cases). Consider relaxing the condition that f(\mathbf{x}) for \mathbf{x} in an entire neighborhood of \mathbf{x}_0 slightly to require only that this hold on an n-1 dimensional subset. Presumably this relaxation allows the set of points which satisfy the criteria, which we will call the ridge, to have a single degree of freedom, at least in the generic case. This means that the set of ridge points will form a 1-dimensional locus, or a ridge curve. Notice that the above can be modified to generalize the idea to local minima and result in what might call 1-dimensional valley curves. This following ridge definition follows the book by Eberly and can be seen as a generalization of some of the abovementioned ridge definitions. Let U \subset \mathbb{R}^n be an open set, and f:U \rightarrow \mathbb{R} be smooth. Let \mathbf{x}_0 \in U . Let \nabla_{\mathbf{x}_0}f be the gradient of f at \mathbf{x}_0 , and let H_{\mathbf{x}_0}(f) be the n \times n Hessian matrix of f at \mathbf{x}_0 . Let \lambda_1 \leq \lambda_2 \leq \cdots \leq \lambda_n be the n ordered eigenvalues of H_{\mathbf{x}_0}(f) and let \mathbf{e}_i be a unit eigenvector in the eigenspace for \lambda_i . (For this, one should assume that all the eigenvalues are distinct.) The point \mathbf{x}_0 is a point on the 1-dimensional ridge of f if the following conditions hold: \lambda_{n-1} , and \nabla_{\mathbf{x}_0} f \cdot \mathbf{e}_i=0 for i=1, 2, \ldots, n-1 . This makes precise the concept that f restricted to this particular n-1 -dimensional subspace has a local maximum at \mathbf{x}_0 . This definition naturally generalizes to the k-dimensional ridge as follows: the point \mathbf{x}_0 is a point on the k-dimensional ridge of f if the following conditions hold: \lambda_{n-k} , and \nabla_{\mathbf{x}_0} f \cdot \mathbf{e}_i=0 for i=1, 2, \ldots, n-k . In many ways, these definitions naturally generalize that of a local maximum of a function. Properties of maximal convexity ridges are put on a solid mathematical footing by Damon and Miller. Their properties in one-parameter families was established by Keller. \frac{\partial f}{\partial \sigma}=0 and \frac{\partial^2 f}{\partial \sigma^2} , and \nabla f \cdot \mathbf{e}_1=0 and \mathbf{e}_1^t H(f) \mathbf{e}_1 . \partial_v(L_v) = 0 while the second-order directional derivative in the v -direction of L_v should be negative, i.e., \partial_{vv}(L_v) \leq 0 . Written out as an explicit expression in terms of local partial derivatives L_x , L_y ... L_{yyy} , this edge definition can be expressed as the zero-crossing curves of the differential invariant L_v^2 L_{vv} = L_x^2 \, L_{xx} + 2 \, L_x \, L_y \, L_{xy} + L_y^2 \, L_{yy} = 0, that satisfy a sign-condition on the following differential invariant L_v^3 L_{vvv} = L_x^3 \, L_{xxx} + 3 \, L_x^2 \, L_y \, L_{xxy} + 3 \, L_x \, L_y^2 \, L_{xyy} + L_y^3 \, L_{yyy} \leq 0 (see the article on edge detection for more information). Notably, the edges obtained in this way are the ridges of the gradient magnitude. ==References==
Cite this
"Ridge detection". 1788864708. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373872779 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy