Abstract

We propose a constrained linear curvature image registration model to explicitly control the deformation according to the transformed Jacobian matrix determinant using point-by-point inequality constraints in this paper. In addition, an effective numerical method is proposed to solve the resulting inequality constrained optimization model. Finally, some numerical examples are given to prove the obvious advantages of the curvature image registration model with inequality constraints.

1. Introduction

In image processing, people are interested not only in analyzing an image but also comparing or combining information from images which take different time, different places, different viewpoints, or different modalities. Thus, image registration is one of the most useful and challenging problems in the field of image processing. Its main idea is to find a geometric transformation which aligns points in one view of one object with corresponding points in another view of the same or similar object. At present, there are a large number of application areas which require image registration, such as computer vision, biological imaging, remote sensing, and medical imaging. For comprehensive surveys of these applications, refer to [15].

The basic framework of image registration can be described as follows: given two images of the same object, which are called reference image and template image , respectively, and our purpose is to find a vector value transformation as defined below:or equivalently find the unknown displacement field :so that the transformed template image is as similar to the reference image as possible. Here, denotes spatial dimension of the given images.

Without loss of generality, here we focus on throughout this paper, but it is easy to generalize to with some additional modifications. The variational model is an important tool for studying image registration and has been widely concerned by many researchers [59]. This variational model treats the image registration problem as a minimization problem of the joint energy functional in the following form:wherewhere denotes distance measure which quantifies distance or similarity of the transformed template image and reference , for other choices on , refer to [5, 7], is the deformation regularizer which constrains and ensures the well-posedness of the problem, and is a regularization parameter which balances similarity and regularity of displacement.

We all know that different regularizers will produce displacement fields with different degrees of smoothness and the selection of a regularizer is critical to the solution of the problem and its properties; for more details, refer to [5]. Usually the choice of regularizer can be classified into two main categories: the first type is to limit the displacement field to the parametric model [1014], for example, rigid or affine transformations (parameterized by rotation, scaling, and translation) or linear combinations of a set of basis functions (-splines) [3, 5, 1518]; the second type is based on the derivative of the displacement field. At present, there are regularizers based on first-order derivatives, such as elastic regularizer [1921], diffusion regularizer [22], total variational regularizer [23, 24], modified total variational regularizer [25, 26], total fractional-order regularizer [27], and the ones based on higher-order derivatives, such as linear curvature [28, 29], mean curvature [8, 30], and Gaussian curvature [31]. It has been proved that, in many cases, the selection method of the first kind of a regularizer is too strict, and the required transformation cannot be guaranteed to be included in the parametric model. Therefore, the second kind of method is a common method to select a regularizer. For the second method, it is easy to implement for low-order regularizers, while they are less effective than high-order ones in producing smooth displacement fields which are important in some applications including medical imaging. Although the registration models based on a higher-order regularizer can produce more satisfactory registration results visually, they do not take into account mesh folding.

In fact, the regularity of the displacement field is also an important measure in image registration [32]. In many variational models (1) that currently exist, although they can produce satisfactory registration results visually, they cannot ensure that the transformation found is reversible. The irreversibility of the transformation means that the displacement field is not regular. In this case, there will be mesh folding during the registration process, which is not allowed in practical applications. Therefore, it is necessary to avoid mesh folding during the registration process. Currently, a direct idea to avoid mesh folding is to use a larger regularization parameter . However, such a value will cause the similarity between the transformed template image and the reference image to become worse. In order to avoid mesh folding phenomenon, some scholars have proposed to add an additional regular term on the transformed Jacobian matrix determinant in the objective function formula (3) [3336], i.e.,where represents the determinant of the Jacobian matrix of the transformation. However, this method only penalizes the irregular displacement field as a whole, while the local displacement field cannot be guaranteed to be regular [32]. In addition, this method is only effective for the smaller regularizer parameter , and increasing the value of usually leads to ill-posed optimization problems [37]. To solve this problem, Haber and Modersitzki proposed a new registration model by adding additional explicit volume inequality constraints [32]; however, this constrained method usually leads to solving a large-scale highly nonlinear inequality constrained optimization problem. Other methods to ensure the regularity of the displacement field can be found in the literature [20, 3843]. However, some of them require more computation time due to the complexity of the regularizer.

