From Active Contours to Minimal Geodesic Paths: New Solutions to Active Contours Problems by Eikonal Equations
Da Chen, Laurent D. Cohen

TL;DR
This paper reviews a minimal path framework based on Eikonal PDEs that unifies active contours and elastica models for image analysis tasks like segmentation and boundary detection, offering efficient numerical solutions.
Contribution
It introduces new minimal path models using Riemannian and Randers metrics that solve a wide range of active contour problems and elastica curves within a unified framework.
Findings
Effective boundary detection and segmentation results.
Broad applicability to various image analysis tasks.
Efficient computation using Eikonal solvers like fast marching.
Abstract
In this chapter, we give an overview of part of our previous work based on the minimal path framework and the Eikonal partial differential equation (PDE). We show that by designing adequate Riemannian and Randers geodesic metrics the minimal paths can be utilized to search for solutions to almost all of the active contour problems and to the Euler-Mumford elastica problem, which allows to blend the advantages from minimal geodesic paths and those original approaches, i.e. the active contours and elastica curves. The proposed minimal path-based models can be applied to deal with a broad variety of image analysis tasks such as boundary detection, image segmentation and tubular structure extraction. The numerical implementations for the computation of minimal paths are known to be quite efficient thanks to the Eikonal solvers such as the Finsler variant of the fast marching method.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
From Active Contours to Minimal Geodesic Paths: New Solutions to Active Contours Problems by Eikonal Equations
Da Chen1,2 and Laurent D. Cohen1
1University Paris Dauphine
PSL Research University
CEREMADE
CNRS
UMR 7534
75016 PARIS
France
2Centre Hospitalier National d’Ophtalmologie
des Quinze-Vingts
Paris
France
Abstract
In this chapter, we give an overview of part of our previous work based on the minimal geodesic path framework and the Eikonal partial differential equation (PDE). We show that by designing adequate Riemannian and Randers geodesic metrics the minimal paths can be utilized to search for solutions to almost all of the active contour problems and to the Euler-Mumford elastica problem, which allows to blend the advantages from minimal geodesic paths and those original approaches, i.e. the active contours and elastica curves. The proposed minimal path-based models can be applied to deal with a broad variety of image analysis tasks such as boundary detection, image segmentation and tubular structure extraction. The numerical implementations for the computation of minimal paths are known to be quite efficient thanks to the Eikonal solvers such as the Finsler variant of the fast marching method introduced in (Mirebeau, 2014b, ).
keywords:
Minimal path, Eikonal partial differential equation, geodesic distance, Finsler metric, Riemannian metric, Randers metric, Euler-Mumford elastica curve, region-based active contour model.
1 Introduction
The original active contour model proposed by Kass et al., (1988) is a variational approach for the applications of boundary detection, image segmentation and object tracking. It is capable of locally minimizing an energy functional for the purpose of detecting an optimal and continuous curve, either open or closed, to depict the image features of interest such as image edges. The energy functional of this model can be established using the image gray levels or gradients. A broad variety of region-based active contour approaches have been intensively studied in order to develop the original active contour model (Kass et al.,, 1988). They take into account a type of more robust regional homogeneity penalization way for image segmentation. As a consequence, these region-based variant approaches are able to search for suitable solutions in more complicated situations. In the other hand, the minimal geodesic path model was first introduced by Cohen and Kimmel, (1997) in order to search for the global minimum of a simplified version of the functional used in the original active contour model (Kass et al.,, 1988). In essence, this simplified active contour energy functional can be regarded as a weighted curve length and it can be solved through the Eikonal partial differential equation (PDE). The objective of this chapter is to show how the terms that are commonly used in the active contour models can be handled using different kinds of metrics for geodesic paths, in particular Randers metrics.
In its basic formulation, the minimal geodesic path model extracts image features by a globally optimal curve between two prescribed points, usually provided by the user. A minimal path can be tracked through the solution to the Eikonal PDE. A large number of well-established Eikonal solvers have been exploited such as the fast marching methods (Sethian,, 1999; Mirebeau, 2014a, ; Mirebeau, 2014b, ; Mirebeau,, 2018). The global optimality and the efficient solutions lead to a series of successful minimal path-based applications as reviewed in (Peyré et al.,, 2010). However, the original minimal geodesic path model (Cohen and Kimmel,, 1997) depends only on the first-order derivative term of a curve. Thus this model cannot impose curvature to define the regularization term which corresponds to the curve rigidity property. Finally, in the minimal path-based image segmentation scenario, almost all of the existing geodesic metrics (Mille et al.,, 2015; Benmansour and Cohen,, 2009; Appia and Yezzi,, 2011) are derived from the image boundary features, which may limit their performance on complicated image segmentation tasks. In the remaining of this chapter, we proposed different geodesic metrics to overcome the aforementioned drawbacks suffered by the existing minimal path models.
In (Kimmel,, 2003; Kimmel and Bruckstein,, 2003), the authors proposed a listing of the active contour energy terms for image segmentation. In our chapter, we propose to revisit Kimmel’s chapter (Kimmel,, 2003), named fast edge integration, with minimal path methods to address the active contour problems.
1.1 Outline
In this chapter, we illustrate different types of geodesic metrics and their respective applications in image analysis based on the minimal path framework and the Eikonal PDE. The structure of this chapter is organized as follows:
- •
In Section 2, we present the preliminary background on the active contour models involving the approaches respectively driven by edge- and region-based terms.
- •
In Section 3, we review the existing minimal path models associated with both of the Riemannian and Randers metrics, the corresponding Eikonal PDEs for the computation of the geodesic distance as well as the gradient descent ordinary differential equations (ODEs) for tracking geodesic curves.
- •
In Section 4, we present two minimal path models for the minimization of the geometric active contour models with alignment terms (Kimmel,, 2003; Kimmel and Bruckstein,, 2003). We respectively induce a Randers metric and an anisotropic Riemannian metric from the variants of the asymmetric and symmetric alignment terms. In this case, the active contour problems with different alignment terms are transferred to the corresponding minimal path problems.
- •
In Section 5, we present a Finsler elastica minimal path model (Chen et al.,, 2017) to solve the Mumford-Euler elastica curve problem (Mumford,, 1994). This is done by using a strongly anisotropic and asymmetric Randers geodesic metric that is established over an orientation-lifted space. The orientation dimension is used to represent the curve directions. The introduced Finsler elastica minimal paths can be naturally applied for the applications of retinal imaging and boundary detection.
- •
In Section 6, we present a new method that applies the Randers minimal path model to address the region-based active contour problems (Chen et al.,, 2016, 2019). The used Randers metric is derived from the region-based homogeneity term as well as the curve length-based regularization term, relying on the solution to divergence equation-constrained minimization problem. In this case, we can make use of the Randers Eikonal PDE to solve a broad variety of region-based active contour problems.
2 Active Contour Models
The active contour models originated from the work proposed in (Kass et al.,, 1988) have obtained successful applications in the fields of boundary detection, image segmentation, object tracking and shape modelling. Basically, the goal of an active contour model can be summarized as seeking a regular parametric curve for the delineation of the image feature of interest, such as the object boundaries, by minimizing an energy functional. In general, the minimization of an active contour energy functional can be carried out by the curve evolution scheme. The crucial point for this scheme is the estimation of the gradient descent flow with adequate boundary conditions. Basically, this scheme amounts to searching for a parametric curve , where is the curve parameter and represents the (artificial) time and denotes the image domain. The curve is supposed to converge to the target boundary when .
2.1 Edge-based Active Contour Model
2.1.1 The Computation of the Image Gradient Features
Let be a gray level image. The standard Euclidean gradient of a (smoothed) image can be defined in conjunction with a Gaussian kernel with variance :
[TABLE]
where denotes the convolution operator, and , are the first-order partially differentials of the Gaussian kernel respectively along the axes and . The magnitude of the image gradient is a scalar-valued function that can be formulated by
[TABLE]
In the context of boundary detection and image segmentation, the magnitude often serves as the edge appearance feature map.
For a vector-valued image in a RGB color space, we first consider a Jacobi matrix of size to construct the associated image boundary features for a (smoothed) color image , i.e.
[TABLE]
The edge appearance feature map for a color image can be estimated using the Frobenius norm of the matrix . In other words, one can build the magnitude as follows:
[TABLE]
2.1.2 The original active contour model
The original edge-based active contour model or the snakes model (Kass et al.,, 1988) aims to minimize the following energy functional
[TABLE]
where is a regular curve with non-vanishing velocity and the parameters and are real positive constants controlling the importance for each component. The functions and of the forms
[TABLE]
are respectively the first- and second-order derivatives of the curve . Note that the squared norm is relevant to the squared curvature of . The function , which is referred to as potential, is an image data-driven function. It is defined to have low values around the image structures of interest and high values otherwise. For instances, the potential can be set as the decreasing function of the image appearance feature map or can be derived from the image gray levels (Kass et al.,, 1988).
The curve evolution equation can be derived from the Euler-Lagrange equation of the energy functional , which reads
[TABLE]
where is the fourth-order derivative of the curve with respect to . The first two terms in the evolution equation (7) obtained from the curve itself is referred to as the internal forces which impose the regularity of the curve, while the last term is the external force used to attract the curve to the features (e.g. object edges) of the target.
2.1.3 Balloon Force
Cohen, (1991) introduced an external force, named the balloon force, to relax the demanding initialization requirement of the original active contours model (Kass et al.,, 1988). According to (Cohen,, 1991), the balloon force can be expressed by
[TABLE]
where is the outward unit normal to the curve . The balloon force is able to drive the curve expanding from the interior region of to the desired features such as the object boundaries. Thus the initial guess should be located inside the target and allowed to be far from the boundaries.
In conjunction with the balloon force , the corresponding curve evolution equation eventually turns out to be
[TABLE]
where is a weighting parameter that controls the importance of the balloon force during the curve evolution.
2.1.4 Geodesic active contour model
Let be the set of all the Lipschitz continuous curves . The geodesic active contour model proposed in (Caselles et al.,, 1997; Yezzi et al.,, 1997) takes into account a potential function to build a weighted curve length
[TABLE]
The weighted curve length is intrinsic since it is independent of the parameterization of the curve . Comparing to the energy functional (5) considered in the original snakes model (Kass et al.,, 1988), the term which relies on the second-order derivative of the curve has been removed.
An extremum curve that minimizes the weighted curve length is a geodesic path. In (Caselles et al.,, 1997; Yezzi et al.,, 1997), a locally minimizing curve can be generated by the curve evolution scheme. Denoting by the curvature of , the curve evolution equation obtained through the Euler-Lagrange equation of the weighted curve length reads
[TABLE]
where the operator stands for the Euclidean scalar product, is the inward unit normal to the curve , and is the Euclidean gradient of the function with respect to positions. In the homogeneous regions of an image, the gradients of the potential tend to vanish, leading to the following Euclidean curve shortening flow
[TABLE]
where is the positively proportional operator. When the curve is near an edge at some time , the values of are low and the curve evolution will be dominated by the second term of equation (11). Therefore, it is a good choice to initialize the curve surrounding the target. The drawback of the solution to the original active contour energy (5) is the high possibility of being stuck in a local minimum. The level set method introduced by Osher and Sethian, (1988) is a very popular way for solving the curve evolution problem (Malladi et al.,, 1995; Caselles et al.,, 1997; Yezzi et al.,, 1997), but it still can be stopped by unexpected local minima. This is why the authors in (Cohen and Kimmel,, 1997) introduced the use of the minimal geodesic path to find the global minimum of a simplified active contour energy functional, i.e. the weighted curve length (10). The global minimum is attained by solving a nonlinear partial differential equation, called the Eikonal PDE, which will be briefly introduced in Section 3.1.
2.1.5 Geometric active contour models with alignment terms
The aforementioned geodesic active contour model (Caselles et al.,, 1997; Yezzi et al.,, 1997) as well as the fast implementation approach (Goldenberg et al.,, 2001) utilize a direction-independent potential function to measure the length of a curve. Kimmel and Bruckstein, (2003) introduced an anisotropic variant of the geodesic active contour model based on an image data-driven vector field , leading to a new weighted curve length formula
[TABLE]
where is a scalar-value function and is an alignment measure term. For the applications of boundary detection and image segmentation, the vector field can be naturally built by the image gradient vector field .
Kimmel and Bruckstein, (2003) suggested two effective types of for the alignment measure term. The first one is to choose which yields an asymmetric functional
[TABLE]
The curve evolution equation for the evolving curve with respect to the functional (13) can be expressed by
[TABLE]
where is the Laplacian operator such that . The extremum curves as corresponds to a maximizer of the functional .
The second choice introduced by Kimmel and Bruckstein, (2003) for the function is to set
[TABLE]
which yields a robust and symmetric variant of the asymmetric case (13) as follows:
[TABLE]
The curve evolution equation in this case has a form
[TABLE]
The maximization of the alignment-based functionals and can be respectively solved through the curve evolution equations (14) and (16) in conjunction with the level set framework (Osher and Sethian,, 1988). An optimal curve generated by means of the evolution equation (14) (resp. the evolution equation (16)) corresponds to the local maximum of the alignment-based functional (resp. the functional ). In Sections. 4.1 and 4.2, we will introduce a Randers metric and an anisotropic Riemannian metric respectively for the global minimization of the slight variants of the alignment-based functionals and .
2.2 The Piecewise Smooth Mumford-Shah Model and the Piecewise Constant Reduction Model
The edge-based active contour approaches mentioned above, which take the image gradients as the edge appearance features for image boundary extraction, are quite efficient and effective models. However, the image gradients are very sensitive to the image noise and spurious edges, which also likely yield strong edge appearance features. In order to address this issue, the region-based active contour approaches exploit more complicated homogeneity criteria to establish the energy functionals. Significant examples of these region-based approaches involve the piecewise smooth Mumford-Shah model (Mumford and Shah,, 1989) as well as the associated variant approaches such as (Zhu and Yuille,, 1996; Cohen,, 1997; Chan and Vese, 2001a, ; Brox and Cremers,, 2009).
2.2.1 The Piecewise Smooth Mumford-Shah Model
Let be a closed subset of the image domain , which is made up of a finite set of smooth curves. The goal for the original piecewise smooth Mumford-Shah model is to seek the set and a piecewise smooth function by minimizing the energy functional
[TABLE]
where and are two positive constants which control the relative importance between different terms, is the perimeter of the set , and is referred to as an image data fitting function. The first integration term defines a similarity measure by estimating the approximation errors between the image gray levels and the data fitting function . The second integration is a smoothness penalty term that imposes a prior to the function .
Since the original work in (Mumford and Shah,, 1989), many efforts have been devoted to seeking practical solutions to the minimization of the piecewise smooth Mumford-Shah problem (17). Among them, the explicit curve evolution scheme is a widely considered tool for minimizing the energy functional (17), which can be implemented either by the level set method (Osher and Sethian,, 1988; Chan and Vese, 2001b, ; Vese and Chan,, 2002; Tsai et al.,, 2001) or by the convex relaxation framework (Chan et al.,, 2006; Bresson et al.,, 2007; Pock et al.,, 2009).
2.2.2 Piecewise Constant Reduction of the Full Mumford-Shah Model
The piecewise constant active contour model (Chan and Vese, 2001a, ; Chan et al.,, 2000; Cohen,, 1997) is a practical variant of the full Mumford-Shah model. Instead of using a piecewise smooth function to approximate the image data, the piecewise constant model or the active contours without edges model (ACWE) assumes that the image gray levels within each region can be approximated by the mean intensity value estimated in the corresponding region.
Let be a simple and closed curve. We denote by the open and bounded subset enclosed by the curve . In the case of binary-valued image segmentation scenario, the piecewise constant active contour model (Chan and Vese, 2001a, ; Cohen,, 1997) considers an energy functional
[TABLE]
where and are respectively the mean gray levels inside and outside the closed curve and the term stands for the Euclidean curve length of which serves as a regularization term for the active contour model. Note that in the original Chan-Vese piecewise constant model (Chan and Vese, 2001a, ), there is a term related to the area of the region , which has been ignored here.
2.2.3 Minimization of the Piecewise Constant Active Contour Model
Chan and Vese, 2001a proposed a solution for the minimization of the active contour energy functional based on the level set method (Osher and Sethian,, 1988; Zhao et al.,, 1996). Basically, the level set formulation relies on a Lipschitz function such that the open and bounded subset can be represented by and its boundary can be identified from the zero level set of , i.e. . In numerical implementation, the level set function is often set to be a signed Euclidean distance function.
Let be the Heaviside function which can be formulated by
[TABLE]
The characteristic function of the subset can be defined by the Heaviside function of the corresponding level set function. Nevertheless, one can reformulate the functional (18) using the Heaviside function and the level set function as follows:
[TABLE]
where is the one-dimensional Dirac measure (Chan and Vese, 2001a, ).
As introduced in (Chan and Vese, 2001a, ), the minimization of the functional formulated in Eq. (2.2.3) can be addressed by iteratively evaluating the following two steps:
(1). Keeping the level set function fixed and minimizing the functional with respect to the scalar values and will yield
[TABLE]
(2). Based on the scalar values derived from Eq. (20), one solves
[TABLE]
with respect to the level set function .
According to (Chan and Vese, 2001a, ), finding the numerical solution to the minimization problem (21) requires a regularized function which approximates the Heaviside function as . By computing the Euler-Lagrange equation for the level set function , one can obtain the following level set evolution equation
[TABLE]
where is the regularized version of .
3 Minimal Paths for Edge-based Active Contours Problems
3.1 Cohen-Kimmel Minimal Path Model
The minimal path model introduced by Cohen and Kimmel, (1997) is a powerful tool in the fields of image analysis and medical imaging (Cohen,, 2006; Peyré et al.,, 2010). It is designed to search for the global minimum of the weighted curve length energy (Caselles et al.,, 1997; Yezzi et al.,, 1997), measured along a curve as follows:
[TABLE]
where is a positive constant used for regularization and the function is a scalar-valued potential. In the context of boundary detection, the potential is usually set as a decreasing function of the image gradient magnitude (Cohen and Kimmel,, 1997).
Given a source point and a target point in the domain , a geodesic path or a minimal path with and , is a curve that globally minimizes the length among all the paths in the set . In other words, a geodesic path can be determined by
[TABLE]
Tracking such a geodesic path from the source point to a target point relies on a geodesic distance map . At each point , the value of the geodesic distance map is equal to the minimal curve length from to
[TABLE]
It is known that the geodesic distance map is the unique viscosity solution to the Hamiltonian-Jacobi-Bellman equation or the Eikonal equation
[TABLE]
where is the standard Euclidean gradient of the geodesic distance map .
Solving a gradient descent ODE on the distance map can generate a geodesic path, or a minimal path , which connects from to . It corresponds to a back-propagation processing from the target point to the source point . The gradient descent ODE can be expressed by
[TABLE]
with boundary condition . Note that the geodesic curve is parameterized by its arc-length. The gradient descent ODE (27) can be numerically solved by Heun’s or Runge-Kutta’s methods.
In Fig. 1, we show an example for the computation of a geodesic path between a given pair of prescribed points on an image from the BSDS500 dataset (Arbelaez et al.,, 2011). In Fig. 1a, the red and yellow dots indicate the source point and the end point, respectively. The corresponding geodesic distance map and the target geodesic path are shown in Figs. 1b and 1c, respectively. The potential is computed by in terms of image gradient features
[TABLE]
where is a positive constant and is the magnitude of the color image gradients, see Eq. (4). We apply the isotropic fast marching method (Sethian,, 1999) for the estimation of the geodesic distance map.
In Fig. 2 we show an example of applying a set of minimal geodesic paths to extract a curvilinear tree structure. In this example, in order to find the whole tree structure, we give three end points which are located at the end of each bifurcation. These end points are indicated by yellow dots as illustrated in Fig. 2a. The geodesic distance map and the associated minimal geodesic paths (represented by blue lines) are shown in Figs. 2b and 2c, repsectively. In this experiment, we build the potential using the image gray levels as follows:
[TABLE]
where the scalar value is a regularization factor.
3.2 Finsler and Randers Minimal Paths
A Finsler metric is a continuous map over the space . For each point , the Finsler metric can be defined through an asymmetric norm, which is a convex and 1-homogeneous function on its second argument. Basically, the asymmetry property of a Finsler metric allows to take advantages of path directions during the computation of the geodesic distance and of the geodesic paths, as explored in (Melonakos et al.,, 2008; Chen and Cohen,, 2018).
The weighted length of a curve can be measured with respect to a Finsler metric (see Eq. (32)) by
[TABLE]
Similar to the isotropic case defined in Eq. (29), the geodesic distance map associated to the weighted curve length can be formulated by
[TABLE]
In order to estimate the geodesic distance map , one can solve the following Finsler Eikonal equation:
[TABLE]
The corresponding gradient descent ODE on the geodesic distance map with respect to the Finsler metric can be written as
[TABLE]
The target geodesic path can be computed by re-parameterizing the geodesic path .
In the following, we focus on the Randers metric (denoted by ) and the Riemannian metric (denoted by ), which are two particular cases of Finsler metric. The Eikonal PDEs with respect to these two types of geodesic metrics and are presented in Sections 3.2.1 and 3.2.2, respectively.
3.2.1 Randers Minimal Paths
Let be the set of all the positive definite symmetric matrices of size . A Randers metric (Randers,, 1941) is comprised of a positive definite symmetric tensor field and a vector field
[TABLE]
where stands for the standard Euclidean scalar product on . A Randers metric of the form (32) should obey the positive definiteness condition over the domain . In other words, one has for any point and any vector , if and only if
[TABLE]
For the applications of image analysis, the tensor field and the vector field can be constructed dependently on the tasks, as formulated in Sections. 5 and 6.
The Eikonal equation (30) with respect to a Randers metric is equivalent to the following nonlinear PDE (Mirebeau,, 2017; Chen and Cohen,, 2018)
[TABLE]
with boundary condition .
3.2.2 Riemannian Minimal Paths
The Randers metric of the form (32) gets to be a Riemannian metric of a general form, if the vector field obeys that , i.e.,
[TABLE]
Then the Eikonal equation associated to the Riemannian metric defined in Eq. (35) can be formulated by
[TABLE]
In this case, the gradient descent ODE defined in (31) gets to
[TABLE]
This ODE can be solved by Mirebeau’s ODE solver (Mirebeau, 2014a, ).
4 Minimal Paths for Alignment Active Contours
Inspired by the geometric active contour models with edge-based alignment terms (Kimmel and Bruckstein,, 2003; Kimmel,, 2003), we introduce a Randers metric and an anisotropic Riemannian metric based on the image gradients for the application of boundary detection. These metrics are induced using the variant forms of the asymmetric and symmetric edge-based alignment terms.
4.1 Randers Alignment Minimal Paths
We introduce a method, named the Randers alignment minimal path model, for boundary detection. The basic idea is to integrate the asymmetric alignment term formulated in Eq. (13), and a Euclidean curve length-based regularization term to establish a new edge-based energy functional
[TABLE]
where is a parameter that controls the relative importance between the regularization term and the edge-based asymmetric align term . Note that represents the gradient vector field of the smoothed image , see Eq. (1).
The objective in this section is to globally minimize by searching for a geodesic path between two given points. Let be a rotation matrix with angle and let be the rotated image gradient vector field
[TABLE]
In this case, a vector indicates the direction of a boundary should have at an edge point .
We reformulate the energy functional by
[TABLE]
where can be expressed by
[TABLE]
Now we can see that has been formulated as a weighted curve length associated to a Randers metric. The function is required to obey the positive definiteness condition (33) in order to globally minimize through the Eikonal PDE framework. One simple solution is to limit the range of the parameter as follows
[TABLE]
However, a small value of may reduce the importance of the image data, thus increasing the risk of shortcuts.
As a second choice, we make use of a new vector field to replace the term used in the Randers metric . The considered vector field can be expressed by
[TABLE]
where is a scalar function
[TABLE]
By the vector field , we obtain a new Randers metric
[TABLE]
One can see that the positive definiteness condition characterized by (33) will always hold for the Randers metric .
Notice that through the vector field , we actually minimize a new weighted curve length
[TABLE]
where the second term in the second line of Eq. (44) can be treated as a variant of the asymmetric alignment term .
The asymmetric edge feature at each point still can be characterized by the vector . Specifically, a large value of indicates a high possibility that the point belongs to an image edge. Moreover, when is located at an edge, the direction is proportional to the tangent of the image edge at point .
In Fig. 3b, we visualize the vector field through the color coding scheme (Baker et al.,, 2011). In this figure, we only illustrate the vectors within a rectangle as shown in Fig. 3a. In Fig. 3c, we show the color coding, where the direction of a vector is coded by hue while the norm is coded by saturation (Baker et al.,, 2011). The color image used in this experiment is obtained from the BSDS500 dataset (Arbelaez et al.,, 2011).
Notice that when dealing with a vector-valued image , we build the vector field through the following equation:
[TABLE]
The asymmetry property of the Randers metrics and allows to exploit the asymmetric edge features for boundary detection and image segmentation. In Fig. 4, we show the boundary detection results using the Randers metric on a color image. In Fig. 4a, the red dot and the green dot respectively denote the given source and end points. In this experiment, the objective is to extract a geodesic path to depict the boundary of the object. The geodesic distance map superimposed in the original image is shown in Fig. 4c. Note that we adopt the Finsler variant of the fast marching method introduced by Mirebeau, 2014b as the Eikonal solver. The computation of the geodesic distance map is terminated once the end point, denoted by the yellow dot, is reached by the geodesic distance front (Deschamps and Cohen,, 2001).
In Fig. 5, we illustrate the asymmetry property of the Randers alignment minimal paths. In Fig. 5a, the geodesic path is obtained by taking the red dot as the source point and the blue dot as the end point. While in Fig. 5b, we exchange the source and end points used in Fig. 5a. One can obtain a different minimal path to the one shown in Fig. 5a. Then both minimal paths can be used to form a closed curve which depicts the complete object boundary, as shown in Fig. 5c.
In Fig. 6, we show the Randers alignment minimal path extraction results with respect to different values of the parameter . Specifically, we increase the values of from Figs. 6a to 6d. In particular, we use in Fig. 6a which generates a straight line segment. One can see that a small value of which yields a weakly asymmetric Randers metric may generate a geodesic path with unexpected shortcuts, as shown in Figs. 6b and 6c. For a suitable value of , the obtained minimal path can successfully depict the object boundary, as shown in Fig. 6d.
4.2 Riemannian Alignment Minimal Paths
In this section, we induce an anisotropic Riemannian metric from a variant form of the symmetric alignment term which is defined in Eq. (15). By integrating a regularization term and the symmetric alignment term, we first introduce an energy functional with a sufficiently small
[TABLE]
The tensor field can be formulated by
[TABLE]
providing that is sufficiently small, where is the rotated image gradient vector field with angle . In order to ensure the matrix to be positive symmetric definite for any point , we replace the term in Eq. (46) by defined in Eq. (41).
Hence we can obtain a new tensor field
[TABLE]
The matrix will always be positive definite symmetric for each point since the inequality always holds. Finally, we can define a new Riemannian metric
[TABLE]
Following (Sapiro,, 1997; Di Zenzo,, 1986), we take into account the matrix (defined in Eq. (3)) to estimate the vector from a color image . More precisely, we set
[TABLE]
where the vector is the eigenvector corresponding to the smaller eigenvalue of the matrix and is the Frobenius norm of , see Eq. (4).
In Fig. 7b, we show the geodesic path associated to the Riemannian metric on a color image from the Grabcut dataset (Rother et al.,, 2004). The red and yellow dots respectively denote the given source and end points. In Fig. 7c, we show the corresponding geodesic distance map superimposed on the original image.
In Fig. 8, we illustrate the Riemannian alignment minimal paths with respect to different values of the parameter . In the first row, from columns to , the minimal paths indicated by the blue lines are obtained by setting and , respectively, where is a scalar value defined by
[TABLE]
In the first row, we illustrate the respective geodesic distance maps associated to different values of . For a small value of , we find a shortcut as shown in row and column . When increasing the values of , one can obtain desired minimal paths which pass through the boundaries of the target, as illustrated in columns to of Fig. 8.
5 Orientation-lifted Randers Minimal Paths for Euler-Mumford Elastica Problem
In this section, we denote by an orientation space with periodic boundary condition, based on which we can define an orientation-lifted domain . In this case, each point is an ordered pair including a position in the domain and an orientation in the orientation space .
The original Euler-Mumford elastica bending energy functional (Mumford,, 1994; Nitzberg and Mumford,, 1990) assigns to each regular curve a curvature-dependent length which can be expressed by
[TABLE]
where is a scalar-valued parameter which controls the importance of the curvature in the functional .
In order to extract the image features such as object boundaries or tubular structure centerlines, we take into account the following data-driven elastica bending energy (Chen et al.,, 2017):
[TABLE]
The function is a data-driven function relying on both positions and directions. Around the image features of interest and along the proper directions, the orientation-dependent function is supposed to have small values, and large values, otherwise. The elastica bending energy functional is a geometric variant of the original active contour energy (5) which also takes the curvature-dependent term for regularization. The goal of both the Euler-Mumford elastica model (Mumford,, 1994) and the original active contour model (Kass et al.,, 1988) are relevant to one another, i.e. finding an optimal curve of low curvature integration value, which simultaneously tends to pass through the image features of interest.
For the sake of simplicity, we will set the data-driven function in Sections 5.1 and 5.2, and present a Randers minimal path solution to the Euler-Mumford Elastica problem (48). The minimization of the bending energy functional including the data-driven function will be introduced in Section 5.3.
5.1 Euler-Mumford Elastica Problem and its Finsler Metric Interpretation
The goal in this section is to search for an optimal curve which minimizes the elastica bending energy functional
[TABLE]
by the Eikonal equation-based minimal path framework. The basic idea is to establish a Finsler geodesic metric to interpret as a weighted curve length. Since the Eikonal equation is a first-order partial differential equation, we should transform the squared curvature term to a first-order term via an auxiliary parametric function of orientations.
We denote by a parametric function over the interval , where is defined being such that
[TABLE]
By a short computation, one can obtain the following expression
[TABLE]
where ⟂ is a perpendicular operator, i.e. is a vector perpendicular to .
On the other hand, we have the following equations
[TABLE]
In terms of Eqs. (52) and (5.1), we can express the curvature by
[TABLE]
Now we have reformulated the curvature as a ratio of two first-order terms and . By incorporating the formula in Eq. (54) to the elastica bending length , one obtains that
[TABLE]
following the constraint in Eq. (51).
Let be a canonical orientation-lifted curve and one has . Now the elastica bending energy functional of the form (55) can be rewritten by
[TABLE]
where is an orientation-lifted Finsler metric. It is defined for any orientation-lifted point and any vector by
[TABLE]
where is a unit vector associated to an orientation and where means that the vector is positively proportional to the vector , i.e., .
5.2 Finsler Elastica Geodesic Path for Approximating the Elastica Curve
The orientation-lifted Finsler metric defined in Eq. (57) involves the infinite value , which will introduce difficulties to the numerical computation of the geodesic distance maps and the associated minimal geodesic paths. In order to address this problem, here we consider a relaxed orientation-lifted Randers metric with a scalar factor , which can be expressed by
[TABLE]
where is a positive weighing parameter as used in Eq. (57). In the following, we refer to the Randers metric as the Finsler elastica metric.
The metric can also be reformulated in the form (32) through a tensor field and a vector field , which can be respectively formulated for any point as
[TABLE]
One can claim that the positive definiteness condition formulated in Eq. (33) can be satisfied:
[TABLE]
Now we give the analysis for the relation between the orientation-lifted Finsler metric and the Finsler elastica metric . As , we can express the metric as follows:
[TABLE]
The value of the term will get to [math] when the directions and are positively proportional to each other. Thus, one can see that pointwisely, as .
The control set or the unit ball is a basic tool for visualizing the geometry distortion of a metric. For the metrics and , the sets of the unit balls can be respectively defined as
[TABLE]
and
[TABLE]
In order to characterize the sets and , we first define two scalar values and as follows (Chen et al.,, 2017)
[TABLE]
Hence any vector can be characterized by the following inequalities
[TABLE]
Taking into account the Eq. (62), one obtains
[TABLE]
Thus the ball can be characterized by a flat 2D ellipse which is embedded in the 3D tangent space with the origin being on its boundary. In particular, if one sets , the unit ball gets to be a flat 2D disk of radius as shown in Fig. 9a.
When the factor , one can point out that any vector can be characterized by the following inequality
[TABLE]
where the scalar values are all . Hence the ball is an ellipsoid and is almost flat in the direction due to the large value of , as shown in Fig. 9b for which we set . One can see that the unit ball will converge to in the sense of the Haussdorf distance, as .
In Fig. 10b, we show the minimal paths derived from the metric . We denote by the red and black dots the source and end positions, respectively. In Fig. 10a, the directions at each position are indicated by arrows.
5.3 Data-driven Finsler Elastica Metric
In order to apply the Finsler elastica minimal paths for image segmentation and tubular structure centerline extraction, we should take into account the image data carried out by the orientation score which is defined over the orientation-lifted domain .
The data-driven Finsler elastica metric can be expressed by
[TABLE]
or
[TABLE]
where is a positive constant. From Eqs. (65) and (66), we can see that the data-driven function (see Eq. (49)) is replaced by the orientation score-based functions or . Note that in the experiments of this section, we make use of the metric defined in (65) for the data-driven Finsler elastica minimal path computation.
The computation of the orientation score should be task-dependent. We respectively denote by and the orientation score for image segmentation and for tubular structure centerline extraction, each of which can be estimated by steerable filters (Freeman and Adelson,, 1991).
Let be a RGB color image with three channels. For boundary detection and image segmentation applications, we use the -order canny-like steerable filter (Jacob and Unser,, 2004) with an odd integer to build the orientation score . The -order canny-like steerable kernel can be expressed by
[TABLE]
where the function is a Gaussian kernel with variance . The coefficients are independent of the positions but relying on the orientation and we refer to (Jacob and Unser,, 2004) for the computation of . Based on the kernels , the orientation score can be constructed by
[TABLE]
The orientation score can be computed through a multi-scale tubular structure enhancing filter such as the classical vesselness filter (Frangi et al.,, 1998) or the optimally oriented flux (OOF) filter (Law and Chung,, 2008). In this section, we use the OOF filter to derive the orientation score , where the kernel at a scale can be expressed as
[TABLE]
where is the indicator function of a disk structure with radius . In other words, the function can be defined as a step function relying on a radius such that
[TABLE]
Then we can define a multi-scale response function at position and scale for a given image through the kernel
[TABLE]
Note that the response is a symmetric matrix of size . Let us denote by the two eigenvalues of the matrix obeying that . We suppose that the gray levels inside the tubular structure are lower than background. In this case, for each point we can estimate an optimal scale map by
[TABLE]
Then for a point inside the vessel region, the eigenvalues of the matrix satisfy that .
The orientation score can be computed by
[TABLE]
where is a unit vector associated to an orientation .
The minimal geodesic paths derived from the data-driven Finsler elastica metric should be as smooth as possible and simultaneously follow the desired image features. In Fig. 11, we illustrate an example for boundary detection using the data-driven Finsler elastica metric. In Fig. 11a, the arrows indicate the directions at the given positions (denoted by red and yellow dots). In Fig. 11b, the obtained minimal geodesic path indicated by blue line can detect an image edge of high Euclidean length, which satisfies the properties of the Finsler elastica minimal paths as discussed above.
In Fig. 12, we show the geodesic paths derived from the data-driven Finsler elastica metric on a synthetic image. The arrows in Figs. 12a and 12c denote the corresponding directions assigned to the given positions indicated by the red and yellow dots. The geodesic paths shown in Figs. 12b and 12d are computed using the same source and end positions but opposite directions. One can see that these geodesic paths tend to pass through the centerline of the target tubular structure, and simultaneously try to avoid sharp turnings as much as possible.
In Fig. 13, we apply the Finsler elastica minimal path model for retinal vessel centerline tracking. In this experiment, only the positions are provided. Each position will be assigned two directions corresponding to the orientations maximizing the orientation score over the space . In this case, the source position (resp. end position) will generate two orientation-lifted source (resp. end) points. Hence we will obtain four pairs of orientation-lifted source and end points, which correspond to four geodesic paths. Among them, the geodesic path with the smallest geodesic distance value will be chosen as the desired path, see Fig. 13b. For the purpose of comparison, we show the minimal paths respectively derived from the isotropic Riemannian metric (Li and Yezzi,, 2007) and the anisotropic Riemannian metric (Benmansour and Cohen,, 2011), as shown in Figs. 13c and Fig. 13d. One can point out that these paths from the Riemannian metrics travel the segments belonging to different vessels, while the path from the Finsler elastica metric can track the correct vessel. Note that both of the Riemannian metrics used in this experiment are constructed by the OOF filter (Law and Chung,, 2008).
6 Randers Minimal Paths for Region-based Active Contours
In this section, we introduce a new minimal path model (Chen et al.,, 2016, 2019) for solving the active contour problem involving a region-based homogeneity penalization term, using the minimal path and Eikonal PDE framework.
6.1 Hybrid Active Contour Model
A hybrid active contour model (Cohen,, 1997; Kimmel and Bruckstein,, 2003; Paragios and Deriche,, 2002; Sagiv et al.,, 2006) invokes an energy functional that is made up of a region-based homogeneity penalization functional and an edge-based weighted curve length (see Eq. (23)), i.e.
[TABLE]
where is a parameter that controls the relative importance of the two terms and , is a simple and closed curve and represents the image domain. The function is the characteristic function of the open and bounded subset enclosed by , which can be defined by
[TABLE]
The weighted curve length plays the role for regularization, which can be measured using an edge-based potential . In this section, we make use of the following method to construct the potential
[TABLE]
where is a contrast parameter and the function represents the magnitude of the image gradient vector field, as defined in Eqs. (2) and (4). One can see that by Eq. (72) the potential obeys that and appears to have low values around the image edges.
Let be a fixed simple and closed curve that is parameterized in a clockwise order. Supposing that the region is close to and by the differentiability of the region-based functional , we can obtain the following approximation (Chen et al.,, 2019)
[TABLE]
where is the gradient of the functional at and is a scalar value that is independent to the characteristic function .
One can point out that only the second term in the right hand side of Eq. (73) relies on the characteristic function of the region . For convenience, let us denote this term by
[TABLE]
In our model, solving the hybrid active contour problem through the curve evolution scheme amounts to iteratively searching for a family of successive simple and closed curves (indexed by ) such that the final curve can be used to depict the target boundary.
In the -th iteration (), the input is a curve obtained from the last iteration and the output is a new simple and closed curve . By setting , we can obtain the gradient of the functional at . Then the curve can be generated by solving
[TABLE]
where is a set of simple and closed curves. The construction of relies on and will be introduced in the next section. In order to solve the problem (75) by the minimal path model and the Eikonal PDE, we transform the region-based functional into a weighted curve length associated to a Randers metric using the divergence theorem, providing that the curve is chosen from the set .
6.2 A Randers Metric Interpretation to the Hybrid Energy
In the -th iteration, let be a tubular neighbourhood of the simple and closed curve with radius , where denotes the Euclidean distance between and . Then the set , which is made up of simple and closed curves, can be defined by
[TABLE]
For any simple and closed curve , one has . This means that the region can be decomposed as
[TABLE]
In this case, we can reformulate the region-based functional as follows:
[TABLE]
where is defined as the characteristic function of the tubular neighbourhood , is the outward normal to the curve , and is a vector field which satisfies the following divergence equation over the domain
[TABLE]
One can always find such a vector field due to the existence of the solution to the divergence equation (77).
In Eq. (76), the second term is independent to the curve and thus we only take into account the first term in the following calculation. Let be the rotation matrix of angle . Integrating the weighted curve length and the first term in Eq. (76), we obtain that
[TABLE]
where the metric has a form of
[TABLE]
The positive definiteness condition (33) for requires that
[TABLE]
However, the requirement (80) is difficult to satisfy. Hence we consider a new inequality formulated by
[TABLE]
Now we have induced a Randers metric formulated in Eq. (79), which embeds the region-based homogeneity information as well as the image gradient features. This gives us the possibility of applying the minimal path framework to solve the region-based image segmentation problem. In next section, we will introduce a new vector field to approximate , such that the inequality (81) will always hold.
6.3 Practical Implementations
In this section, we first introduce a method for computing the vector field used in the -th iteration. In order to satisfy (81), the vector field is expected to be as small as possible. Since the next evolving curve lies within the tubular neighbourhood , we consider to find a vector field by solving the following minimization problem on the domain
[TABLE]
As discussed in (Chen et al.,, 2016, 2019), the value of is bounded by the area of the tubular neighbourhood . Since the tubular neighbourhood acts as the search space for the evolving curves, reducing the area of may lead the proposed model being stuck in unexpected local minima. In order to address this issue, we make use of a new vector field derived by the nonlinear mapping defined in Eq. (42) such that
[TABLE]
where is a constant.
Replacing the vector field (see Eq. (79)) by , one can obtain a new Randers metric:
[TABLE]
In each iteration , the weighted curve length measured along a curve can be formulated by
[TABLE]
For any point the vector is positively proportional to in the sense of the magnitude and of the direction. This gives the relevance between the original region-based active contour problem and the minimal path computation associated to the geodesic metric . More analysis for the reasonability of the use of the Randers metric can be found in (Chen et al.,, 2019).
6.4 Application to Image Segmentation
We make use of the piecewise constant homogeneity term (Chan and Vese, 2001a, ) to build the Randers metric in Eq. (84) and illustrate how to apply for image segmentation. The objective is to search for a family of successive , each of which is simple and closed, to depict the object boundary, as .
The region-based homogeneity term in the piecewise constant variant of the Mumford-Shah model can be expressed as follows
[TABLE]
Recall that in the -th iteration of the curve evolution scheme, the input is the curve () and the output is . Note that when , is the initial curve. We can estimate the gradient of the region-based functional , which can be formulated by
[TABLE]
where and are respectively the mean gray levels inside and outside the curve .
Based on the gradient and the tubular neighbourhood , one can solve the PDE-constrained minimization problem (82) to obtain the vector field and also to obtain . Finally, the Randers metric can be constructed using Eq. (84).
Interactive image segmentation method. By solving the gradient descent ODE, one can obtain an open geodesic path between two points within a given domain. However, for image segmentation, the objective is to seek simple and closed curves. Thus we need to solve an issue: how to derive a closed and simple curve in each iteration , providing that the Randers metric is given. In this section, we consider an interactive segmentation scheme to obtain the evolving curve , which depends on a set of () prescribed vertices distributed on the target boundary in a clockwise order. These vertices will be fixed in the course of curve evolution. Each evolving curve is supposed to pass through each of these vertices in a clockwise order. The initial curve is a polygon which is generated using the vertices . The simple and closed curve can be generated by the end-to-end concatenation of a set of geodesic paths obtained using . Each of these geodesic paths, denoted by with , connects a vertex to its successive one.
Now we present the method for computing the geodesic paths to obtain the curve . Recall that the input curve passes through all of the fixed vertices . In this case, we are able to decompose into a set of subpaths. Each path , defined over the integral , links a vertex to its successive one for or to for . Following that the tubular neighbourhood can be decomposed into a family of disjoint subdomains , each of which can be regarded as a narrowband region (with radius ) involving the open curve . In essence, these regions () can be identified by using the Voronoi index map over the domain associated to the open curves () as introduced in (Chen et al.,, 2019). In other words, a point implies that .
With these definitions in hands, we can track a geodesic path in the corresponding region if , or if . The use of these regions for geodesic path computation is to avoid the curve self-crossing issue and also to reduce the computation time. The decomposition of the tubular neighbourhood can be efficiently implemented by the Fast Marching method with a Voronoi index map estimation procedure. Once all of the geodesic paths are generated, we can construct a simple and closed curve by the concatenation of the paths in an end-to-end manner. Finally, the curve is regarded as the output of the -th iteration.
Note that for a pair of successive vertices , the extracted geodesic path is the globally optimal curve for the length (see Eq. (85)) within the domain .
In Fig. 14, we show an example for this interactive image segmentation procedure providing that a set of ordered vertices are given. These vertices are illustrated by red dots, see Fig. 14a. In Fig. 14b, the blue straight segment lines connecting each pair of red dots represent the initial curve. In Figs. 14c to 14e, we show the intermediate curve evolution results, where the blue contour is generated by the concatenation of a set of the Randers minimal paths. The final curve is shown in Fig. 14f. Again, the vertices denoted by red dots are fixed during the curve evolution.
Remark 1**.**
The method presented in this section assumes that the vertices are provided by user and are fixed during the curve evolution. As a matter of fact, in each iteration , these vertices can be sampled from the input curve . In this case, one can initialize the proposed model by providing a closed curve and the vertices will evolve in the course of the curve evolution processing (Chen et al.,, 2016).
Remark 2**.**
Note that a variant of the edge-based balloon active contour model can also be addressed by the framework proposed in this section. The balloon force in Eq. (8) can be obtained by minimizing the following term
[TABLE]
yielding a curve evolution flow
[TABLE]
Recall that is the outward normal to .
Now we can establish a variant form of the isotropic geodesic active contour functional (Caselles et al.,, 1997; Yezzi et al.,, 1997) with the balloon force term
[TABLE]
In this case, for a given simple and closed curve , the gradient of thus turns out to be a constant function, i.e. . This edge-based active contour model thus can be solved by the Randers metric-based model proposed in this section.
Furthermore, an alternative choice for the regularization term in Eqs. (71) and (89) can be constructed using an anisotropic Riemannian metric (see Eq. (35)), which allows to take into account the path directions for image segmentation (Chen and Cohen,, 2017; Chen et al.,, 2019).
7 Conclusion
In this chapter, we review the methods for the construction of the Riemannian and Randers metrics in terms of various active contour terms. We show that by these metrics the edge- and region-based active contour problems and the Euler-Mumford elastica problem can be efficiently solved by the minimal path framework based on the Eikonal partial differential equation. Moreover, we also exploit the relevant applications of minimal paths associated to the proposed metrics in image analysis such as image segmentation, boundary detection as well as tubular structure centerline tracking, which are able to blend the benefits from the minimal path framework and the active contour models. The well-established fast marching methods, which are the Eikonal solvers, allow efficient and practical implementations for these applications.
Acknowledgement
The authors thank Dr. Jean-Marie Mirebeau from Université Paris-Saclay for his fruitful discussion and regular collaboration. This research has been partially funded by Roche pharma (project AMD_short) and by a grant from the French Agence Nationale de la Recherche ANR-16-RHUS-0004 (RHU TRT_cSVD). Figures 9 are reprinted by permission from Springer Nature Customer Service Centre GmbH: Springer Nature, International Journal of Computer Vision, Global minimum for a Finsler elastica approach, Da Chen, Jean-Marie Mirebeau and Laurent D. Cohen (Chen et al.,, 2017).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Appia and Yezzi, (2011) Appia, V. and Yezzi, A. (2011). Active geodesics: Region-based active contour segmentation with a global edge-based constraint. In Proc. ICCV , pages 1975–1980. IEEE.
- 2Arbelaez et al., (2011) Arbelaez, P., Maire, M., Fowlkes, C., and Malik, J. (2011). Contour detection and hierarchical image segmentation. IEEE Trans. Pattern Anal. Mach. Intell. , 33(5):898–916.
- 3Baker et al., (2011) Baker, S., Scharstein, D., Lewis, J., Roth, S., Black, M. J., and Szeliski, R. (2011). A database and evaluation methodology for optical flow. Int. J. Comput. Vis. , 92(1):1–31.
- 4Benmansour and Cohen, (2009) Benmansour, F. and Cohen, L. D. (2009). Fast object segmentation by growing minimal paths from a single point on 2D or 3D images. J. Math. Imaging Vis. , 33(2):209–221.
- 5Benmansour and Cohen, (2011) Benmansour, F. and Cohen, L. D. (2011). Tubular structure segmentation based on minimal path method and anisotropic enhancement. Int. J. Comput. Vis. , 92(2):192–210.
- 6Bresson et al., (2007) Bresson, X., Esedoḡlu, S., Vandergheynst, P., Thiran, J., and Osher, S. (2007). Fast global minimization of the active contour/snake model. J. Math. Imaging Vis. , 28(2):151–167.
- 7Brox and Cremers, (2009) Brox, T. and Cremers, D. (2009). On local region models and a statistical interpretation of the piecewise smooth Mumford-Shah functional. Int. J. Comput. Vis. , 84(2):184–193.
- 8Caselles et al., (1997) Caselles, V., Kimmel, R., and Sapiro, G. (1997). Geodesic active contours. Int. J. Comput. Vis. , 22(1):61–79.
