Skip to main content
Springer logoLink to Springer
. 2017 Feb 17;58(2):239–264. doi: 10.1007/s10851-017-0705-9

Tracking of Lines in Spherical Images via Sub-Riemannian Geodesics in SO(3)

A Mashtakov 1,, R Duits 2, Yu Sachkov 3, E J Bekkers 4, I Beschastnyi 5
PMCID: PMC7010396  PMID: 32103857

Abstract

In order to detect salient lines in spherical images, we consider the problem of minimizing the functional 0lC(γ(s))ξ2+kg2(s)ds for a curve γ on a sphere with fixed boundary points and directions. The total length l is free, s denotes the spherical arclength, and kg denotes the geodesic curvature of γ. Here the smooth external cost Cδ>0 is obtained from spherical data. We lift this problem to the sub-Riemannian (SR) problem in Lie group SO(3) and show that the spherical projection of certain SR geodesics provides a solution to our curve optimization problem. In fact, this holds only for the geodesics whose spherical projection does not exhibit a cusp. The problem is a spherical extension of a well-known contour perception model, where we extend the model by Boscain and Rossi to the general case ξ>0,C1. For C=1, we derive SR geodesics and evaluate the first cusp time. We show that these curves have a simpler expression when they are parameterized by spherical arclength rather than by sub-Riemannian arclength. For case C1 (data-driven SR geodesics), we solve via a SR Fast Marching method. Finally, we show an experiment of vessel tracking in a spherical image of the retina and study the effect of including the spherical geometry in analysis of vessels curvature.

Keywords: Sub-Riemannian geodesics, Geometric control, Spherical image, Lie group SO(3), Vessel tracking

Introduction

In computer vision, it is common to extract salient curves in flat images via data-driven minimal paths or geodesics [15]. The minimizing geodesic is defined as the curve that minimizes the length functional, which is typically weighted by a cost function with high values at image locations with high curve saliency.

Another set of geodesic methods, partially inspired by the psychology of vision, was developed in [13, 14]. In these articles, sub-Riemannian (SR) geodesics in respectively the Heisenberg H(3) and the Euclidean motion group SE(2) are proposed as a model for contour perception and contour integration.

The combination of such contour perception models with data-driven geodesic methods has been presented in [40]. There, a computational framework for tracking of lines via globally optimal data-driven sub-Riemannian geodesics on the Euclidean motion group SE(2) has been presented with comparisons to exact solutions [28].

In this work, we extend this framework for tracking of lines in spherical images (e.g., images of the retina, cf. Fig. 1). This requires a sub-Riemannian manifold structure in a different Lie group, namely the group SO(3) (consisting of 3D rotations) acting transitively on the 2-sphere S2.

Fig. 1.

Fig. 1

Photography of the retina. A part of the retina is projected onto the image plane. The camera coordinates are denoted by (XY), and object coordinates are denoted by (x¯,y¯)

Here we study the problem Pcurve(S2) of finding a smooth curve n(·) on a unit sphere S2 that satisfies given boundary conditions (both positions and velocities)

n(0)=n0,n(l)=n1,n(0)=n0,n(l)=n1

and minimizes the functional

0lC(n(s))ξ2+kg2(s)ds,

where kg(·) denotes the geodesic curvature of n(·),s denotes the spherical arclength, and total length l is free, see Fig. 2. Furthermore, we include a curve-stiffness parameter ξ>0. In the optimization functional, we also include an external cost factor C:S2R+ adding for adaptation to a given spherical image data. We state this problem Pcurve(S2) more explicitly in Sect. 2.2.

Fig. 2.

Fig. 2

Left: problem Pcurve(S2): for given boundary conditions on a 2D sphere (both positions and velocities), we aim to find a curve minimizing the functional compromising length and geodesic curvature. In the optimization functional, we also include an external cost induced by spherical image data. Right: problem Pcurve(R2) [30, 31]: for given boundary conditions on a 2D plane, to find a curve minimizing the compromise between length and curvature. The external cost factor is added for adaptation to flat image data (see [40]).

The problem Pcurve(S2) is a spherical analog of a well-known problem Pcurve(R2) [30, 31] (cf. Fig. 2) of finding a smooth curve x(·) on a plane R2 that satisfies given boundary conditions

x(0)=x0=(X0,Y0),x(0)=x0=(cosΘ0,sinΘ0),x(l)=x1=(X1,Y1),x(l)=x1=(cosΘ1,sinΘ1),

and minimizes the functional

0lc(x(s))ξ2+k2(s)ds,

where k(s) denotes the curvature, l denotes the total length, and curve stiffness is regulated by ξ>0. The external cost factor c:R2R+ is added for adaptation to a given flat image data (see [40]).

There are three motivations for our study. The first motivation comes from a medical image analysis application, where automatic extraction of the vascular retinal tree on images is helpful for early detection of many diseases, such as diabetic retinopathy, glaucoma, atherosclerosis, and others (see, e.g., [6, 18]). Optical retinal images are mostly acquired by flat cameras, and as a result, distortion appears. Such distortion could lead to questionable (distorted) geometrical features (vessel curvature, thickness, etc.) that are used as biomarkers [6, 10, 11] for different diseases. We will show that the distortion that appears near the boundary of a flat image can play a significant role in the quantitative analysis of the vascular structure and its curvature. As the retina itself is not flat, we should include the spherical geometry both in image processing and in image representation in order to avoid distortion. Such distortion comes from the central projection of the physical retinal surface to the image plane. It is illustrated in Fig. 1, where (XY) denote Cartesian camera coordinates and (x¯,y¯) denote spherical object coordinates. This motivates us to study data-driven SR geodesics on the rigid body rotation group SO(3) and their spherical projections; likewise, it was done (see [39, 40]) for flat images and lifting to the roto-translation group SE(2).

The second motivation comes from models of the visual system of mammals. As mentioned by Boscain and  Rossi [15], the problem Pcurve(S2) can be considered as a spherical extension of a (flat) cortical-based model Pcurve(R2) for perceptual completion, proposed by Citti and Sarti [14], and Petitot [13]. Such a spherical extension is again motivated by the fact that the retina is not flat. By the same argument, cuspless SR geodesics in SO(3) could provide a model of association fields in the psychology of vision (see [31]). Note that nonuniform distribution of photoreceptors on the retina can be included in our model by putting an external cost C on a hemisphere.

The third motivation for this study is that in geometric control theory optimal synthesis for the SR problem in SO(3) has not been achieved in the general case (not even for the case of uniform cost C=1), despite many strong efforts in this direction [15, 1923, 44, 45]. In this paper, we will not provide optimal synthesis analytically, but instead we do provide a HJB theory for computing globally optimal (data-driven) geodesics. In previous works [39, 40], we achieved this for SR geodesics in SE(2), used for tracking of blood vessels in flat 2D images.

In view of these three motivations, we lift the problem Pcurve on the set S2 to a SR problem on the group SO(3), which we will call Pmec, and we provide explicit formulas for SR geodesics. This allows us to describe the set of endpoints in SO(3) reachable by geodesics whose spherical projections do not contain cusps. Furthermore, we present a Hamilton–Jacobi–Bellman PDE theory that allows us to numerically compute the SR distance map, from which a steepest descent backtracking (via the Pontryagin maximum principle) provides only the globally optimal geodesics for general external cost and general ξ>0. We verify our numerical solution, by comparison with exact geodesics in the case C=1. Finally, we use these results in a vessel tracking algorithm in spherical images of the retina, without central projection distortion.

The main contributions of this article are:

  • New formulas for the geodesics of Pcurve(S2) for the uniform cost case C=1.

  • Analysis and parametrization of cusp points arising in spherical projections of geodesics of Pmec(SO(3)).

  • A new HJB-PDE theory for the numeric computation of globally optimal geodesics of Pcurve(S2) and Pmec(SO(3)) for the general external cost case, with verification for C=1.

  • Tracking of lines in spherical image data (e.g., retinal images) without central projection distortion, with comparison to tracking of lines in flat image data.

Vessel Tracking in Spherical Images of the Retina

In this subsection, we first describe the mapping from object coordinates on the retina to camera coordinates, and then we discuss the relevance of considering spherical images of the retina rather than flat images, which are commonly used in the medical application (see Fig. 1). We show that distortion appears inevitably on flat images, with a significant relative error (up to 7%) in length measures. Even larger relative errors (over 20%) appear in the application of differential operators (used for vessel detection).

We base our computations on the reduced schematic eye model (see Fig. 3), which is commonly used in clinical ophthalmology (see, e.g., [42]). Let R be the radius of an eyeball, a be the distance from the nodal point N to the center C, and ψ be the angle between visual axis and a light ray passing through N. Here we consider a simplified model, where the optical axis (the best approximation of a line passing through the optical center of the cornea, lens, and fovea) coincides with the visual axis (the line connecting fixation point and the fovea).1 The average radius of a human eye is R10.5 mm, and the maximum distance between nodal point N and the central point C is amax=17mm-10.5mm=6.5mm.

Fig. 3.

Fig. 3

Top: schematic eye [42] and central projection of images onto the retina. Here R10.5mm. Bottom: schematic eye, enlarged to support Eq. (1)

Now we switch to mathematical object coordinates of the retina where we use the eyeball radius to express lengths, i.e., we have R=1 and amax=6.5mm10.5mm·R=1321 in dimensionless coordinates.

In order to compute the maximum absolute angle y¯max, let us express the angle |y¯| with respect to center of the eyeball (see right Fig. 3). Expressing the squared length of segment NQ yields

(a+Rcos|y¯|)2cos-2ψ=(a+Rcos|y¯|)2+R2sin2|y¯|.

Solving this equation with respect to cos|y¯|, we obtain unique nonnegative solution:

graphic file with name 10851_2017_705_Equ1_HTML.gif 1

A standard fundus camera used for producing of the retinal images has the angular range ψ[-π8,π8]. Thus, substitution R=1,a=1321, and ψ=π8 in Eq. (1) gives the maximum angle

y¯max0.63rad36. 2

We rely on the following parameterization of the image sphere S2 and the retinal sphere S¯2 (see Fig. 4):

S2n(x,y)=cosxcosy,cosxsiny,sinxT,S¯2-2a,0,0T-cosx¯cosy¯,cosx¯siny¯,sinx¯T,

with x,x¯[-π2,π2] and y,y¯[-π,π].

Fig. 4.

Fig. 4

Spherical object coordinates (x¯,y¯) on a retina, Cartesian camera coordinates (XY) on a flat image of the retina, and spherical camera coordinates (xy) on a spherical image of the retina

Next we present the explicit relation between the object coordinates (x¯,y¯)—spherical coordinates on a unit sphere S¯2 representing the surface of the eyeball; flat photo coordinates (XY)—Cartesian coordinates on the image plane and the spherical coordinates (xy) on the image sphere, see Figs. 1 and 4.

To take into account the distance from the eyeball to the camera in our model, we introduce a parameter η>0. In Fig. 4, by setting η=1 we fix the distance equal to (a+c) radiuses of the eyeball. This corresponds to the case when the image sphere S2 is obtained by reflection of the physical retinal sphere S¯2 through the point (-a,0,0)TR3. In this case, we have

(x,y)=(x¯,y¯), 3

and we will always rely on this identification in the sequel. The general case η>0 can be taken into account by congruency and scaling XηRX,YηRY.

The central projection Π (cf. Fig. 1) from (xy) to (XY) including the scaling factor η>0 (with physical dimension length in units of R) is given by

X=(a+c)sinxa+cosxcosyη,Y=(a+c)cosxsinya+cosxcosyη. 4

The inverse mapping Π-1 from (XY) to (xy) for η=1 is given by

x=arcsin(Xp¯(X,Y)),y=arg(p1(X,Y)+iYp¯(X,Y)), 5

where

p¯(X,Y)=a(a+c)+Ξa,c(X,Y)(X2+Y2)+(a+c)2,p1(X,Y)=(a+c)Ξa,c(X,Y)-a(X2+Y2)(X2+Y2)+(a+c)2,

with Ξa,c(X,Y)=(X2+Y2)(1-a2)+(a+c)2.

In these formulas, we need to substitute a=amax=1321 and c=45<R=1, depicted in Fig. 4, where we work in dimensionless coordinates.

Quantification of Local and Global Deformation

The local deformation from spherical photo coordinates (xy) to planar photo coordinates (XY) is now given by the Jacobian

J(x,y)=detXx(x,y)Xy(x,y)Yx(x,y)Yy(x,y)=(a+c)2cosx(1+acosxcosy)(a+cosxcosy)3η2.