There are two purposes for image registration. One is to enhance some similarities between two images by geometrically transforming one of the given two images. The other is to ensure that this transformation is reasonable. In fact, it is equivalent to find geometric transformation and the displacement field in the framework of variational model. If the displacement field is irregular, the transformation is considered unreasonable, and then the mesh folding phenomenon will appear which is not allowed in practical applications. In this paper, we propose a new image registration model by integrating the evaluation criteria to measure the registration results directly into the basic framework of the variational model (3).

The rest of the paper is organized as follows: in Section 2, we propose a new constrained linear curvature image registration model. Then in Section 3, we discuss the numerical method for solving the new model by using a combination of the multiplier method and Gauss–Newton scheme with the Armijos line search and further combine with a multilevel method to achieve fast convergence. Next, some experimental results from syntectic and real images are illustrated in Section 4. Finally, conclusions and future work are summarized in Section 5.

2. Constrained Linear Curvature Image Registration Model

Firstly, we briefly review the Fischer–Modersitzki’s linear curvature image registration model [25, 27]. Choosing in (3) based on an approximation to the curvature of the surface of the displacement field is given by the following form:

There are two major advantages to the particular choice of the regularizer. Firstly, it can penalize oscillations; secondly, without requiring an additional affine linear preregistration step, it can produce visually more satisfactory registration results than a diffusion model and an elastic model for smooth displacement fields. However, a mesh folding phenomenon is not considered in this linear curvature model. In order to avoid this, the evaluation criteria to measure the registration results are directly integrated into the basic framework of the variational model (3), and we propose a constrained linear curvature image registration model in the following form:where

Compared with model (5), our new model can ensure that the displacement field is regular both globally. In addition, the new model prevents mesh folding even for very small regularization parameters . Finally, visually pleasing registration results can be obtained by using our new model with low computing time for smooth registration problems. The numerical solution of the new model (7) is given below.

3. Numerical Solution of the New Model

In general, it is difficult to solve the optimization problem (7) by the analytic method. Thus it is necessary to adopt the numerical method and appropriate discretization. In this paper, we choose the discretize-optimize method which aims to take advantage of efficient optimization techniques. In this section, we first discuss briefly the discretization we use and then describe the details of numerical algorithms.

3.1. Finite Difference Discretization

Assume that given discrete images have pixels. For simplicity, the image region is further assumed to be , and then each side of these cell-centered images has width . Thus the discrete domain can be denoted by

3.1.1. Discretization of Regularizer

The discrete form of the continuous displacement field can be represented by , where and are the discrete grid functions defined on the discrete region . For convenience, let , and . Since the curvature regularizer is expressed based on the Laplacian operator which can be regarded as the product of gradient operator and divergence operator , we introduce the symbols and to represent their discrete forms, respectively. The discrete gradient operator can be defined at each pixel by the following form:where

The displacement field satisfies the homogeneous Neumann boundary conditions on the boundary of the image region :

Through the analysis of continuous setting, we know that the discrete divergence operator is the negative conjugate transposition of the gradient operator, namely, . Thus, it can be defined by the following form:where is a vector. For the convenience of calculation, the grid functions and can be changed into column vectors and according to lexicographical ordering, respectively:

We can get , , and , where . Discrete gradient operator can also be expressed as the product of matrix and the vector in the following form:

Let

By this notation, we can get

Let , , and

Then the discrete form of (18) is as follows:

According to the midpoint quadrature formula, the linear curvature regularizer has the following discrete form:where .

3.1.2. Discretization of Template and Reference

For a given discrete image, if we want to know the gray value at any spatial location other than the grid point, then image interpolation is needed. In order to take full advantage of the fast and effective optimization method, a smooth cubic -spline is used for interpolation. Next, and are used to represent the continuous smooth approximation of template image and reference image , respectively. Letand .

