This disclosure is directed to deformable image registration.
Image registration has been widely explored by numerous approaches. Rigid registration is now something people know well how to do. In essence, rigid registration involves finding the rotations, translations, and image scaling which make one image match another. This means that there are at most 16 parameters to work with. In the case of deformable registration, one wants to match one image with another that has been deformed, not just moved. In medical imaging, the displacement of the lungs is a good example, where one can not match a lung at full inhale with a lung at full exhale only by rotating, translating and scaling of the chest. Here one needs to actually move each pixel of the first image to match a pixel with the other image. This is a tedious task and the number of parameters is typically a multiple of the number of pixels in the image. Thus, there is a much bigger parameter space. One then would like to reduce this space by selecting only some of the pixels to be moved, hoping that the other pixels will follow the movements of the selected pixels. This is the interpolation framework.
Exemplary embodiments of the invention as described herein generally include methods and systems for a computationally efficient registration method using interpolation, where only some points on the edges are registered. The rest of the displacement is induced by the interpolation. One issue is that the displacement of the few points, the landmarks, can lead to tearing or folding of the image. Thus a one-to-one mapping may be enforced. A deformation according to an embodiment of the invention remains natural for all iterations and not just at the first and final stage.
According to an aspect of the invention, there is provided a method for deformable registration of 2 digital images, the method including providing a pair of digital images, each image comprising a plurality of intensities associated with a 2-dimensional grid of points, said pair including a fixed image and a moving image, extracting a set of edge images from each image of said pair of images, each edge set being extracted at a different resolution, selecting a pair of edge images with a lowest resolution, determining a mapping from edge points of said fixed image to edge points of moving image using a geodesic thin plate spline interpolation, applying said mapping to a next higher resolution edge point image of said moving image, selecting a pair of edge images at a next higher resolution, wherein a moving edge image is the moving edge image to which said mapping has been applied, repeating said steps of determining a mapping, applying said mapping, and selecting a pair of edge images at a next higher resolution for all edge images in said set of edge images, and applying said mapping to an entire moving image.
According to a further aspect of the invention, the method includes reducing a number of points in each of said edge images, prior to determining said mapping.
According to a further aspect of the invention, reducing a number of points comprises following a curve defined by a set of edge points, keeping one point every α, wherein α is a predetermined distance interval, and keeping those points wherein an angle made by three points in β points is greater than θ, wherein β is a predetermined number of points and θ is a predetermined angle.
According to a further aspect of the invention, the method includes using a Gaussian pyramid to generate images at progressively lower resolutions to extract edge sets at different resolutions.
According to a further aspect of the invention, a geodesic thin plate spline interpolation comprises initializing moving points qi from fixed points pi, wherein said fixed points are selected from edge points of said fixed image, wherein said moving points and said fixed points have 2-dimensions, initializing a set of N 2-dimensional curbs ζi(t), iε[1,N], on said image domain parameterized by tε[0,T] associated with paths from said fixed points pi to moving points qi wherein
updating said curbs for parameters tε[2,T−1] using a gradient descent of an energy associated with paths from said landmark points pi to landmark points qi, calculating from said curbs for parameters tε[2,T−1] a set of coefficients a, b, α that define a diffeomorphic function g defined on said image domain wherein g(pi)≅qi, ∀iε[1,N], and
wherein a is a 2×2 matrix, b is a 2D vector, α is a 2×N matrix, and ƒp(x) are a set of basis functions, calculating g from said coefficients, updating said curbs for t=T from said diffeomorphic function g and a gradient descent of said constraint energy calculated for points transformed by g, and repeating said steps of updating said curbs for parameters tε[2,T−1], calculating said coefficients a, b, α, calculating g, and updating said curbs for t=T until g converges, where g is a deformation field that maps said fixed edge points to said moving edge points, and said curbs for t=T represent the image of the initial points as transformed by g.
According to a further aspect of the invention, the qi are initialized as
is said constraint energy, SF and SM are structural intensities for a fixed image and a moving image, respectively, wherein
where δ represents the Dirac distribution, K represents a Gaussian kernel, points PI={P1I, . . . , PiI, . . . , PnI} are points defining the edges of image I, wherein I is either the moving or the fixed image, vI={v1I, . . . , viI, . . . , vnI} are their associated values, and γ is a predefined constant.
According to a further aspect of the invention, points in the moving set are constrained to be in a set
According to a further aspect of the invention, updating said curbs for parameters tε[2,T−1] using a gradient descent comprises calculating
wherein
wherein for any time dependent function u, Dt(u)=T×(u(t+1)−u(t)), tε[0,T−1], and β is a predefined constant.
According to a further aspect of the invention, calculating said coefficients a, b, α comprises forming a 3×N matrix
forming an N×N matrix K of U(ri,j) as
and matrix Kλ=K+1/λK wherein λ is a smoothness parameter greater than 0, ri,j=|Pi−pj| is a distance between the points i and j, and U(r)=r log(r), forming a 3×3 matrix of zeros O, forming a (N+3)×(N+3) matrix
calculating L−1Q wherein
wherein t(α|a b)=L−1Q is an (N+3)×2 matrix, and wherein | represents concatenation.
According to a further aspect of the invention, calculating g comprises initializing g to an identity mapping, and evaluating
for all t=0, . . . , T.
According to a further aspect of the invention, updating said curbs for t=T comprises calculating
is said constraint energy, SF and SM are structural intensities for a fixed image and a moving image, respectively, wherein
where δ represents the Dirac distribution, K represents a Gaussian kernel, points PI={P1I, . . . , PiI, . . . , PnI} are points defining the edges of image I, wherein I is either the moving or the fixed image, vI={v1I, . . . , viI, . . . , vnI} are their associated values, g(ζ(T)) represent the moving points, and γ is a predefined constant.
According to another aspect of the invention, there is provided a program storage device readable by a computer, tangibly embodying a program of instructions executable by the computer to perform the method steps for deformable registration of 2 digital images.
a)-(b) depict a case of matching one point to another, where one point is moving, according to an embodiment of the invention.
a)-(b) depict another case of matching one point to another, where one point is staying still, according to an embodiment of the invention.
a)-(b) depict a case of matching 2 points in a void with overlapping kernels, according to an embodiment of the invention.
a)-(b), which depicts the case of 2 points in a void with overlapping kernels, according to an embodiment of the invention.
a)-(b) depicts images used for testing a registration according to an embodiment of the invention.
a)-(c) depict results obtained on registering the cut “C” to the full “C”, according to an embodiment of the invention.
a)-(c) depict results obtained on registering the full “C” to the cut “C”, according to an embodiment of the invention.
a)-(c) show the same type of experiment involving the registration of a bubbled square, according to an embodiment of the invention.
a)-(c) depict the results obtained for the registration of a house to which was applied a known deformation, according to an embodiment of the invention.
Exemplary embodiments of the invention as described herein generally include systems and methods for image registration using geodesic image matching. Accordingly, while the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit the invention to the particular forms disclosed, but on the contrary, the invention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
As used herein, the term “image” refers to multi-dimensional data composed of discrete image elements (e.g., pixels for 2-D images and voxels for 3-D images). The image may be, for example, a medical image of a subject collected by computer tomography, magnetic resonance imaging, ultrasound, or any other medical imaging system known to one of skill in the art. The image may also be provided from non-medical contexts, such as, for example, remote sensing systems, electron microscopy, etc. Although an image can be thought of as a function from R3 to R, the methods of the inventions are not limited to such images, and can be applied to images of any dimension, e.g., a 2-D picture or a 3-D volume. For a 2- or 3-dimensional image, the domain of the image is typically a 2- or 3-dimensional rectangular array, wherein each pixel or voxel can be addressed with reference to a set of 2 or 3 mutually orthogonal axes. The terms “digital” and “digitized” as used herein will refer to images or volumes, as appropriate, in a digital or digitized format acquired via a digital acquisition system or via conversion from an analog image.
Gaussian Pyramid
The process of Gaussian pyramid is simple. The idea behind it is to progressively blur an image and to work first on the blurriest image. The lower one is in the pyramid, the lower the frequencies to be registered. According to an embodiment of the invention, the image size is divided by 2 after each blur. An exemplary, non-limiting Gaussian pyramid is shown in
Canny Edge Detection
According to an embodiment of the invention, the gradient of the image is computed in x and y direction: ∇xI(x, y) and ∇y(x, y), and then the magnitude of the gradient and its angle with the horizontal direction are stored:
M(x,y)=|∇xI(x,y)+i∇yI(x,y)|, (1)
Θ(x,y)=arg ument(∇xI(x,y)+i∇yI(x,y)). (2)
According to an embodiment of the invention, {circumflex over (Θ)} is used, which is a discretization of Θ: {circumflex over (Θ)}ε{0, π/4, π/2, 3π/4}.
An exemplary, non-limiting Canny Edge Detector(M, {circumflex over (Θ)}) is as follows.
According to an embodiment of the invention, a Matlab version of a Canny Edge Detector can be used, which can eliminate spurious edges by hysteresis thresholding.
Combining Gaussian Pyramid and Canny Edge Detector in a Registration Process
This disclosure will use herein below the convention of superscript F for fixed and M for moving, as it is desired to match a moving image with a fixed image. A superscript s is added to the variables to emphasize the scale. Thus, XM,s represents the variable X for a moving image at scale s.
According to an embodiment of the invention, the edges of two different images are matched at different scales. If there is a set of points PM defining the edges in the image IM, and a set PF defining the edges in the image IF, then a registration process according to an embodiment of the invention can be summed up as follows.
Start at the lowest level (i.e. the smallest images).
According to an embodiment of the invention, the displacement field is not actually upscaled because it is computed using thin plate spline coefficients, which are not dependent to the scale.
Geodesic Interpolating Splines
Reducing the number of points moving within the image, from all the pixels to only a set of landmarks, can reduce the computational cost of the registration. But it is desired to generate a dense mapping from the information on the displacement of this limited amount of points and to preserve the consistency of the displacement computed for the points in the image which are not in the set of landmarks. To preserve this consistency, the mapping should be one-to-one, and to prevent any folding or tearing of the mapping from happening, the mapping should be diffeomorphic. One approach for a numerically efficient way of making an interpolating spline diffeomorphic, described in Camion and Younes, “Geodesic interpolating splines”, in EMMCVPR, volume 2134 of Lecture Notes in Computer Science, pages 513-527, Springer, 2001, edited by Figueiredo, Zerubia, and Jain, the contents of which are herein incorporated by reference in their entirety, is as follows.
First, some notation. Here Ω is a bounded set in the plane, H is a Hilbert space of Ω, , is an inner product on H, and (p1, . . . , pN) and (q1, . . . , qN) are two sets of matching landmarks in Ω.
A goal according to an embodiment of the invention is to find a diffeomorphism gεΩ such that:
∀iε[1,N], g(pi)≅qi, (3)
or more specifically, an approximate matching which fits best the diffeomorphism condition and the constraints on the landmarks matching.
Interpolating Splines
The task of approximate matching using interpolating splines is finding a g such as:
For a fixed λ>0, and where ƒ1, . . . , ƒNεH is a set of functions to which the mapping should be as close as possible in the locations of the landmarks. That is to say, if there is a basis function ƒp
The parameter λ will be referred to as the smoothness, since reducing this parameter reduces the effect of the constraints, resulting in a smoother mapping. The solution should be searched in the space spanned by ƒp
If one defines the matrix S such as Si,j=ƒp
ω=arg min{tαSα+λt(Sα−q)(Sα−q)}, (6)
where α and q are vectors with respective components αi and qi.
Since it is desired to find a function h as smooth as possible, one can evaluate this smoothness using an operator L. Define a Hilbert space HL such that the inner product is:
and then define the norm on HL as ∥ƒ∥L2=ƒ,ƒL.
In this framework one needs to find ƒxεHL, a basis function such that the projection of h on it is equivalent to evaluating h at the point where the basis function is given. That is to say:
∀hεHL, h(x)=ƒx,h. (8)
This task then comprises minimizing
The theoretical existence of functions ƒx can be proven. For example, one can use a Gaussian as a basis function:
For the purpose of diffeomorphic matching, the use of the Thin Plate Splines as described by Bookstein, “Principal warps: Thin-plate splines and the decomposition of deformations”, IEEE Trans. Pattern Anal. Mach. Intell., 11(6):567-585, 1989, the contents of which are herein incorporated by reference in their entirety, provides a simple and computationally efficient way of interpolating. Nonetheless one could use the Gaussian basis and produce a diffeomorphic mapping with the same technique.
Thin Plate Splines
Using the Laplacian operator Δ in place of the L operator used before, the inner product can be defined as:
ƒ,g=∫R
The basis function can then be computed, using:
There is now the equality up to the addition of an affine function:
which provides g up to the addition of an affine function, that is to say:
EQ. (6) can be used to find a, b and α as follows. Define:
define the N×N matrix K of general term U(ri,j):
define Kλ=K+1/λK where λ is the parameter given in EQ. (6), and define the 3×N matrix P:
one can then define the (N+3)×(N+3) matrix L:
where O is a 3×3 matrix of zeros. Now if
then, it can be shown that
t(α|ab)=L−1Q, (18)
which is an (N+3)×2 matrix, where | represents concatenation, is a solution to EQ. (6). This defines Thin Plate Spline interpolation, according to an embodiment of the invention. The next section describes how to make this interpolation diffeomorphic.
Diffeomorphic Landmark Matching
A method according to an embodiment of the invention combines the theory of diffeomorphism groups, generated as flows on Ω and thus solutions of an ordinary differential equation, with interpolating splines. The cost of a deformation g, can be defined as the sum of infinitely small costs, representing small deformations. Let d(t1,), . . . , d(tT,·) represent small displacements which incrementally lead to g. Then incrementally applying the deformation function Ψ(tk,) leads to the desired deformation:
The constrain hT=g is given in order to lead to the solution. Then one can write the energy Γ of this transformation as:
Now consider a continuous variable tε[0,1], which corresponds to having tT→∞˜tk/T, and:
v(t,)T→∞˜d(T·t)/T,
h(t,)T→∞˜h(T·t), (21)
then EQ. (19) becomes:
and the energy becomes
Γ(v)=∫0∥v(t)∥2dt. (23)
The knowledge of v thus allows one to determine g by integration of an ordinary differential equation.
Now, add the spline requirements to the equation. Let ∀iε[1,N], ζi(t) be curbs of Ω parameterized by t. These are in association with the flow paths v(t) leading from the landmark points pi to the landmark points qi. That is to say:
According to an embodiment of the invention, the energy of this path can be minimized by:
There is also here defined a geodesic distance between two set of points I=(p1, . . . , pN) and I′=(q1, . . . , qN), which is:
d(I,I′)=Inf{√{square root over (E(v,ζ))},vεHL,ζ(0)=I,ζ(1)=I′} (26)
Geodesic interpolating Thin Plate Splines
Now, for each infinitely small displacement v(t,·) as defined in EQ. (21) is required to be a Thin Plate Spline mapping. Following EQ. (14), v is then:
One can combine the energy in EQ. (25) with the flow of EQ. (27), using U defined in EQ. (12) and discretizing for tε[0,T]:
and for any time dependent function u,
∀tε[0,T−1], Dt(u)=T×(u(t+1)−u(t)). (30)
An exemplary, non-limiting two step algorithm according to an embodiment of the invention which converges for minimizing the energy of EQ. (28) is as follows.
G
Here one just needs to write the derivative of E with respect to ζ:
where ∇1UεR denotes the gradient of U with respect to one of its variables (it does not matter which one since the mapping (a,b)U(|a−b|) is symmetric). The points in the path define, for each time t, where the points have moved since the time t−δt. To recover the complete deformation, one sums the induced infinitely small deformations, which is equivalent to resolving the ODE of EQ. (22).
Geodesic Matching with Free Extremities
In this section, it will be shown that a registration framework according to an embodiment of the invention can be viewed as a matching task with free extremities.
In the last section the minimization process was performed with fixed extremities that are the initial and target points. However, in a registration process according to an embodiment of the invention, it is desired to move the initial points toward a set of final points without any known correspondence, or even without knowing if the repartition of the points or their number is consistent with each other. Assuming one can define a constraint CImage)(I′) which describes how far from the target image the set of points is, one can then can use the framework given by Garcin and Younes, “Geodesic matching with free extremities”, J. Math. Imaging Vis., 25(3):329-340, 2006, the contents of which are herein incorporated by reference in their entirety, where not only the minimizing paths between two set of points are unknown but where the paths' extremities themselves are unknown.
It has been shown that a constraint should be enforced on each extremity of the path to have a well posed problem. According to an embodiment of the invention, a soft constraint will be used on one of the extremities and a hard constraint on the other, to minimize the energy:
Emarching(I,I′)=d(I,I′)2+CImage(I′), (32)
with the hard constraint:
∀iε[1,N], Ii=Pi, (33)
where d(I, I′) is defined in EQ. (26) and CImage(I′) is yet to be defined.
Kernel Matching
Let PI be a set of points defining the edges of an image I. The ‘Structural Intensity’ of an image I, SI, can be defined as the convolution by a Gaussian kernel of an image formed only by the points PI={P1I, . . . , PiI, . . . , PnI} and their associated values vI={v1I, . . . , viI, . . . , vnI}. That is to say, if δ represents the Dirac distribution, and K represents the Gaussian kernel, one has:
So, matching points has been replaced with matching ‘Structural Intensities’. A measure can be defined between two ‘Structural Intensities’, with superscript F for the fixed image and M for the moving image, as:
which with EQ. (34) expands and gives the constraint energy:
Now, EQ. (36) can be derived with respect to the position of each point in PM to carry out the gradient descent on each point's position:
Experiments
In
Another consequence of the equations is the fact that when, for example, two points are away from the information of the fixed image, but have overlapping kernels, as shown in
Modified Kernel Matching
One can add a rule to the movement of the points: a point PiM is allowed to move only if:
Defining {circumflex over (P)} as:
implies the following energy:
In other words, if a moving kernel has no information underneath, if it is not intersecting with the fixed image, then the point related to this kernel should not move, hence not be computed within the energy.
A Geodesic Thin Plate Spline algorithm according to an embodiment of the invention presented above can be modified to take into account the constraint of the image which leads the points. Exemplary, non-limiting pseudo-code for such an algorithm is as follows.
G
G
At convergence, ζ(T) represents the image of the initial points transformed by the deformation h.
Points Number Reduction
Referring back to steps 12a, 12b of
The variations of the curve are directly linked to the second derivative of the parameterized curve, in that there is a density of points linked to the norm of the second derivative at each point. However, it is simpler and computationally more efficient to use a heuristic based on the angle of curvature when one follows a curve drawn by the points.
An exemplary, non-limiting algorithm for point number reduction according to an embodiment of the invention is as follows, presented here with a recursive function for the sake of comprehensiveness. This algorithm follows each of the curves in the edges to keep only one point every α, and keep the points where the angle made by three points in β points, is greater than θ.
P
G
Results
a)-(c) depict results obtained on registering the cut “C” to the full “C”.
An algorithm according to an embodiment of the invention can interpolate the ‘natural’ movement of the ‘C’.
a)-(c) show the same type of experiment involving the registration of a bubbled square.
a)-(c) depict the results obtained for the registration of a house to which was applied a known deformation.
System Implementations
It is to be understood that embodiments of the present invention can be implemented in various forms of hardware, software, firmware, special purpose processes, or a combination thereof. In one embodiment, the present invention can be implemented in software as an application program tangible embodied on a computer readable program storage device. The application program can be uploaded to, and executed by, a machine comprising any suitable architecture.
The computer system 131 also includes an operating system and micro instruction code. The various processes and functions described herein can either be part of the micro instruction code or part of the application program (or combination thereof) which is executed via the operating system. In addition, various other peripheral devices can be connected to the computer platform such as an additional data storage device and a printing device.
It is to be further understood that, because some of the constituent system components and method steps depicted in the accompanying figures can be implemented in software, the actual connections between the systems components (or the process steps) may differ depending upon the manner in which the present invention is programmed. Given the teachings of the present invention provided herein, one of ordinary skill in the related art will be able to contemplate these and similar implementations or configurations of the present invention.
While the present invention has been described in detail with reference to a preferred embodiment, those skilled in the art will appreciate that various modifications and substitutions can be made thereto without departing from the spirit and scope of the invention as set forth in the appended claims.
This application claims priority from “Geodesic Image Matching”, U.S. Provisional Application No. 60/968,994 of Khamene, et al., filed Aug. 30, 2007, the contents of which are herein incorporated by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
20050245810 | Khamene et al. | Nov 2005 | A1 |
20070116381 | Khamene | May 2007 | A1 |
20080095465 | Mullick et al. | Apr 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20090067755 A1 | Mar 2009 | US |
Number | Date | Country | |
---|---|---|---|
60968994 | Aug 2007 | US |