In mathematical analysis, we can set η=1; however, in experiments η is to be taken into consideration. Note that for η=1 we have

0.77J(0,0)J(x,y)J(ymax,ymax)1.1,

showing that local deformation plays a considerable role and varies in (xy).

Next we consider the global distortion along the line x=0. It is defined as GD(y)=|y-Y(0,y)||y|, and it has a maximum when y=ymax. We have

0GD(y)GD(ymax)0.07,

and we see the distortion up to 7% along the line x=0. The same holds along the line y=0.

We conclude that it makes a considerable difference to study Pcurve(S2) or Pcurve(R2) in the retinal imaging application. In the sequel, we will write Pcurve instead of Pcurve(S2) as we will always be concerned with the case where the base manifold equals S2.

Problem Pcurve on S2 and Pmec in SO(3)

In this section, we first provide preliminaries on group theoretical tools and notation, and then we show that the spherical projection of certain SR geodesics γ(·) on the Lie group SO(3) provides solution curves to the problem Pcurve on S2, which we formulate next.

Mathematical Foundation and Notations

The Lie group SO(3) is the group of all rotations about the origin in R3. We shall denote a counterclockwise rotation around axis aS2 with angle φ via Ra,φ, in particular for rotations around standard axes

e1=(1,0,0)T,e2=(0,1,0)T,e3=(0,0,1)T.

We use representation of SO(3) by 3×3 matrices

graphic file with name 10851_2017_705_Equ6_HTML.gif 6

where we denote cx=cosx,cy=cosy,cθ=cosθ,sx=sinx,sy=siny,sθ=sinθ, and where

(x,y,θ)-π2,π2×R/{2πZ}×R/{2πZ}. 7

The Lie group SO(3) defines an associated Lie algebra

graphic file with name 10851_2017_705_Equ125_HTML.gif

where TId(SO(3)) denotes the tangent space at the unity element eSO(3), represented by identity matrix Id, which corresponds to the origin in the parameter space

eId{(x,y,θ)=(0,0,0)}.

Remark 1

The formula for Ai follows by

graphic file with name 10851_2017_705_Equ126_HTML.gif

The nonzero Lie brackets are given by

[A1,A2]=A3,[A1,A3]=-A2,[A2,A3]=A1. 8

There is a natural isomorphism between so(3) and the Lie algebra L of left-invariant vector fields in SO(3), where commutators of the vector fields in L correspond to the matrix commutators in so(3)

[RA,RB]=R[A,B],A,Bso(3),RSO(3). 9

We express L in matrix form as

graphic file with name 10851_2017_705_Equ10_HTML.gif 10

Remark 2

Note that at the unity one has

graphic file with name 10851_2017_705_Equ127_HTML.gif

The formulas for Xi in (10) follow by (cf. Remark 1)

graphic file with name 10851_2017_705_Equ128_HTML.gif

We also use the isomorphism between so(3) and R3

Aiei,RAiR-1Rei, 11

where Aiso(3),RSO(3),eiR3,i=1,2,3.

Note that (6) is a product of matrix exponentials:

R(x,y,θ)=eyA3e-xA2eθA1. 12

We choose to rely on this parameterization to keep the analogy with previous SE(2) models [28, 31, 40] mentioned in introduction.

Statement of the Problem Pcurve

Let S2={nR3|n=1} be a sphere of unit radius. We consider the problem Pcurve (see Fig. 2), which is for given boundary points n0,n1S2 and directions n0Tn0(S2),n1Tn1(S2),n0=n1=1 to find a smooth curve n(·):[0,l]S2 that satisfies the boundary conditions

n(0)=n0,n(l)=n1,n(0)=n0,n(l)=n1, 13

and for given ξ>0 minimizes the functional

L(n(·)):=0lC(n(s))ξ2+kg2(s)ds, 14

where kg(s) denotes the geodesic curvature on S2 of n(·) evaluated in time s, and C:S2[δ,+),δ>0, is a smooth function that we call “external cost.”

Here the total length l is free and s=0s1dσ=0sn(σ)dσ denotes the spherical arclength. Thus, we have n(s)=1 and the Gauss–Bonnet formula

kg(s)=n(s)·(n(s)×n(s)). 15

Remark 3

In introduction, we provided two motivations for this problem, where the external cost C plays a different role. Firstly, there is a motivation coming from retinal images, where C is adapted to spherical image data. Secondly, there is a motivation from the modeling of human vision, where the nonuniform distribution of photoreceptors can be modeled by the external cost.

Remark 4

Without loss of generality, we can fix the boundary conditions as

n(0)=e1,n(l)=n1,n(0)=e3,n(l)=n1, 16

since the problem is left-invariant w.r.t. the natural left action of SO(3) onto S2 for C=1. But also for C1 we can fix these boundary conditions by shifting the external cost. This boundary value convention is used throughout this article for Pcurve.

Remark 5

Following the previous works [30, 31] in SE(2) group, we do not expect existence of minimizers for the problem Pcurve(S2) in general.

Statement of Pmec Problem in SO(3)

We call Pmec the following SR problem in SO(3):

R˙=-u1RA2+u2RA1, 17
R(0)=Id,R(T)=Rfin, 18
L(R(·)):=0TC(R(t))ξ2u12(t)+u22(t)dtmin, 19
RSO(3),(u1,u2)R2,ξ>0, 20

with T>0 free.

The external cost C:SO(3)[δ,+),δ>0, is a smooth function that is typically obtained by lifting the external cost C from the sphere S2 to the group SO(3), i.e., C(R)=C(Re1).

We study the problem Pmec for C=1 (case of uniform external cost) in Sect. 3, but let us first consider some preliminaries.

Remark 6

In Pmec, we only have two velocity controls u1 and u2 in a 3D tangent space TR(t)(SO(3)) (cf. Fig. 5).

Fig. 5.

Fig. 5

The controls u1 and u2 along the “spatial generator” X1 and the “angular generator” X2 (cf. Remark 10)

Remark 7

The existence of minimizers for the problem Pmec is guaranteed by Chow-Rashevskii and Filippov theorems on sub-Riemannian manifolds [37]. Moreover, the geodesics of Pmec are smooth, since there are no abnormal extremals (see Example 1.3.13 in [49]).

Remark 8

Sub-Riemannian manifolds are commonly defined by a triplet (M,Δ,G), with manifold M, distribution ΔT(M) and metric tensor G. In our case

M=SO(3),Δ=span{RA1,RA2},G(R˙,R˙)=C2(·)ξ2u12+u22, 21

where the controls u1 and u2 are components of velocity vector w.r.t. moving frame of reference, see (17). The choice of the sub-Riemannian structure (21) is determined by the initial conditions n(0)=e1 and n(0)=e3 in (16).

Remark 9

By virtue of Cauchy–Schwarz inequality, the problem of minimizing the sub-Riemannian length L is equivalent to the problem of minimizing the action functional

E(R(·))=0TC2(R(t))ξ2u12(t)+u22(t)2dtmin, 22

with T fixed (see, e.g., [33]).

Remark 10

In analogy with the SR problem Pmec in SE(2), cf. [30, 31], we sometimes call X1=-RA2 the “spatial generator” and X2=RA1 the “angular generator”, despite the fact that X1 and X2 are both angular generators on S2. The problem Pmec(SO(3)) can be seen as a model of the Reeds-Shepp car on a sphere. The Reeds-Shepp car can move forward and backward and rotate on a place. The input u1 controls the motion along X1, and the input u2 controls the motion along X2, see Fig. 5.

Relation Between the Problems Pcurve and Pmec

We call a spherical projection the following projection map from SO(3) onto S2 (see Fig. 6):

SO(3)RRe1S2. 23

In coordinates (x,y,θ) defined by (6), we have

R(x,y,θ)e1=cosxcosycosxsinysinx=n(x,y)S2. 24

So we see that (xy) are spherical coordinates on S2.

Fig. 6.

Fig. 6

Left: illustration of the parameterizations used in Pmec and Pcurve. The rotations are parameterized by (12), i.e., by angles xy, and θ of rotation about basis axes, see (6). Right: illustration of the Hopf fibration [45]—circle bundle with the base S2

In problem Pcurve, one is interested in a curve n(s)=R(t(s))e1, which satisfies (13) and minimizes (14). Here R(t)=R(x(t),y(t),θ(t)), and

t(s)=0sC(n(σ))ξ2+kg2(σ)dσ. 25

Next we show that the spherical projection (23) of certain minimizers of Pmec provides solution of problem Pcurve. More precisely, this only holds for the minimizers whose spherical projection does not have a cusp.

Definition 1

The spherical projection of a minimizer of Pmec is said to have a cusp at t=tcuspn if there exists ϵ>0, s.t. u1(a)u1(b)<0 for all a(tcuspn-ϵ,tcuspn) and b(tcuspn,tcuspn+ϵ). That is, if the control in front of the “spatial” generator X1 switches sign locally. We are interested in the first cusp time tcusp=minnN{tcuspn>0}, and we call smax the corresponding value of spherical arclength, s.t. tcusp=t(smax) via (25).

Notice that if u10 then the trajectory of Pmec is projected at a single point on S2 which does not provide a solution to Pcurve. This allows us to define smax as

smax=inf{s>0|u1(t(s))=0}, 26

so that tcusp=t(smax).

The following theorem states that minimizers n(s) of Pcurve for s[0,smax) are given by spherical projection of the minimizers R(t) of Pmec for t[0,tcusp). Here s denotes the spherical arclength parameter, defined by ddsn(s)1, and t denotes the SR arclength, defined by C(R(t))ξ2u12(t)+u22(t)1.

Theorem 1

Let R(t),t[0,T] be a minimizer of Pmec parameterized by SR arclength, and let the corresponding optimal control (u1(t),u2(t)) satisfy the inequality u1(t)>0 for all t[0,T]. Set

n0=e1,n1=R(T)e1,n0=e3,n1=R(T)e3. 27

Then for such boundary conditions, Pcurve has a minimizer n(s), along which we have

n(s)=R(t(s))e1,u1(t)=dsdt(t),u2(t)=kg(s(t))dsdt(t), 28
t(s)=0sC(n(σ))ξ2+kg2(σ)dσ, 29

for 0sl<smax, and T=t(l).

Proof

See Appendix 1.

The Sub-Riemannian Problem Pmec1 in SO(3)

In this section, we study the problem Pmec in the special case of uniform external cost C=1, which we call Pmec1. This problem can be seen as a left-invariant SR problem in Lie group SO(3), and it was tackled by many authors (see [15, 2023, 44, 45]) in different contexts. It is remarkable that the statement of the problem is very simple, but due to the high complexity of the formulas describing geodesics, the minimizers are still unknown for general ξ>0. The case ξ=1 corresponds to a symmetric SR structure in SO(3), and it was completely solved in [15, 20, 30, 44, 45]. In this section, we consider the general case ξ>0 and derive analytic formulas for the geodesics using the parametrization (6) for SO(3). Further, in Sect. 5 these formulas allow us to verify our numerical approach to compute the global minimizers of Pmec, presented for the first time by knowledge of the authors.

In our analytical study, first we introduce a coordinate chart in SO(3) and write the optimal control problem Pmec1 in this chart. Then we apply Pontryagin maximum principle (PMP), which is the first-order necessary condition for optimality [37], and we derive the explicit formulas for the sub-Riemannian geodesics. Afterward we explain the notion of sub-Riemannian wavefront and sphere. Finally, we discuss what is known about optimality of the geodesics.

Pmec1 as Optimal Control Problem on S2×S1

In this section, we introduce the chart in SO(3) and formulate problem Pmec1 given by (17)–(20), see Sect. 2.3, as an optimal control problem on M=Sx,y2×Sθ1, where (x,y)[-π2,π2]×R/{2πZ} are the spherical coordinates, cf. (24), and θR/{2πZ}. We use this specific chart to stress the analogy with the closely related problem in SE(2) group (see [30, 31]).

Consider a smooth curve γ(·)=(x(·),y(·),θ(·))C(R,Sx,y2×Sθ1) departing from the origin, i.e., γ(0)=e=(0,0,0). In Sect. 2.1, we parameterized the group SO(3) by the angles x,y,θ, recall (6). A smooth curve γ(·) corresponds to a smooth curve R(·) in SO(3) defined by the one-parameter family of matrices

R(t)=R(x(t),y(t),θ(t))SO(3), 30

depending smoothly on the parameter tR and satisfying the initial condition R(0)=Id. A tangent vector of R(t)=R(x(t),y(t),θ(t)) is expressed as