Thus the discrete reference image and transformed template image can be represented by the following form, respectively:and further we can get the Jacobian of :where and the Jacobian of is a block matrix with diagonal blocks.

3.1.3. Discretization of Distance Measure

Although it is in a continuous setting, it is not possible to compute integrals analytically. Thus it is necessary to use numerical integration. In discrete simulation, the midpoint quadrature formula can be used to approximate the integral. According to (22) and (23), the discrete form of distance measurement can be written directly as follows:

In addition, the derivative of the discrete functional on can also be calculated and has the following form:

Furthermore, we can calculate the second derivative of the distance measurement :where . On one hand, it is consuming and numerically unstable to compute higher-order derivatives (27) in registering two images for practical applications. On the other hand, the difference between and will become smaller if the template image is well registered. To have an efficient and stable numerical algorithm as proposed in work [5], can be approximated by the following form:

3.1.4. Discretization of Inequality Constraint Functional

In model (7), the inequality constraint functional is defined by

According to the previous analysis, the discrete form of the partial derivative of the continuous displacement field element can be expressed as follows:

Obviously, , and , where . Letwhere symbol denotes the multiplication of the corresponding elements of two vectors and . For the convenience of calculation, let denote the -th element of , . Therefore, the continuous inequality constraint function has the following discrete form:

Since the first-order variation of the continuous inequality constraint function on continuous displacement field is as follows:

Thus we can get the discrete form of the first-order variation :

Obviously, , , and .

3.2. Solving the Discrete Optimization Problem

According to the above analysis, inequality constrained functional (7) has the following discrete form:

Below we use the multiplier method to numerically solve the inequality constrained optimization problem (35). The basic idea of this method is to transform the original problem into a series of unconstrained optimization problems to solve and simultaneously estimate the Lagrangian multiplier. For more details on multiplier scheme, see [37]. Before solving (35), let us briefly review the multiplier method of inequality constrained optimization.

3.2.1. Multiplier Method for Inequality Constrained Problems

Consider the following inequality constrained optimization problem:

Let , and the above inequality constraint can be transformed into the following equivalent equality constraint problem:

In this case, the augmented Lagrange function can be expressed as

In order to eliminate the auxiliary variables , the minimization of with respect to variable can be considered. According to the first-order necessary condition, let

We can get

Namely,

Therefore, when ,that is to say,

Thus when , we have

And when , we can obtain

According to the above two cases,

Substituting it into formula (38), we can get the corresponding augmented Lagrange function of (36):

Since the multiplier vector needs to be updated to solve the inequality constrained optimization problems (36) by using the multiplier method, next we derive the multiplier iterative formula. Firstly, fix the penalty parameter to some value at its -th iteration, and fix at the current estimate . Secondly, perform minimization with respect to . Using to denote the approximate minimizer of , then we can get by the optimality conditions for unconstrained minimization that

Let satisfy the KKT conditions for (37), then we have

By comparing (48) with (49), we can deduce that

According to (50), to improve the current estimate of the Lagrange multiplier vectors, the multiplier iteration formula can be given by the following form:

Then, taking (43) into the multiplier iteration formula (51), we have

Furthermore, it can be written as

Similarly, take (43) into the termination criterion

We can get

3.2.2. Multiplier Method for Solving Model

Next, we use the multiplier method to solve the model (35). Firstly, we construct the augmented Lagrange function for solving model (35):

The corresponding multiplier iteration formula has the following form:

And the corresponding stopping criterion is

Although the augmented Lagrangian function (57) of the model (35) contains the min function, it is still continuously differentiable; for details, see [37, 44]. The detailed steps of the multiplier method for solving the model (35) can be summarized by Algorithm 1.

Step 1: input the initial value: , the objective function and its gradient , inequality constrained vector , and the transpose of its Jacobian matrix ; let , , , , , , , and .
Step 2: solving the subproblem. With as the initial point, solve the minimum value of the unconstrained subproblem (51) by using the Gauss–Newton scheme with Armijo line search.
Step 3: check the termination condition. If or , where is defined by (57), the iteration is stopped, and is output as the approximate minimum of the original problem; otherwise, go to Step 4.
Step 4: update penalty parameters. If , let ; otherwise, set .
Step 5: update multiplier vector. Calculate
Step 6: set , and go to Step 1.

