User:Mim.cis/sandbox/Diffeomorphometry

Diffeomorphometry is the metric study of imagery, shape and form in the discipline of Computational anatomy (CA) in medical imaging. The study of images in computational anatomy rely on high-dimensional diffeomorphism groups $$ \varphi \in \operatorname{Diff}_V $$ which generate orbits of the form  $$ \mathcal{I} \doteq \{ \varphi \cdot I \mid \varphi \in \operatorname{Diff}_V \} $$, in which images $$ I \in \mathcal{I} $$ can be dense scalar magnetic resonce or computed axial tomography images. For deformable shapes these are the collection of manifolds $$ \mathcal{M} \doteq \{ \varphi \cdot M \mid \varphi \in \operatorname{Diff}_V \} $$, points, curves and surfaces. In CA, these orbits are in general considered smooth Riemannian manifold s since at every point of the manifold $$ I \in \mathcal{I}, M \in \mathcal{M} $$ there is an inner product inducing the norm $$ \| \cdot \|_I, \| \cdot \|_M $$ on the tangent space that varies smoothly from point to point in the manifolds. This is generated by viewing the group of diffeomorphisms $$ \varphi \in \operatorname{Diff}_V $$ as a Riemannian manifold with $$ \| \cdot \|_\varphi $$,  associated to the tangent space at  $$ \varphi \in\operatorname{Diff}_V $$. This induces the norm and metric on the orbits of images and or shape manifolds under the action from the group of diffeomorphisms. The metric is constructed as the shortest length flow of diffeomorphisms connecting one image or shape to another.

The study of metrics on groups of diffeomorphisms and the study of metrics between manifolds and surfaces has been an area of significant investigation. In Computational anatomy, the diffeomorphometry metric measures how close and far two shapes or images are from each other. Informally, the metric length is the shortest length or geodesic flow which carries one coordinate system into the other.

Oftentimes, the familiar Euclidean metric is not directly applicable because the patterns of shapes and images don't form a vector space. In the Riemannian orbit model of Computational anatomy, diffeomorphisms acting on the forms $$\phi \cdot I \in \mathcal {I}, \phi \in Diff_V, M \in \mathcal{M}$$ don't act linearly. There are many ways to define metrics, and for the sets associated to shapes the Hausdorff metric is another. The method we use to induce the Riemannian metric is used to induce the metric on the orbit of shapes by defining it in terms of the metric length between diffeomorphic coordinate system transformations of the flows. Measuring the lengths of the geodesic flow between coordinates systems in the orbit of shapes is called diffeomorphometry.

The diffeomorphisms group generated as Lagrangian and Eulerian flows
The diffeomorphisms in computational anatomy are generated to satisfy the Lagrangian and Eulerian specification of the flow fields, $$ \varphi_t, t \in [0,1] $$, generated via the ordinary differential equation

with the Eulerian vector fields $$ v \doteq (v_1,v_2,v_3) $$ in $$ {\mathbb R}^3   $$  for $$v_t = \dot \varphi_t \circ \varphi_t^{-1}, t \in [0,1]$$, with the inverse for the flow given by

and the $$3 \times 3$$ Jacobian matrix for flows in $$\mathbb{R}^3$$ given as $$ \ D\varphi \doteq \left(\frac{\partial \varphi_i}{\partial x_j}\right). $$

To ensure smooth flows of diffeomorphisms with inverse, the vector fields $$  {\mathbb R}^3   $$ must be at least 1-time continuously differentiable in space  which are modelled as elements of the Hilbert space  $$(V, \| \cdot \|_V )$$ using the Sobolev embedding theorems so that each element $$v_i \in H_0^3, i=1,2,3,$$ has 3-square-integrable derivatives thusly implies $$(V, \| \cdot \|_V )$$ embeds smoothly in 1-time continuously differentiable functions. The diffeomorphism group are flows with vector fields absolutely integrable in Sobolev norm:

The Riemannian orbit model
Shapes in Computational Anatomy (CA) are studied via the use of diffeomorphic mapping for establishing correspondences between anatomical coordinate systems. In this setting, 3-dimensional medical images are modelled as diffemorphic transformations of some exemplar, termed the template $$ I_{temp} $$, resulting in the observed images to be elements of the random orbit model of CA. For images these are defined as $$ I \in \mathcal {I} \doteq \{ I = I_{temp} \circ \varphi, \varphi \in \operatorname{Diff}_V \} $$, with for charts representing sub-manifolds denoted as $$\mathcal{M} \doteq \{ \varphi \cdot M_{temp} : \varphi \in \operatorname{Diff}_V \}$$.

The Riemannian metric
The orbit of shapes and forms in Computational Anatomy are generated by the group action $$\mathcal{I} \doteq \{ \varphi \cdot I : \varphi \in \operatorname{Diff}_V \}$$, $$\mathcal{M} \doteq \{ \varphi \cdot M : \varphi \in \operatorname{Diff}_V \}$$. These are made into a Riemannian orbits by introducing a metric associated to each point and associated tangent space. For this a metric is defined on the group which induces the metric on the orbit. Take as the metric for Computational anatomy at each element of the tangent space $$\varphi \in \operatorname{Diff}_V$$ in the group of diffeomorphisms
 * $$ \| \dot \varphi \|_\varphi \doteq \| \dot \varphi \circ \varphi^{-1} \|_V=\| v \|_V $$,

with the vector fields modelled to be in a Hilbert space with the norm in the Hilbert space $$(V, \| \cdot \|_V )$$. We model $$V$$ as a reproducing kernel Hilbert space (RKHS) defined by a 1-1, differential operator $$ A: V \rightarrow V^* $$, where $$ V^*  $$ is the dual-space. In general,  $$ \sigma \doteq Av \in V^* $$ is a generalized function or distribution, the linear form associated to the inner-product and norm for generalized functions are interpreted by integration by parts according to for $$v,w \in V$$,
 * $$ \langle v, w \rangle_V \doteq \int_X A v \cdot w \, dx, \ \| v\|_V^2 \doteq \int_X A v \cdot v \, dx, \ v,w \in V \.

$$ When $$ Av \doteq \mu dx $$, a vector density, $$\int Av \cdot v dx \doteq \int \mu \cdot v dx$$.

The differential operator is selected so that the Green's kernel associated to the inverse is sufficiently smooth so that the vector fields support 1-continuous derivative. The Sobolev embedding theorem arguments were made in demonstrating that 1-continuous derivative is required for smooth flows. The Green's operator generated from the Green's function(scalar case) associated to the differential operator smooths. For proper choice of $$A$$ then $$ (V,\| \cdot \|_V) $$ is an RKHS with the operator $$ K = A^{-1}: V^* \rightarrow V $$. The Green's kernels associated to the differential operator smooths since since for controlling enough derivatives in the square-integral sense the kernel $$ k(\cdot,\cdot) $$ is continuously differentiable in both variables implying


 * $$ K Av (x)_i \doteq \sum_j \int_{{\mathbb R}^3} k_{ij}(x,y) Av_j(y) dy \in V \.

$$

The right-invariant metric on diffeomorphisms
The metric on the group of diffeomorphisms is defined by the distance as defined on pairs of elements in the group of diffeomorphisms according toThis distance provides a right-invariant metric of diffeomorphometry, invariant to reparameterization of space since for all $$ \phi \in \operatorname{Diff}_V $$,
 * $$ d_{\operatorname{Diff}_V}(\psi, \varphi) = d_{\operatorname{Diff}_V}(\psi \circ \phi, \varphi \circ \phi).$$

The metric on shapes and forms
The distance on images, $$ d_{\mathcal{I}}:\mathcal{I} \times \mathcal{I}\rightarrow \R^+ $$,

The distance on shapes and forms, $$ d_{\mathcal{M}}:\mathcal{M} \times \mathcal{M}\rightarrow \R^+ $$,

The metric on geodesic flows of landmarks, surfaces, and volumes within the orbit
For calculating the metric, the geodesics are a dynamical system, the flow of coordinates $$ t \mapsto \phi_t \in \operatorname{Diff}_V $$ and the control the vector field $$ t \mapsto v_t \in V$$ related via $$ \dot \phi_t = v_t \cdot \phi_t,\phi_0=id. $$ The Hamiltonian view reparameterizes the momentum distribution $$ Av \in V^* $$ in terms of the Hamiltonian momentum, a Lagrange multiplier $$ p: \dot \phi \mapsto (p\mid\dot \phi) $$ constraining the Lagrangian velocity $$ \dot \phi_t = v_t \circ \phi_t$$.accordingly:

H(\phi_t,p_t,v_t)=\int_X p_t \cdot (v_t \circ \phi_t) dx-\frac{1}{2}\int_X Av_t \cdot v_t dx .$$ The Pontryagin maximum principle gives the Hamiltonian $$ H(\phi_t,p_t) \doteq \max_v H( \phi_t, p_t,v) \. $$ The optimizing vector field $$v_t \doteq \arg max_{v} H(\phi_t,p_t,v)$$ with dynamics $$ \dot \phi_t = \frac{\partial H( \phi_t, p_t)}{\partial p}, \dot p_t = -\frac{\partial H(\phi_t,p_t)}{\partial \phi} $$. Along the geodesic the Hamiltonian is constant : $$H(\phi_t,p_t) = H(id,p_0)=\frac{1}{2} \int_X p_0 \cdot v_0 dx $$. The metric distance between coordinate systems connected via the geodesic determined by the induced distance between identity and group element:
 * $$d_{Diff_V}(id,\varphi) =\| v_0 \|_V = \sqrt{2H(id,p_0)}$$

Landmark or pointset geodesics


For Landmarks, $$ x_i, i=1,\dots,n$$, the Hamiltonian momentum $$ p(i), i=1,\dots,n$$ with Hamiltonian dynamics taking the form  $$ H(\phi_t,p_t) =\frac{1}{2}\textstyle \sum_j \sum_i \displaystyle  p_t(i)\cdot K(\phi_t (x_i),\phi_t (x_j)) p_t(j) $$ with

\begin{cases} v_t = \textstyle \sum_{i} \displaystyle  K(\cdot, \phi_t (x_i)) p_t(i) , \ \\ \dot p_t (i) = - (Dv_t)^T_{|_{\phi_t(x_i)}} p_t(i), i=1,2,\dot, n \\ \end{cases} $$
 * The metric between landmarks $$

d^2 =\textstyle \sum_i p_0(i)\cdot \sum_j \displaystyle K(x_i,x_j) p_0(j). $$ The dynamics associated to these geodesics is shown in the accompanying figure.

Surface geodesics
For surfaces, the Hamiltonian momentum is defined across the surface has Hamiltonian$$H(\phi_t,p_t) =\frac{1}{2} \int_U \int_U p_t(u)\cdot K(\phi_t (m(u)), \phi_t (m(v))) p_t(v) \, du \, dv $$ and dnamics

\begin{cases} v_t= \textstyle \int_U \displaystyle K(\cdot, \phi_t ( m(u)))p_t(u)\,du \ , \\ \dot p_t(u) = - (Dv_t)^T_{|_{\phi_t(m(u))} } p_t(u), u \in U \end{cases} $$
 * The metric between surface coordinates $$d^2 = (p_0 \mid v_0) =\int_U p_0(u)\cdot \int_U K(m(u), m(u^\prime)) p_0(u^\prime) \, du \, du^\prime $$

Volume geodesics
For volumes the Hamiltonian $$ H(\phi_t,p_t) = \frac{1}{2}\int_{{\mathbb R}^3} \int_{{\mathbb R}^3} p_t(x)\cdot K(\phi_t(x),\phi_t(y)) p_t(y) \, dx \, dy \displaystyle $$ with dynamics

$$ \begin{cases} v_t=\textstyle \int_X \displaystyle K(\cdot, \phi_t(x))p_t(x)\,dx \ , \\ \dot p_t(x) = - (Dv_t)^T_{|_{\phi_t(x)} } p_t(x), x \in {\mathbb R}^3 \end{cases} $$
 * The metric between volumes $$

\displaystyle d^2 =(p_0\mid v_0) = \int_{{\mathbb R}^3}   p_0(x)\cdot \int_{{\mathbb R}^3}  K(x,y) p_0(y)dy \  dx.$$