R˙=Rxx˙+Ryy˙+Rθθ˙.

Therefore, the control system (17) can be rewritten as

γ˙=x˙y˙θ˙=cosθ-secxsinθtanxsinθu1+001u2. 31

Vector fields near the controls ui are two of three of the basis left-invariant vector fields in SO(3) expressed in our chart. We denote them by X1,X2, and the third basis left-invariant vector field is given by their commutator X3=[X1,X2]. Thus we have

graphic file with name 10851_2017_705_Equ32_HTML.gif 32

Then problem Pmec1 given by (17)–(20) for C=1, taking into account Remark 9, is equivalent to the following optimal control problem:

γ˙=u1X1+u2X2,(u1,u2)R2 33
γ(0)=e,γ(T)=νfin=(x1,y1,θ1)S2×S1, 34
E=120Tξ2u12+u22dtmin,ξ>0. 35

Remark 11

A projective version of problem Pmec1 with ξ=1 is studied in [16]. It is obtained by identification of antipodal directions θ and θ+π; thus, its solution is given by minimum between two geodesics with terminal configurations h=(x1,y1,θ1) and h¯=(x1,y1,θ1+π). The associated SR distance is given by

dP(g,h)=minγ(·)Lip([0,T],SO(3)),γ(0)=g,γ(T){h,h¯},γ˙(·)ΔL(γ(·)).

The model in [16] is connected to problem Pmec1 via right shift gg·eπA3e-π2A2. The local chart is obtained by linear transformation a=π2-x,b=y,θ=ξ+π. The existence of optimal trajectories whose spherical projection contains a cusp is mentioned in [16].

Application of the Pontryagin Maximum Principle

In this subsection, we apply the Pontryagin maximum principle (PMP) to problem Pmec1 given by (33)–(35) and derive the Hamiltonian system of PMP. Here we follow standard geometric control theory (see, e.g., [37]).

Due to the absence of abnormal extremals (see Remark 7), we consider only the normal case, where the control-dependent Hamiltonian of PMP reads as

Hu(λ,ν)=λ,u1X1+u2X2-ξ2u12+u222,withλ=k=13λkdνkTνM.

Here ν=(x,y,θ),Xi are given by (32), ·,· denotes the action of a covector on a vector, and (dν1,dν2,dν3)=(dx,dy,dθ) are basis one forms.

The maximization condition of PMP reads as

graphic file with name 10851_2017_705_Equ129_HTML.gif

where u(t) denotes an extremal control and (λ(t),γ(t)) is an extremal.

Introduce left-invariant Hamiltonians hi=λ,Xi,i=1,2,3. The maximization condition gives the expression for the extremal controls

u1=h1ξ2,u2=h2. 36

Then the maximized Hamiltonian, which we call “the Hamiltonian”, reads as

H=12h12ξ2+h22. 37

The vertical part (for momentum components hi) of the Hamiltonian system of PMP is given by

h˙i=H,hi=j=13Hνjhiλj-hiνjHλj, 38

where {·,·} denotes the Poisson bracket (see [37]).

Using the standard relation between Poisson and Lie brackets {hi,hj}=λ,[Xi,Xj], we get

H,h1=h2h2,h1=-h2h3,H,h2=1ξ2h1h1,h2=1ξ2h1h3,H,h3=1ξ2h1h1,h3+h2h2,h3=1-1ξ2h1h2.

Thus the Hamiltonian system with the Hamiltonian H follows by the last three identities and (38):

graphic file with name 10851_2017_705_Equ39_HTML.gif 39

with the boundary conditions

h1(0)=h10,h2(0)=h20,h3(0)=h30,x(0)=0,y(0)=0,θ(0)=0. 40

In (39), the horizontal part follows from (36) and (31).

It is known that the Hamiltonian system (39) is Liouville integrable [25, 27], and it was explicitly integrated in [19, 22]. In the next subsections, we classify the possible solutions by values of the parameter ξ, and we adapt the explicit solution to our coordinate chart (x,y,θ)M, where we follow the analogy to the closely related problem in SE(2). This allows us to obtain simpler formulas than in [19, 22].

Classification of Different Types of Solutions

Here we describe the domains of parameter ξ>0, which correspond to different dynamics of the Hamiltonian system (39). It is well known (see, e.g., [22]) that this system has two integrals of motion that depend only on momentum components hi (see illustration in Fig. 7)

2H=h12ξ2+h22=1- the Hamiltonian, 41
M2=h12+h22+h32- Casimir function. 42

Different values of the Hamiltonian H correspond to different speed along extremal trajectories γ(·). By fixing the value H=12 in (41), we use SR arclength parameter

t=0tG|γ(τ)(γ˙(τ),γ˙(τ))dτ=0t1dτ

along extremal trajectories. The momentum trajectory h(t) can be seen as the curve formed by intersection of the cylinder H=12 and the sphere M=const (see the yellow line in Fig. 7).

Fig. 7.

Fig. 7

Top: integral manifolds of the vertical part of (39). The red sphere is a coadjoint orbit M2=h12+h22+h32, and the green cylinder is the Hamiltonian 2H=h12ξ2+h22=1. Bottom: vector field plot on the (h2,h3) plane (Color figure online)

Elimination of h1 from (41) and (42) yields

h22(1-ξ2)+h32=M2-ξ2.

Since h221, there exist the following types of solution of the vertical part of (39):

  1. Elliptic for ξ<1,M2>ξ2;

  2. Linear for ξ=1,M2>ξ2;

  3. Hyperbolic for ξ>1,M2ξ2,M>1;

  4. A point (0,0) for ξ<1,M2=ξ2;

  5. A segment of a straight line for ξ=1,M=1;

  6. Two crossing segments of straight lines for ξ>1,M2=ξ2;

  7. No solution otherwise.

According to this classification, we will refer to the case ξ<1 as the elliptic case, ξ=1 as the linear case, and ξ>1 as the hyperbolic case.

Geodesics in SR Arclength Parametrization

In this subsection, we provide explicit formulas for the SR geodesics, where we reexamine results from [19, 22].

In the coordinates (β,c)R/{4πZ}×R, defined by

h1=ξcosβ2,h2=sinβ2,h3=ξc2, 43

the vertical part of (39) becomes a system of mathematical pendulum

β˙=c,β(0)=2argh10ξ+ih20,c˙=-rsinβ,c(0)=2h30ξ, 44

where r=1ξ2-1(-1,+). Thus r(-1,0) corresponds to the elliptic, r=0 to the linear, and r(0,+) to the hyperbolic case.

The system (44) has a symmetry (β~(t)=β(t)+π,r~=-r), which allows us to study the elliptic case and obtain the hyperbolic case by symmetry observations. Note also that the linear case should be treated separately, but the equations in this case are much simpler. Therefore, in the remainder of this manuscript we restrict ourselves to the case r00<ξ1.

In the following theorem, we provide explicit formulas for SR geodesics in SR arclength parametrization.

Theorem 2

A solution of the system (39) reads as

graphic file with name 10851_2017_705_Equ45_HTML.gif 45

where (β(t),c(t)) is a trajectory of (44), and

graphic file with name 10851_2017_705_Equ46_HTML.gif 46

Proof

See Appendix 2.

Note that (β(t),c(t)), and y~(t) admit explicit expression in Jacobi elliptic functions and elliptic integrals of the first, second, and third kind [19]. We present plots of spherical projections (23) of extremal trajectories in Fig. 8. Here it is remarkable that the spherical projections of SR geodesics in SO(3) can represent cusps, which can be undesirable for image analysis applications. This motivates us to study SR geodesics before the first cusp in their spherical projections. For short, we call such curves “cuspless geodesics.” In Sect. 4, we describe the possible end conditions, which can be connected by a cuspless geodesic, and in Sect. 5, we provide PDE-based approach for solving the boundary value problem (BVP) for data-driven SR geodesics, where we reformulate the problem as a solution to the SR-eikonal equation.

Fig. 8.

Fig. 8

Spherical projection of various sub-Riemannian geodesics in SO(3)

Sub-Riemannian Wavefronts and Spheres

A useful tool for studying geodesics in left-invariant optimal control problems is the exponential map 2 that maps an initial momentum h(0) and a time t to the endpoint of corresponding geodesic γ(·) [i.e., the exponential map integrates the Hamiltonian system (39)]:

Exp:Te(SO(3))×RSO(3),(h(0),t)γ(t). 47

Now we explain the notion of wavefront. By definition, the wavefront consists of endpoints of all the geodesics of the same length T:

WF(T)={Exp(h(0),T)|h(0)Te(SO(3)),H(h(0))=12}. 48

The outer surface of a wavefront forms a sub-Riemannian sphere, which is a set of endpoints equidistant from e:

S(T)={Exp(h(0),T)|h(0)Te(SO(3)),H(h(0))=12,tcut(h(0))T}=gSO(3)|d(e,g)=T,

where d(q1,q2) denotes the sub-Riemannian distance between q1 and q2 and tcut denotes the cut time, i.e., an instance of time, when a geodesic loses its optimality.

What Is Known About Optimality?

In the previous subsection, we computed SR geodesics or in other words extremal trajectories. It is known (see, e.g., [33, 37]) that sufficiently short arcs of SR geodesics are SR length minimizers (optimal trajectories). It is also known that in general a geodesic loses its optimality after a cut point. The corresponding instance of time is called cut time, and the set of all cut points in configuration space forms the so-called cut locus. In general, it is complicated to derive cut loci [37].

Remark 12

There are two reasons for a geodesic to lose optimality:

  1. Local optimality is lost at a conjugate point (critical point of exponential map that integrates the Hamiltonian system);

  2. Global optimality is lost at a first Maxwell point (when two geodesics meet with the same length for the first time).

In problem Pmec1, both the Maxwell set and the conjugate locus are not known. The estimation of the first Maxwell time was given in [19], but still neither the cut locus, nor the SR length minimizers are known yet for general ξ>0. The cut locus in a special case of the bi-invariant metric (for ξ=1) was obtained in [15]. In [22], conjugate locus in the Riemannian case was constructed, and by considering a SR metric as a limiting case of the Riemannian metric, the corresponding formulas for the conjugate locus in SR case could be obtained.

Here we do not provide such a limiting procedure. Instead, motivated by applications, in Sect. 5 we propose a numerical solution to compute the SR length minimizers and spheres. In Sect. 4, motivated by the study [31], we also give some statements on optimality of cuspless geodesics. We show that in contrast to SE(2) case [30, 31] there exist nonoptimal cuspless SR geodesics.

Sub-Riemannian Geodesics in SO(3) with Cuspless Spherical Projection

In this section, we study cuspless SR geodesics. Such geodesics allow parametrization by spherical arclength, which leads to simpler formulas than using SR arclength parametrization (see Sect. 3). Spherical arclength parameterization breaks down, when the spherical projection of a geodesic exhibits a cusp for the first time. So a natural question arises to characterize the set of end conditions RSO(3) reachable by cuspless geodesics, similar to the SE(2) case studied in [31].

The cuspless SR geodesics are projections in SO(3) of the trajectories of the Hamiltonian system (39) that are going in positive direction of X1 (i.e., u1(t)>0) before the first cusp time t<tcusp. Thus, by virtue of (36) the cuspless constraint is given by

h1(t)>0,for allt[0,T].

We shall often rely on short notation hi(s):=hi(t(s)), where we stress our notations

hi=ddshiandh˙i=ddthi

in order to avoid confusion with the chain law for differentiation. Recall (26) and note that smax for a given geodesics is determined by its initial momentum. We write smax(h(0)) when we want to stress this dependence. We derive an explicit formula for smax(h(0)) in Sect. 4.1.

Theorem 3

For any s[0,smax(h(0))),h1(0)>0 the system (39) is equivalent to the following system (see corresponding vector flow in Fig. 7):

graphic file with name 10851_2017_705_Equ49_HTML.gif 49

with the boundary conditions

h2(0)=h20,h3(0)=h30,x(0)=0,y(0)=0,θ(0)=0. 50

Proof

Express the dynamics (39) in the spherical arclength parameter s. We have

graphic file with name 10851_2017_705_Equ130_HTML.gif

Here we recall that u1=dsdt, see (28), and h1=ξ2u1, see (36). Thus we obtained the vertical part of (49). Doing the same for the horizontal part in (39), we obtain the full system (49), where the Hamiltonian H(s)=ξ-2h12(s)+h22(s)2=12 together with the cuspless constraint h1(s)>0 allows us to write h1(s)=ξ1-h22(s).

Finally, the boundary conditions (50) follow from (40), since t=0s=0.