In Algorithm 1, the Gauss–Newton method is used to solve the unconstrained subproblem (56). And its main idea is to use a quadratic function instead of near the iteration value of the previous step by the Taylor expansion given below:where is the Jacobian matrix of at and is the approximation of its Hessian. Due to , and are both positive semidefine, and it is easy to prove that is also positive semidefinite. Thus, we know that is convex. In this way, the nonconvex problem can be transformed into a convex problem to be solved. For further detailed description, see [37]. The detailed steps are described below.

Given the initial value , the Jacobian matrix and the Hessian matrix are calculated by the following forms:and in each outer iteration step, respectively, where is defined by (34). In formula (59), the disturbance value can be obtained by finding the stability point of the quadratic function , namely,

Usually, is the positive definite. Thus the equation (62) can be solved by the preconjugate gradient method. To ensure that the objective function (59) is descending, the standard Armijo line search method can be used. The specific steps for the Armijos line search can be summarized by using Algorithm 2. And the Gauss–Newton method mentioned above is described by using Algorithm 3. In order to provide a good initial value, the Gauss–Newton method with Armijo line search and the multilevel method are combined to solve model (56), which can reduce the risk of getting trapped at an unwanted minimizer and save computing time. Firstly, we use the initial value and the Gauss–Newton method with the Armijos line search to solve (56) on the coarsest level. Secondly, the solution on the coarsest level is interpolated to the next finer level; next it is used as the initial value, and the same method is used to solve the model (56) on the finer level, where bilinear interpolation operator is used. Finally, this process is repeated until the loop terminates. We summarize the multilevel method using Algorithm 4.

Step 1: input initial value: ; , , and are calculated by (56) and (60), respectively. Set , , , and .
Step 2: set , and compute .
Step 3: check the termination condition. If , then the iteration is stopped; otherwise, go to Step 4.
Step 4: Set ; ; and go to Step 2.
Step 1: set , , and ; input initial value: .
Step 2: compute , , and by using (56), (60), and (61), respectively.
Step 3: check the termination condition. If or , stop, and is the output.
Step 4: Solve the Quasi–Newton equation (62) by Preconjugate Gradient method. If the equation (61) has a solution which meets , then go to Step 5; otherwise, set , and go to Step 5.
Step 5: the step factor is solved by the Armijos line search technique.
Step 6: set , ; then go to Step 2.
Step 1: given initial values: and ; given multilevel representation of the reference image and the template image .
Step 2: set on the coarsest level , then solve (51) by using Algorithm 1; otherwise, go to Step 3.
Step 3: the initial value on the finer level is obtained by interpolation operator .
Step 4: set ; then go to Step 2.

4. Numerical Experiments

In this part, we use three experiments to show that our new model (CLC) has good performance by comparing it with diffeomorphic demons (DDemons) [43], linear curvature model (LC) [28], mean curvature model (MC) [8], hyperelastic regularizer (Hyper) [20], and Zhang–Chen model (ZC) [42]. In order to illustrate the capabilities of our model, we select two pairs of artificial images. In addition, considering the important application of image registration in biomedical images, we also use a pair of medical lung images for experiments.

In order to quantify the quality of the registered image, the relative reduction of the dissimilarity, which is given by [7], is shown as follows:

And the minimum value of the determinant of the Jacobian matrix of the transformation are used, where is defined by equation (4), is the current iteration, and is the value of at .

4.1. Test 1: A Pair of Lena Images

In the first experiment, we used a pair of Lena images with a size of . The test images and registered ones using our new model are shown in Figure 1. The transformed template image obtained using the other five models and the image difference after registration are represented by Figure 2. For Example 1 shown in Figures 1(a) and 1(b), the registration results using our new model and linear curvature (LC [28]) model and other four models are recorded in Tables 1 and 2, respectively. For a smaller regularizer parameter , from Figures 1 and 2, we can see that our new model and hyperelastic regularizer-, linear curvature-, and mean one-based image registration models can produce visually satisfactory registration results. However, we find that the latter two have mesh folding by Tables 1 and 2. Although the demons-based registration model and ZC model do not produce folding, the registration effects are relatively poor. From Tables 1 and 2, we can further see that for the same image with different sizes, our new model can give very satisfactory registration results without folding.

In order to analyze how much our model will be affected when changing the regularizer parameter , we use Algorithm 4 to test Example 1, and the corresponding quantitative measurement values are recorded in Tables 35. From Tables 3 to 5, we find that the registration quality becomes worse and worse with the increase of the regularizer parameter . However, when alpha is greater than or equal to , our new model does not produce folding for Example 1. For this example, our new model is able to produce better registration results, especially when the regularizer parameter is taken in an appropriate range .

4.2. Test 2: A Pair of Medical Lung Images

In this part, we select a pair of medical lung images with a size of for testing. For each model, we choose the optimal parameters. The test images and the corresponding registered ones are shown in Figures 3 and 4, respectively. The registration results on different layers are recorded in Tables 6 and 7, respectively. According to Figures 3 and 4, we can observe that the other five models can produce visually relatively satisfactory registration effects except the DDemons model. From the image difference after registration and the results recorded in Tables 6 and 7, we find that although our model requires slightly more computing time than the LC model and MC model when the resolution is larger, it produces more satisfactory registration effects than them. In addition, from the above tables we can also see that when the resolution of the image is relatively small, our model can produce more satisfactory registration effects than the other models in a relatively short time. Although the ZC model and Hyper model produce slightly better results than our new model for the image with the size of , our new model is more robust with respect to mesh parameter . As can be seen from Tables 810, with the increase of the regularizer parameter , the registration effects gradually become worse. But when is taken in a certain range , our model can still produce satisfactory registration effects. From the tables above, we also find that when the resolution of the image changes and the regularizer parameter is taken in a certain range, the change of registration results generated by our new model is not particularly significant. This shows that our new model is more robust.

4.3. Test 3: A Pair of Artificial Image

A pair of artificial image with a size of is used in the third experiment. For each model, we still choose its optimal parameters. Figure 5 represents the test images and registration results using our new model (CLC). The transformed template images and image differences after registration from all other models are shown in Figure 6. The registration results on different layers using our new model (CLC) and LC model [28] and other four models are summarized in Tables 11 and 12, respectively. In Figures 5 and 6, we can see that all five models except the DDemons model are fine in producing satisfactory registration results. According to Tables 11 and 12, we find that although our new model requires slightly more computing time when the resolution is large, it has the best value of . We also find that LC model and MC model have mesh folding during the registration process. In addition, our new model is more robust than the ZC model and Hyper model with the change of grid parameter . For this example, an accurate regularizer parameter is also not needed. From Tables 13 to 15, we also find our proposed new model can produce acceptable registration results for any between 0.1 and 1.

5. Conclusions

Avoiding mesh folding is a key issue to ensure the invertibility of transformation in the image registration model. In this paper, we propose a constrained linear curvature image registration model by integrating the evaluation criteria to measure the registration results directly into the basic framework of the variational model. In order to solve the new model, we use a combination of the multiplier method and Gauss–Newton scheme with the Armijos line search and further combine with a multilevel method to achieve fast convergence. To illustrate the good performance of our new model, we compare it with five representative models based on the LC model [28], MC model [8], DDemons model [43], Hyper model [20], and ZC model [42] using three numerical examples. Numerical experiments show that our proposed model is more efficient and robust than the competing models. Future works will consider the use of homotopy method to solve the corresponding inequality constraint registration model.

Data Availability

The image datasets used to support the findings of this study are included within the article.

Conflicts of Interest

The author declares no conflicts of interest.

Acknowledgments

This research work was supported by the Natural Science Foundation of China (NSFC) (No. 11801249) and Natural Science Foundation of Shandong Province (No. ZR2017BA034).