Note that in contrast to the mathematical pendulum ODEs (44) expressed in SR arclength t, where the Jacobi elliptic functions appear, the vertical part in s parameterization now is a simple linear system of ODEs integrated in elementary functions. To obtain simpler formulas, we define the parameter χC (where one should take principal square root):

χ=ξ2-1=1-ξ2i,for0<ξ<1,ξ2-1,forξ1. 51

Theorem 4

The general solution of the vertical part in (49) for all ξ1 is given by

h2(s)=h20coshsχ+h30χsinhsχ,h3(s)=h30coshsχ+χh20sinhsχ,h1(s)=ξ1-h22(s), 52

and for the case ξ=1, we find straight lines parallel to h2 axis in the (h2,h3)-phase portrait:

h2(s)=h20+h30s,h3(s)=h30,h1(s)=1-h22(s). 53

Proof

The solution to the system of ODEs is unique and it is readily checked (52) is a solution of the vertical part of (49) for all ξ1. For ξ<1, we take main values for the complex square root and complex sinh and cosh. For both ξ=1 and ξ1 and ξ1, we have h2(s)=h20+h30s and h3(s)=h30.

Computation of the First Cusp Time

To analyze the cusp points in problem Pcurve, we need to determine smax(h(0)). It is given, recall (26) and (36), by the minimal positive root of equation h1(s)=0:

smax(h(0))=min{s>0|h1(s)=0}.

Theorem 5

When moving along a SR geodesic tγ(t), the first cusp time is computed as tcusp(h(0))=t(smax(h(0)), recall (25), where

graphic file with name 10851_2017_705_Equ54_HTML.gif 54

with s1=sgnReh20χ+h30 and κ=(h30)2+1-(h20)2χ2R.

As a result, in the SR manifold (SO(3),Δ,G), recall (21), there do exist nonoptimal cuspless geodesics.

Proof

See Appendix 3.

The presence of nonoptimal cuspless geodesics is remarkable, as in the SE(2) group every cuspless geodesic is globally optimal [31].

Geodesics in Spherical Arclength Parametrization

In this subsection, we derive the formulas for cuspless SR geodesics in s parameterization.

Theorem 6

The unique solution of  (49) is defined for s[0,smax(h(0))], where smax(h(0)) is given by (54). The solution to the vertical part is given by Theorem 4, and the solution to the horizontal part is given by

x(s)=arg(R112(s)+R212(s)+iR31(s)),y(s)=arg(R11(s)+iR21(s)),θ(s)=arg(R33(s)+iR32(s)), 55

where

graphic file with name 10851_2017_705_Equ131_HTML.gif

Proof

It follows from Theoremes 23, and 4. Momentum component h1 is expressed in h2 via the Hamiltonian (37) which equals to 12 along SR geodesics. The sign of h1(0) is equal to the sign of u1(0)=dsdt(0) and therefore nonnegative.

Regarding the integration constraints, we note that M2=h12+h22+h32 and 0h1=ξ1-h22 and

dy~ds=ξ2h1dy~dt=M2h1M2-h22=ξM21-h22M2-h22

from which the result follows.

Remark 13

In contrast to general SR geodesics in SO(3) given in t parameterization, where Jacobi elliptic functions appear, the cuspless SR geodesics in SO(3) given in s parameterization involve only a single elliptic integral 0s1-h22(σ)M2-h22(σ)dσ. This integral can be expressed in terms of standard elliptic integrals. For example, in the elliptic case ξ<1,M2>ξ2 we have

h2(s)=ρsinΨ(s),

where ρ=M2-ξ21-ξ2,Ψ(s)=s1-ξ2+Ψ0, with Ψ0=arg(h3(0)1-ξ2+ih2(0)), which yields

y~(s)=M0s1-ρ2sin2(Ψ(σ))M2-ρ2sin2(Ψ(σ))dσ=M1-ξ2Ψ0Ψ(s)1-ρ2sin2(Ψ)M2-ρ2sin2(Ψ)dΨ=M1-ξ2(FΨ(s),ρ2-F(Ψ0,ρ2)-1-1M2×Πρ2M2,Ψ(s),ρ2-Πρ2M2,Ψ0,ρ2),

where F denotes an elliptic integral of the first kind and Π denotes an elliptic integral of the third kind.

See plots of projected cuspless geodesics n(s)=R(s)e1 for s(0,smax) in Fig. 9.

Fig. 9.

Fig. 9

Spherical projection of cuspless SR geodesics in SO(3) in elliptic, linear, and hyperbolic cases

PDE Approach for Data-Driven SR Geodesics in SO(3)

In this section, we adapt the PDE approach for data-driven SR geodesics in SE(2) [39, 40] to the SO(3) group. Here we consider the basis left-invariant vector fields Xi as differential operators of the first order, and we write Xi(W) for the derivative of a function W:SO(3)R along Xi.

We aim to solve the following optimal control problem:

γ˙(t)=i=12uiXi|γ(t),fort[0,T],γ(t)SO(3),γ(0)=e,γ(T)=g1,(u1,u2)R2,l(γ(·))=0TC(γ(t))ξ2u12(t)+u22(t)dtmin.

Here the terminal time T is free; and C:SO(3)[δ,+),δ>0 is the external cost.

By rescaling of time τ=tT[0,1] simultaneously with controls u¯i(τ)=Tui(Tτ), we write down the explicit solutions as

dSO(3)0(g,e):=infγ(0)=e,γ(1)=g,γ˙(·)Δγ(·),γLip([0,1],SO(3))01Gγ(τ)(γ˙(τ),γ˙(τ))dτ. 56

Here the sub-Riemannian metric tensor

G=C2(·)ξ2ω1ω1+ω2ω2 57

is defined only on the distribution Δ, recall Remark 8.

Sub-Riemannian Fast Marching in SO(3)

Here we propose a SR-FM method (sub-Riemannian fast marching) for the computation of data-driven SR length minimizers (not necessarily cuspless) in SO(3) group, as a solution to the SR-eikonal system (62). This method was successfully used in [41] for the computation of data-driven SR length minimizers in SE(2) group. The method is based on a Riemannian approximation of sub-Riemannian manifold, and computing Riemannian geodesics in highly anisotropic space, which becomes the SR manifold in the limiting case as anisotropy tends to infinity.

Here we follow the explanation in [41], where we work now in new settings of the SO(3) group and use the coordinate chart (x,y,θ) defined in Sect. 3.1. Recall that the basis left-invariant vector fields3 Xi in SO(3) are given by the following differential operators:

X1=cosθx-secxsinθy+tanxsinθθ,X2=θ,X3=sinθx+secxcosθy-tanxcosθθ,

and corresponding basis left-invariant one forms ωi, satisfying ωi,Xj=δij, are expressed as

ω1=cosθdx-cosxsinθdy,ω2=sinxdy+dθ,ω3=sinθdx+cosxcosθdy. 58

We approximate the sub-Riemannian manifold by a Riemannian manifold by fixing a small ε>0. Moreover, the SR-eikonal equation (62) is well defined and it can be derived as a limiting case of the eikonal equation on a Riemannian manifold via the inverse metric tensor, see Appendix 4. Let us denote the Riemannian distance as follows:

dSO(3)ε(g,e):=infγ(0)=e,γ(1)=g,γLip([0,1],SO(3))01Gεγ(τ)(γ˙(τ),γ˙(τ))dτ. 59

with Riemannian metric tensor Gε given by

graphic file with name 10851_2017_705_Equ60_HTML.gif 60

Remark 14

In our approach, we shall rely on standard notion of viscosity solution [7, 8, 12] of the Riemannian eikonal equation, which admits a generalization to the sub-Riemannian case. See details in Appendix 4.

The following theorem summarizes our approach for the computation of data-driven sub-Riemannian length minimizers in SO(3).

Theorem 7

Let geSO(3) be chosen such that there exists a unique minimizer γε:[0,1]SO(3) of dSO(3)ε(g,e) such that γε(τ) is not a conjugate point for all τ[0,1] and all ε0 sufficiently small.

Then τdSO(3)0(e,γ0(τ)) is smooth and the minimizer γ0(τ) is given by γ0(τ)=γb(1-τ), with

γ˙b(τ)=-u¯1(τ)X1γb(τ)-u¯2(τ)X2γb(τ),γb(0)=g, 61

with

graphic file with name 10851_2017_705_Equ132_HTML.gif

and with W(g) denoting the viscosity solution of the following boundary value problem:

X1|g(W)2ξ2+X2|g(W)2=C(g),forge,W(e)=0. 62

For an outline of the proof, see Appendix 4, where we rely on a similar approximation approach as in [48, ch. 5, app. A] for an elastica functional and in [36, Thm. 2, Cor. 2, app. A] for a SR problem on SE(2).

Remark 15

The approach in Theorem 7 can be adapted for producing only the cuspless minimizers. See Appendix 4.

Remark 16

The SR spheres of radius t centered at e are given by St={gSO(3)|W(g)=t}.

Remark 17

Recall that conjugate points are points where local optimality is lost. For a formal definition and characterization, see [35, def. 8.4.3, cor. 8.4.5]. We would conjecture that the assumption on the conjugate points in the above theorem is not really needed, as even the conjugate points that are limits of first Maxwell points do not seem to cause problems in the backtracking procedure, akin to the SE(2) case [40, App. D], but nevertheless our proof in Appendix 4 does rely on this assumption.

From the derivations above Theorem 7, we see that the fast marching approach for computing SR geodesics in SE(2), cf. [41], is easily generalized to the SO(3) case. To this end, we replace the matrix representation for Gε expressed in the fixed (x,y,θ) Cartesian coordinate frame. In the SO(3) case, it equals

Mε=RC2(·)ξ2000C2(·)000C2(·)ξ2ε-2RT,

with

R=cosθ0sinθ-cosxsinθsinxcosxcosθ010.

Here the diagonal matrix in the middle encodes the anisotropy between the Xi directions, while the matrix R is the basis transformation from the moving coframe {ω1,ω2,ω3} to the fixed coframe {dx,dy,dθ}, recall (58), in which the fast marching implementation via special anisotropic stencils [5] is used.

In Sect. 6.1, we will show that the thereby obtained fast marching approach already presents reasonable precision for ε=0.1. Experiments in Sect. 6.3 show the application of the method (with data-adaptive nonuniform cost) to tracking of blood vessels in retinal images.

Experiments

In Sect. 6.1, we verify the SR-FM method by comparison of SR length minimizers/spheres obtained via SR-FM with the exact SR geodesics/wavefronts (cf. Sect. 3) for the case of uniform external cost (i.e., C=1). In Sect. 6.2, we compare SR geodesics and wavefronts in the groups SE(2) and SO(3) (Sect. 6.2.1) for the uniform external cost case. In Sect. 6.3, we provide experiments of vessel tracking by SR geodesics in SO(3) when the external cost C is induced by spherical data, and compare them to the result of vessel tracking on the corresponding flat image by SR geodesics in SE(2).

Verification of the Fast Marching Method in the Case of Uniform External Cost

In this subsection, we perform the experiments to validate the SR Fast Marching (SR-FM) method proposed in Sect. 5.1. The goal of the experiments is to check that the method produces an accurate approximate solution to the SR problem in SO(3) group in the case of uniform external cost C=1. In all the experiments, we fixed the anisotropy parameter of the Riemannian approximation as ε=0.1.

In the first experiment, we compare the geodesics γFM(·) obtained via SR-FM with the exact cuspless geodesics γ(·) computed via analytic formulas in Theorem 6. We perform the comparison as follows:

  1. Fix ξ>0 and the initial momenta h(0).

  2. Compute the first cusp time smax(h(0)) corresponding to h(0), and set send=min{smax(h(0)),π2}.

  3. Compute the geodesic γ(s),s[0,send] via Thm. 6.

  4. Compute the distance function W(g) in the domain g=(x,y,θ)[-π2,π2]×[-π,π]×[-π,π] via SR-FM. Here we compute the distance function in the grid of 201×401×401 points and then interpolate it using third-order Hermite interpolation.

  5. Compute the geodesic γFM(t),t[0,W(gend)] via backtracking (61) from the endpoint g1=γ(send).

  6. Plot the spherical projections of γ(s) and γFM(t) and compare them.

A typical result of the comparison is shown in Fig. 10, where we set ξ=1.5,h3(0)=0 for all the curves and varied initial momentum h2(0){-0.99,-0.81,-0.63,-0.45,-0.27,-0.09,0.09,0.27,0.45,0.63,0.81,0.99}. As a result, we see that the geodesics computed numerically via SR-FM accurately follow the exact geodesics.

Fig. 10.

Fig. 10

Top: the spherical projection of cuspless SR geodesics in SO(3) computed by exact formulas in Theorem 6 (green dashed lines) and our numerical fast marching approximations (red lines). Bottom: example of nonoptimal cuspless geodesics (Color figure online)

We have performed a series of such experiments and always obtained similar results when the geodesics γi(s) were optimal for s[0,sendi]. It was also remarkable that SR-FM resulted into different curves (length minimizers) when the geodesic γi(s) was not optimal for s[0,sendi]. Such an example is illustrated in Fig. 10 (bottom). The question of optimality of SR geodesics in SO(3) in the general case ξ>0 is an open important problem, recall Sect. 3.5. Here we provide a numerical SR-FM method for computing only the optimal geodesics. In analogy with how it was done in [40], it is possible to compute Maxwell sets numerically. We have a strong conjecture that optimality is lost at the first Maxwell point induced by reflectional symmetries along the geodesic. We leave the computation of Maxwell points and analysis of optimality of the geodesics as a direction for future work.

To verify the SR-FM method we also perform experiments with comparison of the geodesics obtained via SR-FM and the general geodesics (not necessarily cuspless) given by Theorem 2. A typical result is presented in Fig. 11 (top). Here we again observe an accurate result of SR-FM, but now for the geodesics whose spherical projections have cusps.

Fig. 11.

Fig. 11

Top: comparison of exact SR geodesics in SO(3) (green dashed lines) obtained via analytic formulas (Theorem 2) and SR geodesics computed numerically via SR-FM (red lines). Here ξ=4.5,tend=3π2, and initial momenta (h2i(0),h3i(0))={(-5,-0.99),(-5,0.99),(5,-0.99),(5,0.99)}. Bottom: Comparison for ξ=1 of wavefront in SO(3) (green transparent surface) obtained via the analytic formulas of Theorem 2 for T=1532π and the SR sphere (orange solid surface) for the same T, obtained via SR-FM (Color figure online)

To conclude this section, we provide one more experiment, where we compare the exact sub-Riemannian wavefronts and SR spheres computed via SR-FM. We show that the SR-FM method provides a distance function W(g) that closely approximates the SR distance d(e,g)W(g). In Fig. 11, we show the comparison of the exact wavefront WF(1532π) and isosurface SFM(1532π)={gSO(3)|W(g)=1532π}. Here we see that the isosurface computed via SR-FM accurately follows the outer surface of the exact wavefront (i.e., exact SR sphere). A similar picture was obtained for different radii T.

Comparison of SR Geodesics and Wavefronts in SE(2) and SO(3) for C=1

In this subsection, we compare SR geodesics and wavefronts in SE(2) and SO(3) and analyze their applicability in image processing. We also include a short discussion about optimality of geodesics, which is closely related to the analysis of self-intersections of wavefronts and the study of cut loci. To this end, we provide accurate plot of the wavefronts near their singularities.

Comparison of SR Wavefronts in SO(3) and SE(2) for C=1

In this subsection, we show a comparison of the SR wavefronts in SO(3) and SE(2) in the case of uniform external cost C=1. Here we employ the fact that the coordinate chart (x,y,θ) in Sx,y2×Sθ1 was chosen in the way to obtain the analogy with (X,Y,Θ)R2×S1. This allows us to plot SR wavefronts of SO(3) and SE(2) in the same 3D plot.

In this comparison, we use the SR arclength parameterization t, where the geodesic γSO(3)(·) is given by exponential map Exp(h0,·), recall (47), i.e., by the projection in SO(3) of the solution of the Hamiltonian system (39), with initial condition h(0)=h0,γSO(3)(0)=e=(0,0,0). To establish the comparison of wavefronts we switch to polar coordinates (β,c), recall (43), where the Hamiltonian system in SO(3) reads as:

graphic file with name 10851_2017_705_Equ133_HTML.gif

A solution to this system is given by Theorem 2.

The Hamiltonian system for SR geodesics in SE(2) (see, e.g., [29] ) reads as:

graphic file with name 10851_2017_705_Equ134_HTML.gif

A solution to this system is given in [29]. Indeed, we observe a clear similarity between the SO(3) and SE(2) case, when using parametrization (6).

In Fig. 12, we plot the SR wavefronts in SO(3) and SE(2) for several values of end time T. In these plots, we identify (x,y,θ) and (X,Y,Θ), so that the red surfaces WFSE(2) are the SR wavefronts of SE(2) and the green surfaces WFSO(3) are the SR wavefronts of SO(3). We see a very similar shape of WFSO(3) and WFSE(2) for small radii T, but the difference increases when T increases. Thus, we conclude that the SR geodesics in SO(3) can be locally approximated by the SR geodesics in SE(2), but globally they are considerably different.

Fig. 12.

Fig. 12

Comparison of SR wavefronts in SE(2) (red) and SO(3) (green) for T=0.5,ξ=1,η=1. A zoomed in picture for the blue square is provided in Fig. 13 (Color figure online)

One can also observe that the singular points4 of WFSO(3) are located near singular points of WFSE(2). This leads us to a conjecture that the location of conjugate points (open problem) can be estimated by the location of conjugate points of WFSE(2). Note also that in the general case ξ>0 the set of singular points has a complicated shape. In Fig. 13, we present more detailed plot of the singularities, with the depicted Maxwell set and special cases of conjugate points, which are limit points of the Maxwell set on SR sphere (outer part of wavefront).

Fig. 13.

Fig. 13

Comparison of self-intersections of SR wavefronts in SE(2) (red) and SO(3) (green) for ξ=1 (linear case) and ξ=0.5 (elliptic case). Here T=0.5 and η=1. The viewpoint is taken from the inside of the SR sphere. In this figure, we plot the part of wavefront depicted by the blue square in Fig. 12. If ξ1 both the wavefronts in SE(2) and in SO(3) do not intersect at a single point. The first Maxwell sets are depicted by dashed violet lines. The first conjugate points on the SR sphere are depicted by yellow dots (Color figure online)

In Fig. 13, we observe that the wavefront in SO(3) has a very special symmetry when ξ=1. This is not present for ξ1, and this never happens in the SE(2) group. The case ξ=1 for SR manifold in SO(3) was completely examined in [15], where it was shown that locally the conjugate locus is an interval, and globally it is a circle without a point. Changing ξ destroys the symmetry, conjugate and Maxwell points are getting separated, and the conjugate locus has an astroidal shape [34].

Comparison of SR Geodesics in SO(3) and SE(2) for C=1

In this subsection, we again consider the case C=1 and compare SR geodesics γSO(3)(·)=(x(·),y(·),θ(·)) and γSE(2)(·)=(X(·),Y(·),Θ(·)) in the image plane. The SR-FM method is used for computation of the geodesics parameterized by SR arclength. Here we prepare background for comparison of the geodesics in retinal images via the schematic eye model, recall Sect. 1.1, where as a departure point we use an image (white for C=1) on a plane OXY, recall Fig. 4.

See Fig. 14, where we compare SE(2) and SO(3) SR geodesics projected on the plane and on the sphere (via mappings Π and Π-1). For details, see Appendix 5.

Fig. 14.

Fig. 14

Comparison of an SE(2) SR geodesic (blue) and an SO(3) SR geodesic (red), from left to rightin (xy) spherical image coordinates, (XY) flat image coordinates, and plotted on the sphere S2 (Color figure online)

Vessel Analysis via SO(3) SR Geometry and SE(2) SR Geometry

As explained in introduction in Sect. 1.1, we need to include the spherical geometry of the retina rather than the flat geometry of the flat image. This spherical geometry is encoded in our spherical image model, see Fig. 4. Next we will analyze the effect of including this geometry in the SR-FM vessel tracking method along data-driven SR geodesics in SO(3).

More precisely, we propose vessel tracking in object coordinates (or spherical image coordinates) via SR geometry in SO(3) as an extension of vessel tracking in flat images [39, 40] along SR geodesics in SE(2). Therefore, we want to investigate whether including the correct spherical geometry makes a difference in the vessel tracking in practice. Although a complete detailed comparison on large data sets is left for future work, we present preliminary experiments which indeed indicate considerable differences in both tractography and curvature measurements. These experiments are shown in Figs. 15 and 16 and next we explain them.

Fig. 15.

Fig. 15

Comparison of vessel tracking via γSO(3) SR geodesics in SO(3) (green solid lines) in object coordinates and via γSE(2) SR geodesics in SE(2) (red dashed lines) in the planar camera coordinates. Here the planar projection ΓSO(3) of γSO(3) and spatial projection ΓSE(2) of γSE(2) are depicted in the same flat image (Color figure online)

Fig. 16.

Fig. 16

Left: two curves from the experiment in Fig. 15 (right-bottom figure) are depicted with slight shift. The upper curve is a spatial projection ΓSE(2) of the data-driven SR geodesic γSE(2) with depicted (in color) planar curvature κSE(2) on top of the curve. The lower curve ΓSO(3) is the planar projection of the SR geodesic γSO(3) with depicted geodesic curvature κgSO(3) on top of it. Right: three graphs are shown in the same plot: planar curvature κSE(2) of ΓSE(2); geodesic curvature κgSO(3) of spherical projection of γSO(3); planar curvature κSO(3) of ΓSO(3). The effect of considering geodesic curvature κgSO(3) in object coordinates on S2 rather than planar curvature κSO(3) in photo coordinates on projection on R2 is visible (compare the green solid and dashed graphs). A bigger difference comes from using SO(3) SR geometry than SE(2) SR geometry (compare red and green graphs) (Color figure online)

We apply the same scheme as in Sect. 6.2.2, but now we compute data-driven geodesics, where the external cost is induced by image data. Next we explain the construction of the external cost that is applied in all experiments. For the sake of simple comparison, we restrict ourselves to a cost depending on the spherical coordinates only, and we set

G(x,y)=1+VF(Π(x,y))λVF2-1, 63

where we use standard multiscale vesselness [50]

(VF)(X,Y)=e-λ12(X,Y)2β2λ22(X,Y)1-e-λ12(X,Y)+λ22(X,Y)2c2U(λ2(X,Y)),

with λi(X,Y) eigenvalues of the Gaussian Hessian of image F:R2R (maximized over scales) ordered by |λ1(X,Y)|<|λ2(X,Y)|, with β=c=0.3, and with unit step function U(λ)=1,forλ0,0,otherwise.

Here we note that the Gaussian Hessian is given by H(GsF) and computed by Gaussian derivatives [51] at multiscales s=12σ2{2,3,4,5} in term of pixel sizes.

In the experiment in Figure 15, we show that there is a considerable difference between SE(2) SR geodesics and SO(3) SR geodesics. We see that when internal geometry is dominant over the external cost (λ small) the SR geodesics in SO(3) are more stiff than SR geodesics in SE(2), and therefore in the boundary value problem they are less eager to take shortcuts and better follow the vessel structure. In case λ is large (external cost is dominant than the internal geometry), we see only small differences in the overall locations of the SE(2) curves and SO(3) curves. The results are stable w.r.t. choice of 1η2 (which controls the distance from the camera to the eye ball, relative to eye ball radius, recall Fig. 4).

In the next experiment, we measure the curvature of the curves obtained by the vessel tracking method via SE(2) geometry and via SO(3) geometry. For this experiment, we used the values ξ=3,λ=50 and η=2. Although in this case the result of tractography is very similar for the SE(2) and SO(3) curves, we show that there is a considerable difference in their curvature.

Corollary 1

(from Theorem 1) The geodesic curvature of a spherical projection of data-driven geodesic γSO(3)(·) satisfies

κgSO(3)(·)=ξ2X2|γSO(3)(·)WSO(3)X1|γSO(3)(·)WSO(3).

Proof

The first equality in the chain

κgSO(3)(·)=u2(·)u1(·)=ξ2h2(·)h1(·)=ξ2X2|γ(·)(W)X1|γ(·)W

is implied by Eq. (28). The second equality follows from application of PMP to problem Pmec, which gives u1=h1ξ2C2 and u2=h2C2. The third equality follows from the fact that in the points where the Bellman function W is differentiable (almost everywhere in our case) its derivatives are given by components of momentum covector h1=X1(W),h2=X2(W), see [37].

By the same argument, it can be checked (see [31] and [40]) that the planar curvature of spatial projections of SR geodesics in SE(2) satisfies

κSE(2)(·)=ξ2A2|γSE(2)(·)WSE(2)A1|γSE(2)(·)WSE(2),

with A1=cosΘX+sinΘY,A2=Θ basis left-invariant vector fields SE(2).

Thus the curvature analysis can be simply done based on vessel tracking, and this shows the benefit of our algorithm. In Fig. 16, we show an experiment of vessel curvature measurement based on tracking via SO(3) geometry and via SE(2) geometry. For completeness, we added also a comparison with a planar curvature κSO(3)(·) of a planar projection ΓSO(3)(·):=Π(x(·),y(·)) of γSO(3)(·)=(x(·),y(·),θ(·)).

We can see a considerable difference in curvature measurement via SO(3) geometry and SE(2) geometry. It is also seen that the difference between κSO(3) and κgSO(3) is not very significant. Thus we see the importance of including correct spherical geometry in vessel tracking algorithm in retinal images.

Vessel Analysis via SO(3) SR Geometry and SO(3) Riemannian Geometry

Next we address the general benefit of using SR geodesics rather than (isotropic) Riemannian geodesics in the tracking of salient lines (blood vessels) in spherical images. To this end, we show a typical example where the tracking induced by a sub-Riemannian geodesic gives better result than the tracking induced by a Riemannian geodesic. The experiment in Fig. 17 is performed similar to Sect. 6.3, but now we compare the result of vessel tracking via SR geodesics (obtained by SR-FM) and Riemannian geodesics (isotropic metric with ε=1). From this experiment, we see that similarly to the SE(2) case [40] the tracking via Riemannian geometry suffers from incorrect jumps toward nearly parallel neighboring vessels and yields nonsmooth curves, the tracking via SR geometry gives the desirable result.

Fig. 17.

Fig. 17

Comparison of vessel tracking in a spherical image of the retina via SR geodesic (green solid line) and Riemannian geodesic (red dashed line) in SO(3) (Color figure online)

Conclusion

Data-driven sub-Riemannian geodesics in 3D Lie groups are a suitable tool for tractography of blood vessels in retinal imaging. In previous works on the SE(2) case [40, 41], practical advantages have been shown in comparison with the (isotropic) Riemannian case, and geodesic methods in the image domain. However, these models included a SR geometry on SE(2)R2S1 based on lifts of flat images, which does not match the actual object geometry: The retina is spherical rather than planar, cf. Fig. 1, Fig. 3, and Fig. 4. A similar observation holds for models in the psychology of contour perception in human vision [30].

Therefore, for geometric tracking we propose a frame bundle above S2, cf. Fig. 6, instead of a frame bundle above R2. Geometric tracking of geodesics is done along globally optimal data-driven SR geodesics in SO(3) (and their spherical projections) by our new numerical wavefront propagation method. The method was validated for the uniform cost case by comparisons with exact geodesics which we derived in Sect. 3, cf. Figs. 10 and 11. Here, in contrast to the SE(2) case [31], we do not have a scaling homothety. As a result, the parameter ξ has a considerable effect on the geometry, and for ξ=1 we identify the linear case, for ξ>1 we identify the hyperbolic case, and for ξ<1 we identify the elliptic case, cf. Figs. 7 and 9.

For all of these cases, we have computed the first cusp time in Theorem 5 (the first time where the spherical projection of a SR geodesic exhibits a cusp). Also, we have presented new formulas for such “cuspless” SR geodesics in Theorem 6. These formulas only involve a single elliptic integral thanks to spherical arclength parametrization, and for ξ1 our formulas are simpler than the general formulas for SR geodesics in SO(3).

Furthermore, we used a specific parametrization of Lie group SO(3) that allowed us to compare between SR geodesics / wavefronts in SO(3) to SR geodesics / wavefronts in SE(2), cf. Figs. 12 and 13. In our comparison we took into account a standard optical model for the mapping between object coordinates on the retina and camera coordinates in the acquired planar retinal image. In our experiments, the differences between the SO(3) case and the SE(2) case are considerable, both for the case of uniform cost, cf. Fig. 14, and for the data-driven case in the retinal image analysis application, cf. Fig. 15. In general, we see that for realistic parameter settings (in optics) the SO(3) geodesics have a slower variation in curvature and are less eager to take shortcuts, see, e.g., Fig. 15 and 16. Furthermore, there are visible differences between geodesic curvature of data-driven SR geodesics on the sphere and the curvature of their planar projections. As in retinal imaging applications, curvature is considered as a relevant biomarker [911] for detection of diabetic retinopathy and other systemic diseases, the data-driven SR geodesic model in SO(3) is a relevant extension of our data-driven geodesic model in SE(2). Here we restricted ourselves to feasibility studies. More extensive comparisons between SO(3) geodesics and SE(2) geodesics on large retinal imaging benchmark sequences are beyond the scope of this article and are left for future work.

Finally, we note that the computation time for data-driven SR geodesics in SO(3) is exactly the same as for the SE(2) case. Our specific choice of coordinates of SO(3) allowed us to modify the very efficient fast marching approach [41], with a simple replacement of the metric tensor matrix.

Acknowledgements

The research leading to these results has received funding from the European Research Council under the European Community’s Seventh Framework Programme (FP7/2007-2013)/ERC grant Lie Analysis, a.n. 335555. The authors gratefully acknowledge EU-Marie Curie project MANET ag. no. 607643, and RFBR research Project No. 16-31-60083 mol_a_dk for financial support. The publication was supported by the Ministry of Education and Science of the Russian Federation (the Agreement number 02.a03.21.0008). The authors gratefully acknowledge dr. G.R. Sanguinetti and Dr. J.-M. Mirebeau on their efforts on anisotropic fast marching implementation of SR geodesics in SE(2) [41] that allowed for our generalization to the SO(3) case. Furthermore, the authors thank G.R. Sanguinetti on helpful comments and suggestions on earlier versions of this article. We thank Dr. Tos Berendschot for fruitful discussions on retinal imaging and for his encouragement to take into account the spherical nature of the retina in our geometric retinal image processing. The authors thank anonymous reviewers whose valuable comments improved the exposition of this work.

Biographies

A. Mashtakov

received his M.S. in Applied Mathematics and Computer Science at University of Pereslavl in 2009. He received his Ph.D. in Applied Mathematics and Computer Science in PSI RAS in 2013. He was a postdoc at Department of Biomedical Engineering at the TU/e from 2014 till 2016. Currently he is a senior researcher of Control Processes Research Center at Program Systems Institute, Pereslavl-Zalessky (Russian Academy of Sciences). His research interests are geometric control theory, optimal control, control theory on Lie Groups, nonholonomic systems, sub-Riemannian geometry, and their applications in image processing, robotics, and modeling of visual perception.graphic file with name 10851_2017_705_Figa_HTML.jpg

R. Duits

received his M.Sc. degree (cum laude) in Mathematics in 2001 at the TU/e, The Netherlands. He received his Ph.D. degree (cum laude) at the Department of Biomedical Engineering at the TU/e. Currently he is an associate professor at the Department of Applied Mathematics & Computer Science and affiliated at the Biomedical Image Analysis group at the Biomedical Engineering Department. He has received an ERC-StG 2013 personal grant (Lie analysis, no. 335555). His research interests include group theory, functional analysis, differential geometry, PDEs, harmonic analysis, geometric control, and their applications to biomedical imaging and vision.graphic file with name 10851_2017_705_Figb_HTML.jpg

Yu. Sachkov

received his Ph.D. degree in Mathematics from Lomonosov Moscow State University, Russia, in 1992 and Doctor of Science degree from Steklov Mathematical Institute, Moscow, Russia, in 2008. He is Chief of Control Processes Research Center at Program Systems Institute, Pereslavl-Zalessky (Russian Academy of Sciences), and Professor at University of Pereslavl, Russia. His research interests include geometric control theory, sub-Riemannian geometry on Lie groups, and their applications to mechanics, robotics, and vision.graphic file with name 10851_2017_705_Figc_HTML.jpg

E. J. Bekkers

is as a Ph.D. student at the Medical Image Analysis Group at Eindhoven University of Technology (TU/e). He has a former education in Biomedical Engineering (BSc+MSc from TU/e) and Mechanical Engineering (P from TU/e). His PhD project is entitled “Sub-Riemannian Geometry in Retinal Image Analysis” and is part of the academic–industrial research grant NWO Hé-Programme of innovation (co-funded by i-Optics). Within the application of retinal image analysis, the main focus is on the modeling and detection of key anatomical landmarks and the extraction of biomarkers for diabetes research. From a methodological point of view, focus is on the development of image analysis methods based on sub-Riemannian geometry and Lie group analysis (where in particular the Euclidean motion group is considered). His research interests include medical image analysis, differential geometry, convex optimization, and biomarker research.graphic file with name 10851_2017_705_Figd_HTML.jpg

I. Beschastnyi

received his M.S. at Kaliningrad State Technical University in 2011. He was trained in graduate program in Program Systems Institute, Pereslavl-Zalessky (Russian Academy of Sciences) from 2011 till 2014. Currently he is a Ph.D. student at International School of Advanced Studies (SISSA). His research interests include sub-Riemannian geometry on Lie groups and second-order optimality conditions.graphic file with name 10851_2017_705_Fige_HTML.jpg

Appendix 1: Proof of Theorem 1

The function s(t):=0tu1(τ)dτ is differentiable and increasing for t[0,T]; then there exists an inverse function t(s),s[0,l],l=s(T), differentiable and increasing. Notice that dsdt(t)=u1(t), which gives the second equality in (28).

Define R¯(s):=R(t(s)),n(s):=R¯(s)e1,n_(t):=R(t)e1=n(s(t)). From the dynamics of Pmec, we obtain identities

graphic file with name 10851_2017_705_Equ135_HTML.gif

Then the Gauss–Bonnet formula (15) gives

graphic file with name 10851_2017_705_Equ136_HTML.gif

which implies the third equality in (28).

The boundary conditions (27) for the curve n(s) follow from its definition and the boundary conditions for R(t).

Recall that by definition C(R(t))=C(n(s(t))). Since the minimizer R(t) is parameterized by SR arclength, we have C2(R(t))ξ2u12(t)+u22(t)1, whence dtds(s)=1u1(t(s))=C(R(t(s)))ξ2+u22(t(s))u12(t(s))=C(n(s))ξ2+kg2(s), which implies (29) after integration w.r.t. s.

Thus, we can see that the optimization functionals of Pcurve and Pmec coincide:

graphic file with name 10851_2017_705_Equ137_HTML.gif

But also the dynamics coincides, in the following sense. If n~(s),s[0,l~], is a smooth curve on the sphere S2 with the initial conditions n~(0)=e1,n~(0)=e3 and a geodesic curvature k~g(s), then it can be lifted to a curve R~(s) in SO(3) that is a trajectory of control system (17) with the controls u~1(s)1,u~2(s)=k~g(s) and the initial condition R~(0)=Id. The curve R~(s)e1 on S2 has the same initial conditions and geodesic curvature as n~(s), thus R~(s)e1n~(s).

Summing up, since R(t) is a minimizer of Pmec, then its projection n(s) to the sphere S2 is a minimizer of Pcurve.

Appendix 2: Integration of the Hamiltonian System Pmec1

To integrate the Hamiltonian system (39), we follow the idea of V. Jurdjevic [24], where one can employ left invariance and introduce initial rotation D0 of momentum space, such that the initial momentum transforms to h(0)=(0,0,M), solve the problem in this simple case (i.e., to find the trajectory R~(t) that corresponds to h(0)=(0,0,M)), and obtain general solution R(t) by a backward transformation R(t)=D0-1R~(t).

Proof of Theorem 4.1

Substitution of (36) to (31) gives

graphic file with name 10851_2017_705_Equ138_HTML.gif

The Hamiltonian system can be written as a Lax type of system [19]

graphic file with name 10851_2017_705_Equ64_HTML.gif 64
. 65

Here P(t)=-h1(t)ω2+h2(t)ω1+h3(t)ω3 is a momentum covector expressed in the basis ωi, dual to Ai, i.e., ωi,Aj=δij. The vertical part (64) has P(t)=R-1(t)P(0)R(t) as a solution. Thus, the Hamiltonian system (64)—(65) preserves the norm of momentum covector h(t)=(h2(t),-h1(t),h3(t)), i.e., the value M2=h12(t)+h22(t)+h32(t), whose isosurface is a coadjoint orbit of SO(3). The Killing form allows to identify so(3) and so(3) (see [19]), and by isomorphism (11), we write

P(t)=R-1(t)P(0)R(t)h(t)=h(0)R(t). 66

Next we apply a left action of SO(3) on solution curve R(·)

R~(·)=D0R(·), 67

where D0 is chosen such that the initial momentum matrix P(0) and initial covector h(0)=(-h2(0),h1(0),h3(0)) are reduced to a simple form

P(0)=MA3andh(0)=(0,0,M), 68

as the nicest possible representant within the coadjoint orbit of SO(3).

Next we represent the rotation matrix R~ in form (6), i.e., R~=ey~A3e-x~A2eθ~A1, where we parameterize the rotations via 3 angles x~[-π2,π2],y~R/{2πZ},θ~R/{2πZ}.

Substitution of (68) in (66) gives the momentum matrix

graphic file with name 10851_2017_705_Equ139_HTML.gif

and the equivalent relation for the momentum covector

(h2,-h1,h3)=(0,0,M)cosx~0-sinx~010sinx~0cosx~1000cosθ~-sinθ~0sinθ~cosθ~.

By multiplying the matrices in the right-hand side, we obtain

h2(t)=Msinx~(t),-h1(t)=Msinθ~(t)cosx~(t),h3(t)=Mcosθ~(t)cosx~(t). 69

From (69) we immediately have θ~(t)=argh3(t)-ih1(t), and since x~(t)[-π2,π2]cosx~(t)0, we can also express x~(t)=argh12(t)+h32(t)+ih2(t).

To obtain y~(t) first notice that due to left invariance, the matrix R~ satisfies the same equation as R, i.e., R~˙=R~Ω. Thus x~,y~,θ~ satisfy the same equations as x,y,θ, i.e., the horizontal part of (39). Thus we have

y~˙(t)=-h1(t)ξ2secx~(t)sinθ~(t), 70

with the initial condition y~(0)=0 following from R~(0)=D0.

By virtue of (69), we can express (70) as

y~˙(t)=Mξ2h12(t)h12(t)+h32(t)y~(t)=Mξ20th12(τ)h12(τ)+h32(τ)dτ.

Further, since M2=h12(t)+h22(t)+h32(t)=const, we have

y~(t)=Mξ2t-0th32(τ)M2-h22(τ)dτ.

Thus we obtained solution for x~(t),y~(t),θ~(t). To finish the proof, it only remains to obtain solution for x(t),y(t),θ(t). Recall that the expression (46) for R(t) follows from orthogonality of matrix D0, i.e., D0-1=D0T, and parameterization of R(t) by x(t),y(t),θ(t) as R(t)=ey(t)A3e-x(t)A2eθ(t)A1.

To find x(t),y(t),θ(t) notice that action of R(t) on e1 and R-1(t)=RT(t) on e3 gives

(R11(t),R21(t),R31(t))T=(cosx(t)cosy(t),cosx(t)siny(t),sinx(t))T, 71
(R31(t),R32(t),R33(t))T=(sinx(t),cosx(t)sinθ(t),cosθ(t)cosx(t))T. 72

Since x(t)[-π2,π2], first two equations in (45) follow from (71) and the third equation in (45) follows from (72).

Appendix 3: Proof of Theorem 5

Recall that we consider the case (see Remark 4) where the curve starts from e1S2 and goes in the direction of upper half of the sphere with tangent vector e3. Therefore, we have h1(0)=u1(0)0,h1(0)>0.

Via the Hamiltonian H(s)=ξ-2h12(s)+h22(s)2=12, we express h1(s)=ξ1-h22(s)=χ2+11-h22(s). As a result, one has

h1(s)=0h2(s)=±1. 73

In the linear case χ=0, Eq. (73) reads as h20+h30s=±1, that has the minimal positive root

smaxLh20,h30=sgn(h30)-h20h30.

In the elliptic and the hyperbolic cases, we need to find a minimal positive root of

h20coshsχ+h30χsinhsχ=±1. 74

In the elliptic case, we have χ=ia, where a=1-ξ2(0,1), yielding solution

graphic file with name 10851_2017_705_Equ140_HTML.gif

Denote κ=(h30)2+1-(h20)2χ2. Notice that when (h30)2a2+(h20)2<1κ<0 we have smax(h(0))= and therefore we have cuspless trajectory of infinite SR length, recall (25). This fact is also clear from phase portrait of dynamic of vertical part (52), see Fig. 7 (bottom, left), where intersection of the integral curve with the red straight line indicates the moment, when cusp appears. We see that some geodesics have no cusps in their spherical projection up to infinity. Notice that since SO(3) is compact, it has bounded diameter (i.e., there exists D>0, such that the SR distance between any two elements of SO(3) does not exceed D). Thus in contrast to SE(2) group, where every cuspless geodesic is optimal (see [31]), we observe that there exist nonoptimal cuspless geodesics in SO(3) group.

In the hyperbolic case χ=a=ξ2-1,ξ>1, we have κ0 and the minimal positive root of (74) reads as

graphic file with name 10851_2017_705_Equ141_HTML.gif

Finally, using the parameter χ=ξ2-1, we have a single formula (54) for all cases.

Appendix 4: Outline of the Proof of Theorem 7

By the result in [35, Thm 11.15], points gSO(3) where the SR distance dSO(3)0(e,·) given by (56) is nonsmooth are either conjugate points, Maxwell points, or abnormal points. So by assumption (and absence of abnormal geodesics due to a 2-bracket generating distribution Δ, cf. [37, ch:20.5.1]), we see that dSO(3)0(e,·) is smooth at {γ0(τ)|0<τ1}. As a result, the mapping

(0,1]τdSO(3)0(e,γ0(τ))R+

is smooth as it is a smooth composition of maps. Similarly for the Riemannian case ε>0, recall (59), we have by the assumptions that

(0,1]τdSO(3)ε(e,γε(τ))R+

is smooth for all ε>0.

Let G-1 denote the inverse metric tensor associated with G given by (57), and let Gε-1 denote the inverse metric tensor associated with Gε given by (60).

Now we rely on standard results [7, 12] on backtracking of optimal Riemannian geodesics in Riemannian manifolds. This means that we find the smooth optimal geodesics via an intrinsic gradient descent on the Riemannian distance map Wε(g):=dSO(3)ε(g,e). This yields the identity

γ˙ε(τ)=Wε(g)Gε-1dWε(γε(τ)), 75

where Wε is the unique viscosity solution [7, 12] of the corresponding Riemannian eikonal equation given by

Gεg(Gεg)-1dWε(g),(Gεg)-1dWε(g)=1,forge,andWε(e)=0. 76

Next we transfer these standard results toward the sub-Riemannian case, by a limiting procedure. Firstly, we note that following a fully tangential approach to [36, App.A,Thm.2] yields (see Remark 18 below) the following respectively pointwise and uniform convergence:

limε0Wε(g)=W0(g),andγεγ0,asε0. 77

Secondly, one has for any smooth function f:SO(3)R that the intrinsic gradients converge:

limε0Gε-1df(g)=G-1df(g)limε0ξ-2X1gfX1g+X2gfX2g+ε2ξ2X3gfX3g=ξ-2X1gfX1g+X2gfX2g,for allgSO(3). 78

Thirdly, as γε and γ0 are solutions to the Hamiltonian system of the Pontryagin Maximum Principle, the trajectories are continuously depending on ε>0 and so are their derivatives. As a result, we have

γ˙0(τ)=limε0γ˙ε(τ)=(75)limε0Wε(g)(Gε-1dWε)(γε(τ))=(77,78)W(g)G-1dlimε0Wεlimε0γε(τ)=(77)W(g)G-1dW(γ0(τ)). 79

Furthermore, from (76) it follows that

1=limε0GεgGεg-1dWε(g),Gεg-1dWε(g)=GgGg-1dW(g),Gg-1dW(g)

where we note that the third term under the square root, after substitution of (78), vanishes. Finally, the viscosity solution property [7, 12] is also naturally carried over due to continuous ε dependence of the Hamiltonian and the convergences (77), (79).

Remark 18

The idea for the convergence (77) which is tangential to the SE(2)=R2S1 case considered in [36, App.A,Thm.2] is based on a similar convergence result by Jean-Marie Mirebeau & Chen Da of a related elastica model [48, app.A]. It relies on closeness of controllable paths [48, Cor.A.5] and Arzela-Ascoli’s theorem. Another ingredient is the continuity of the mapping of the pair (ε,g) onto the corresponding indicatrix Bε(g):={vTg(SO(3))|Gg(v,v)1}, i.e., the continuity of

[0,ϵ0]×SO(3)(ε,g)Bε(g)P(Tg(SO(3))),

where the powerset P(Tg(SO(3))) of each tangent space Tg(SO(3))R3 is equipped with the metric topology induced by the Hausdorff distance. The proof of this continuity is straightforward and is therefore omitted here.

The SR-eikonal and Backtracking Equations for Cuspless SR Geodesics

Now in this article, we are primarily interested in the SR geodesics whose spherical projection does not have cusps. This can be taken into account by modifying the standard SR-eikonal equation (62) as

max(0,X1|g(W))2ξ2+X2|g(W)2=C(g),forge,W(e)=0, 80

and backtracking equation (61) as

graphic file with name 10851_2017_705_Equ81_HTML.gif 81

where u1(t)=max(0,X1|γb(t)(W))ξ2C2(γb(t)),u2(t)=X2|γb(t)(W)C2(γb(t)), and where the system is integrated for t[0,W(g1)].

The idea behind this is that for cuspless SR geodesics one has u1 positive which holds by if the corresponding momentum component h1=X1(W) is positive. Note that in the eikonal equation one substitutes momentum h=dW into the Hamiltonian to achieve equidistant wavefront propagation [12]. For further details and analysis on the positive control restriction on a similar problem on SE(2), see [36]. Similar analysis benefits may be expected on the SO(3) case, but this is beyond the scope of this article.

Appendix 5: Comparison of the SE(2) and SO(3) Geodesics in the Image Plane

We organize the comparison in the following way:

  1. Choose an initial condition V0=(X0,Y0,Θ0) and a terminal condition V1=(X1,Y1,Θ1) in
    graphic file with name 10851_2017_705_Equ142_HTML.gif
    where Xmax=Ymax=-Xmin=-Ymin=(c+a)tanψmax=149105tanπ8. These values are obtained from schematic eye model for η=1, recall Sect. 1.1, where ψmax=π8 is a maximum scanning angle via a standard fundus cameras.
  2. Compute the SR distance Inline graphic in the volume of interest DV via SR-FM-SE(2) (sub-Riemannian fast marching in SE(2), see [41]).

  3. Find via backtracking in SE(2) (see [41]) a geodesic γSE(2)(·) satisfying γSE(2)(0)=V0 and γSE(2)(T)=V1, with T=WSE(2)(V1).

  4. Find the initial condition ν0=(x0,y0,θ0) and the terminal condition ν1=(x1,y1,θ1) in SO(3), obtained from V0 and V1 via planar projection Π-1, recall Eq. (5), as (xi,yi)=Π-1(Xi,Yi)=:(Φ1(X,Y),Φ2(X,Y)) and
    θi=argx˙(Xi,Yi,Θi)+icosΦ1(Xi,Yi)y˙(Xi,Yi,Θi),
    where
    x˙(Xi,Yi,Θi):=Φ1X|(Xi,Yi)cosΘi+Φ1Y|(Xi,Yi)sinΘi,y˙(Xi,Yi,Θi):=Φ2X|(Xi,Yi)cosΘi+Φ2Y|(Xi,Yi)sinΘi.
  5. Compute the SR distance WSO(3)(ν)=dSO(3)(ν0,ν) in the domain νD=[xmin,xmax]×[ymin,ymax]×[-π,π] via SR-FM in SO(3). Here we set xmax=ymax=-xmin=-ymin=0.63, recall Eq. (1).

  6. Find via backtracking (61) a geodesic γSO(3)(·) satisfying γSO(3)(0)=ν0 and γSO(3)(T)=ν1.

  7. Plot in the image plane both the spatial projection ΓSE(2)(·)=(X(·),Y(·)) of the geodesic γSE(2)(·) and the planar projection ΓSO(3)(·)=Π(x(·),y(·)) of the geodesic γSO(3)(·).

Footnotes

1

There is small difference between these two axes (c.f. Fig. 33 [42]) which we neglect in our basic model.

2

Not to be confused with the exponential map from Lie algebra to Lie group.

3

In previous works [39, 40], Xi was denoted by Ai

4

By singular points, we mean either conjugate or Maxwell points (recall Remark 12).

Contributor Information

A. Mashtakov, Phone: +7-965-216-81-04, Email: alexey.mashtakov@gmail.com

R. Duits, Phone: +31-40-2472859, Email: R.Duits@tue.nl

Yu. Sachkov, Phone: +007-4852-695-228, Email: sachkov@sys.botik.ru

E. J. Bekkers, Phone: +31-40-2473037, Email: e.j.bekkers@tue.nl

I. Beschastnyi, Phone: +39-40-3787442, Email: i.beschastnyi@gmail.com

References

  • 1.Peyré G, Péchaud M, Keriven R, Cohen LD. Geodesic methods in computer vision and graphics. Found. Trends. Comp. Comput. Graph. Vis. 2010;5(34):197–397. [Google Scholar]
  • 2.Sethian JA. Level Set Methods and Fast Marching Methods. Cambridge: Cambridge University Press; 1999. [Google Scholar]
  • 3.Caselles V, Kimmel R, Sapiro G. Geodesic active contours. Int. J. Comp. Vis. 1997;22(1):61–79. doi: 10.1023/A:1007979827043. [DOI] [Google Scholar]
  • 4.Osher S, Fedkiw RP. Level Set Methods and Dynamic Implicit Surfaces. New York: Applied Mathematical Science, Springer; 2003. [Google Scholar]
  • 5.Mirebeau J-M. Anisotropic fast-marching on cartesian grids using Lattice Basis Reduction. SIAM J. Num. Anal. 2014;52(4):1573. doi: 10.1137/120861667. [DOI] [Google Scholar]
  • 6.Ikram MK, Ong YT, Cheung CY, Wong TY. Retinal vascular caliber measurements: clinical significance, current knowledge and future perspectives. Ophthalmologica. 2013;229(3):125–136. doi: 10.1159/000342158. [DOI] [PubMed] [Google Scholar]
  • 7.Lions, P.L.: Generalized Solutions of Hamilton–Jacobi Equations. Pitman, p. 317 (1982)
  • 8.Crandall MG, Lions PL. Viscosity solutions of Hamilton–Jacobi equations. Trans. Am. Math. Soc. 1983;277(1):1–42. doi: 10.1090/S0002-9947-1983-0690039-8. [DOI] [Google Scholar]
  • 9.Sasongko MB, Wong TY, Nguyen TT, Cheung CY, Shaw JE, Wang JJ. Retinal vascular tortuosity in persons with diabetes and diabetic retinopathy. Diabetologia. 2011;54:2409–2416. doi: 10.1007/s00125-011-2200-y. [DOI] [PubMed] [Google Scholar]
  • 10.Kalitzeos AA, Lip GY, Heitmar R. Retinal vessel tortuosity measures and their applications. Exp. Eye Res. 2013;106:40–46. doi: 10.1016/j.exer.2012.10.015. [DOI] [PubMed] [Google Scholar]
  • 11.Bekkers, E., Zhang, J., Duits, R., ter Haar Romeny, B.: Curvature based biomarkers for diabetic retinopathy via exponential curve fits in SE(2). In: Trucco, E., Chen, X., Garvin, M.K., Liu, J.J., Frank, X.Y. (eds.) Proceedings of the Ophthalmic Medical Image Analysis Second International Workshop, OMIA 2015, Held in Conjunction with MICCAI 2015, Munchen, Germany, October 9, 2015, pp. 113–120. Iowa Research Online (2015)
  • 12.Evans, L.C.: Partial Differential Equations. Graduate Studies in Mathematics vol. 19, AMS, Providence (1998)
  • 13.Petitot J. The neurogeometry of pinwheels as a sub-Riemannian contact structure. J. Physiol. Paris. 2003;97:265–309. doi: 10.1016/j.jphysparis.2003.10.010. [DOI] [PubMed] [Google Scholar]
  • 14.Citti G, Sarti A. A cortical based model of perceptual completion in the roto-translation space. J. Math. Imaging Vis. 2006;24:307–326. doi: 10.1007/s10851-005-3630-2. [DOI] [Google Scholar]
  • 15.Boscain U, Rossi F. Invariant Carnot–Caratheodory metrics on S3,SO(3),SL(2) and lens spaces, SIAM. J. Control Optim. 2008;47:1851–1878. doi: 10.1137/070703727. [DOI] [Google Scholar]
  • 16.Boscain, U., Rossi, F.: Projective Reed-Shepp car on S2 with quadratic cost. ESAIM: COCV 16, 275–297 (2010)
  • 17.Boscain U, Gauthier J-P, Chertovskih R, Remizov A. Hypoelliptic diffusion and human vision: a semidiscrete new twist. SIAM J. Imaging Sci. 2014;7(2):669–695. doi: 10.1137/130924731. [DOI] [Google Scholar]
  • 18.Bekkers, E., Duits, R., Berendschot, T., Romeny, B.H.: A multi-orientation analysis approach to retinal vessel tracking. J. Math. Imaging Vis. (2014)
  • 19.Beschastnyi, I., Sachkov, Y.: Sub-Riemannian and almost-Riemannian geodesics on SO(3) and S2, ArXiv: 1409.1559, (2014)
  • 20.Berestovskii V. Geodesics of a left-invariant nonholonomic Riemannian metric on the group of motions of the Euclidean plane. Sib. Math. J. 1994;35(6):1083–1088. doi: 10.1007/BF02104709. [DOI] [Google Scholar]
  • 21.Berestovskii V, Zubareva I. Sub-Riemannian distance in the Lie groups SU(2) and SO(3) Sib. Adv. Math. 2016;26(2):77–89. doi: 10.3103/S1055134416020012. [DOI] [Google Scholar]
  • 22.Bonnard B, Cots O, Pomet J-B, Shcherbakova N. Riemannian metrics on 2D-manifolds related to the Euler–Poinsot rigid body motion. ESAIM: Control Optim. Calc. Var. 2014;20:864–893. doi: 10.1051/cocv/2013087. [DOI] [Google Scholar]
  • 23.Bonnard, B., Chyba M.: Two applications of geometric optimal control to the dynamics of spin particle, 2014, Preprint HAL Id: hal-00956828
  • 24.Jurdjevic V. Geometric Control Theory, Cambridge Studies in Advanced Mathematics (No. 52) Cambridge: Cambridge University Press; 1996. [Google Scholar]
  • 25.Kruglikov, B., Vollmer, A., Lukes-Gerakopoulos, G.: On integrability of certain rank 2 sub-Riemannian structures. ArXiv: 1507.03082 (2015)
  • 26.Mashtakov AP, Ardentov AA, Sachkov YL. Parallel algorithm and software for image inpainting via sub-Riemannian minimizers on the group of rototranslations. Numer. Math. Theory Methods Appl. 2013;6(1):95–115. [Google Scholar]
  • 27.Mashtakov AP, Sachkov YuL. Superintegrability of left-invariant sub-Riemannian structures on unimodular three-dimensional lie groups. Differ. Equ. 2015;51(11):1476–1483. doi: 10.1134/S0012266115110087. [DOI] [Google Scholar]
  • 28.Sachkov, Yu.L.: Cut locus and optimal synthesis in the sub-Riemannian problem on the group of motions of a plane. ESAIM: COCV, 17, 293–321 (2011)
  • 29.Moiseev, I., Sachkov, Yu.L.: Maxwell strata in sub-Riemannian problem on the group of motions of a plane. ESAIM: COCV 16, 380–399 (2010)
  • 30.Boscain, U., Duits, R., Rossi, F., Sachkov, Y.L.: Curve cuspless reconstruction via sub-Riemannian geometry. ESAIM: Control Optim. Calc. Var. 20, 748–770 (2014). doi:10.1051/cocv/2013082
  • 31.Duits, R., Boscain, U., Rossi, F., Sachkov, Y.L.: Association Fields via Cuspless Sub-Riemannian Geodesics in SE(2). JMIV 49(2), 384–417 (2014). doi:10.1007/s10851-013-0475-y, http://bmia.bmt.tue.nl/people/RDuits/cusp [DOI] [PMC free article] [PubMed]
  • 32.Duits R, Ghosh A, Dela Haije TCJ, Mashtakov A. On sub-Riemannian geodesics in SE(3) whose spatial projections do not have cusps. J. Dyn. Control Syst. 2016;22(4):771–805. doi: 10.1007/s10883-016-9329-4. [DOI] [Google Scholar]
  • 33.Montgomery, R.: A Tour of Subriemannian Geometries, Their Geodesics and Applications. Mathematical Surveys and Monographs (2002)
  • 34.Agrachev AA. Exponential mappings for contact sub-Riemannian structures. J. Dyn. Control Syst. 1996;2(3):321–358. doi: 10.1007/BF02269423. [DOI] [Google Scholar]
  • 35.Agrachev, A.A., Barilari, D., Boscain, U.: Introduction to Riemannian and Sub-Riemannian Geometry from the Hamiltonian Viewpoint. Preprint SISSA 09/2012/M (2016)
  • 36.Duits, R., Meesters, S., Mirebeau, J.M., Portegies, J.: Optimal paths for variants of the 2D and 3D Reeds-Shepp car with applications in image analysis. ArXiv:1612.06137, (2016) [DOI] [PMC free article] [PubMed]
  • 37.Agrachev AA, Sachkov YuL. Control Theory from the Geometric Viewpoint. New York: Springer; 2004. [Google Scholar]
  • 38.Duits, R., Ghosh, A., Dela Haije, T.C.J., Sachkov, Y.L.: Cuspless sub-Riemannian geodesics within the Euclidean motion group SE(d). In: Neuromathematics of Vision, Springer Series Lecture Notes in Morphogenesis, vol 1, pp. 173–240 (2014)
  • 39.Bekkers, E.J., Duits, R, Mashtakov, A., Sanguinetti, G.R.: (joint main authors). Data-driven sub-Riemannian geodesics in SE(2). In: Aujol, Nikolova, Papadakis (eds.)Proceedings of SSVM 2015, LNCS 9087, pp. 613–625 (2015)
  • 40.Bekkers E.J., Duits R., Mashtakov A., Sanguinetti, G.R.: (joint main authors). A PDE approach to data-driven sub-Riemannian geodesics in SE(2). SIAM J. Imaging Sci. 8(4), 2740–2770 (2015)
  • 41.Sanguinetti, G., Duits, R., Bekkers, E., Janssen, M.H.J., Mashtakov, A., Mirebeau, J.M.: Sub-Riemannian fast marching in SE(2). In: Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications. Lecture Notes in Computer Science, vol. 9423, pp. 366–374 (2015)
  • 42.American Academy of Ophthalmology, Clinical Optics, 2013–2014. Basic and Clinical Science Course. American Academy of Ophthalmology, San Francisco (2013)
  • 43.Rouy E, Tourin A. A viscosity solutions approach to shape-from-shading. SIAM J. Num. Anal. 1992;29:867–884. doi: 10.1137/0729053. [DOI] [Google Scholar]
  • 44.Calin O, Chang D-C, Markina I. Sub-Riemannian geometry on the sphere S3. Can. J. Math. 2009;61(4):721–739. doi: 10.4153/CJM-2009-039-2. [DOI] [Google Scholar]
  • 45.Chang, D.-C., Markina, I., Vasilev, A.: Sub-Riemannian geometry on the 3-D sphere: complex analysis and operator theory, 3, pp. 361–377 (2009)
  • 46.Field DJ, Hayes A, Hess R. Contour integration by the human visual system: evidence for a local “association field”. Vis. Res. 1993;33(2):173–193. doi: 10.1016/0042-6989(93)90156-Q. [DOI] [PubMed] [Google Scholar]
  • 47.Chen, D., Mirebeau, J.-M., Cohen, L.D.: Global minimum for curvature penalized minimal path method. In: Xie, X., Jones, M.W., Tam, G.K.L. (eds.) Proceedings of the British Machine Vision Conference (BMVC), pp. 86.1-86.12. BMVA Press, Guildford (2015)
  • 48.Chen, D.: New Minimal Path Models for Tubular Structure Extraction and Image Segmentation. PHD thesis, École Doctorale de Dauphine Paris, (2016)
  • 49.Rifford, L.: Sub-Riemannian geometry and optimal transport. Springer Briefs in Mathematics. Springer International Publishing, New York (2014)
  • 50.Frangi, A., Niessen, W., Vincken, K., Viergever, M.: Multiscale vessel enhancement filtering. In Proc. of the MICCAI, Lecture Notes in Computer Science, Cambridge, pp. 130-137, (1998)
  • 51.ter Haar Romeny, B.M.: Front-End Vision and Multi-Scale Image Analysis. Springer, 484 pp, (2004)

Articles from Journal of Mathematical Imaging and Vision are provided here courtesy of Springer

RESOURCES