Abstract
This paper is devoted to numerical algorithms based on harmonic transformations with two goals: (1) face boundary formulation by blending techniques based on the known characteristic nodes and (2) some challenging examples of face resembling. The formulation of the face boundary is imperative for face recognition, transformation, and combination. Mapping between the source and target face boundaries with constituent pixels is explored by two approaches: cubic spline interpolation and ordinary differential equation (ODE) using Hermite interpolation. The ODE approach is more flexible and suitable for handling different boundary conditions, such as the clamped and simple support conditions. The intrinsic relations between the cubic spline and ODE methods are explored for different face boundaries, and their combinations are developed. Face combination and resembling are performed by employing blending curves for generating the face boundary, and face images are converted by numerical methods for harmonic models, such as the finite difference method (FDM), the finite element method (FEM) and the finite volume method (FVM) for harmonic models, and the splitting–integrating method (SIM) for the resampling of constituent pixels. For the second goal, the age effects of facial appearance are explored to discover that different ages of face images can be produced by integrating the photos and images of the old and the young. Then, the following challenging task is targeted. Based on the photos and images of parents and their children, can we obtain an integrated image to resemble his/her current image as closely as possible? Amazing examples of face combination and resembling are reported in this paper to give a positive answer. Furthermore, an optimal combination of face images of parents and their children in the least-squares sense is introduced to greatly facilitate face resembling. Face combination and resembling may also be used for plastic surgery, finding missing children, and identifying criminals. The boundary and numerical techniques of face images in this paper can be used not only for pattern recognition but also for face morphing, morphing attack detection (MAD), and computer animation as Sora to greatly enhance further developments in AI.
1. Introduction
1.1. Review of Previous Work
The face is the most prominent feature of a human being. Therefore, studies regarding face fusion and morphing remain active. In particular, face representation has been studied by Gabor wavelets in Du and Ward [1], and face recognition and ear recognition have been also reported by Chang et al. [2]. For face recognition and face morphing, we also cite some recent reports: Aloraibi [3], Indrawal and Sharma [4], Patel and Lapsiwala [5], Scherhag et al. [6,7], Tuncer et al. [8], Guo and Zhang [9], You et al. [10], and Venkatesh et al. [11]. This paper is a continued study of Li, Chiang, and Suen [12] who studied face image transformations using three steps of numerical techniques.
- Step I:
- Find the face boundary.
- Step II:
- Carry out harmonic transformations by FEM, FDM, FVM, etc.
- Step III:
- Transmit facial grayness by splitting algorithms.
We have devoted great efforts to splitting algorithms in Step III (see [13,14]) and harmonic transformations by numerical methods in Step II (see [12]). This paper will focus on Step I, which is to find face boundaries and their conversions during harmonic transformations.
Numerical methods are the main tools to perform face image transformation. For image transformation, new numerical methods have been studied since Li et al. [14], and a number of papers have been published. Among them, the splitting–integrating method (SIM) and harmonic transformation are the most powerful and advanced. The boundary is most important in describing and recognizing the pattern, the individual person, and the transformed models. Harmonic transformations consist of a couple of Laplace’s equations in the face domains and face boundaries. In fact, once the interior and exterior boundaries of face images are known, face domains are defined. Moreover, for each person, the formulation of face boundaries in digital images may be discriminative, complicated, and laborious.
For the boundary of the harmonic model, we solicit the blending curves. Surfaces and curves identified by interpolation are well-known and described in many reports [15,16]. In this paper, new methods for blending curves will be explored for generating face boundaries based on ordinary differential equations (ODE) and their numerical solutions [17]. It is worth pointing out that since the publication of [14], the basic numerical methods for geometric image transformations have been studied and developed, and the face transformations in this paper and [12] are important applications and developments of our basic research. The image examples of face combinations and face resembling in this paper can also find applications in many areas, such as criminal identification, finding missing children, plastic surgery, marriage counseling by predicting possible offspring images, etc. Evidently, the numerical techniques of face boundary in this paper can be used not only for pattern recognition but also for face fusion, face resampling, imaging morphing, morphing attack detection (MAD), and computer animation as Sora. It is also worth pointing out that the numerical algorithms in this paper are beneficial not only to face transformations but also to image geometric transformations.
1.2. Outlines of Numerical Face Transformations
Consider the nonlinear transformation as the harmonic transformation in [14]:
where , and the harmonic functions
satisfy the Laplace equations with the following Dirichlet conditions:
and and are given. For Steps I–III, the detailed techniques are described in the following sections.
Step I: Generate blending curves for mapping source and target face boundaries.
Boundary images have been treated by segmentation techniques, where superquadric models are explored, and the simple boundary is studied in [18] by affine kernel transformations. Furthermore, the symmetry of the boundary was explored in [19], and the piecewise linear approximation was used for planar curves for pattern recognition. These studies are confined to some special and simple types of image boundaries. This paper will deal with a rather general boundary of face images.
Let us briefly address the ideas of the blending techniques used in this paper. Based on the scattered 2D points, formulating a smooth curve is one of the basic topics in numerical analysis. Interpolation techniques, such as the Lagrange, Hermite, and spline interpolations, can be used. However, in this paper, we mimic a thin and flexible beam to be blended to pass through these given points exactly. Such a blending beam can be described as an ODE of order four with suitable boundary conditions. We choose the piecewise cubic Hermite polynomials as the admissible functions for the fourth-order ODE. The advantages of this technique are as follows: (1) the global curvature of the blending curve is minimal, and (2) the blending boundary has continuous derivatives (i.e., continuous slopes), thus fitting better and more naturally to the face boundary. The blending techniques are used for shaped evolution with structural and topological changes in [20] to “glue” two or several cutting surfaces together as one uniform subject. In fact, traditional techniques of blending surfaces in [15,21] can also be employed. However, we may also solicit the numerical PDE of biharmonic equations to better “glue” the cutting surfaces. Details are omitted.
First, the following preliminary work is prepared:
- (a)
- Input a source, which is a 2D face image.
- (b)
- Choose a target face frame to be transformed (or resembled).
- (c)
- Locate the control and characteristic points along open or closed curves on the face boundary and the important facial features.
In (c), the characteristic nodes on the face are related not only to the geometrical properties of facial features, such as the eyes, eyebrows, nose, mouth, etc., but also to the muscle structure of the human face. The significant characteristic nodes are provided in [22]. Those nodes may be found using skeleton techniques and by locating the boundary nodes, the sharp nodes of curves, and the nodes of inflection. Since the number of pixels contained in an image boundary is large, it is laborious to manually establish pixel correspondence between two boundaries to be matched, as shown in Figure 1 and Figure 2. New methods are solicited to formulate and map the two boundary curves only by a few matching characteristic points given.
Figure 1.
Face transformation from a source face image to a target one.
Figure 2.
The corresponding exterior and boundary curves of face images of the male (man) and female (woman), where the left shows the blending curves with characteristic nodes, and the right shows the blending curves (with the permission from Z.C. Li).
Suppose that the given matching pairs of characteristic points and satisfy
where , and . In Section 2, we will describe the numerical methods used to generate , , and their mapping in (1). We will use two methods: (M1) the cubic spline in [21] and (M2) ordinary differential equations (ODE) using Hermite interpolation by following [17]. Method (M2) is more flexible and advanced because it can be applied in parametric forms and is well suited to complicated curves, such as the contours of the head, eyes, eyebrows, nose, and ears. The new techniques of ODE can handle complicated boundary conditions for given slopes and curvatures and allow cubic splines to be embedded in the blending curves.
In [12], the boundary curves of face images of a male (man) and a female (woman) are formulated, as shown in Figure 2, and the face transformation from the female to the male in shape is given in the center of Figure 3. Face boundary formulation and mapping are completed based on the techniques described in this paper.
Figure 3.
The face transformation from female to male, where the center one is the fusion image (with the permission from Z.C. Li).
Step II: Carry out the harmonic model.
Since the image pixels are distributed uniformly, we may simply choose pixel points as the different nodes , where H is the pixel size. Denote and . Take the Laplace equation in (3) as an example. The simple interior difference equations are given by the following:
where is known. Note that the number of (5) is nearly that of the total pixels of the original image used to solve the above difference equations. The successive over-relaxation iteration (SOR) in [23] can be used to solve (5) and (6):
where is the optimal relaxation parameter, and are the given initial values. For the arbitrary face domain , although the optimal parameter in [23] is unknown, some new numerical techniques in Chen [24] are provided to seek the optimal easily by trial computation.
To reduce computation complexity, we may choose some pixels as the difference nodes and establish the non-uniform difference equations. We define , , where and are not uniform. The mesh spacings are denoted by and . Hence, for in Poisson’s model, the interior difference equations are obtained by direct difference approximations (see Li [25]):
We multiply two sides of (7) by the factor to yield the symmetric difference equations:
FDM is simpler than FEM and FVM, and its programming is easy. As a result, FDM is beneficial to the images of medium size converted by harmonic transformations. For example, in Section 4, with near pixels, the computation of FDM by the SOR with the optimal parameter can be computed very quickly by using a personal computer.
After the solutions have been obtained from FDM, the piecewise bilinear transformations are given by and . The functions are approximated to of the harmonic transformation with . The functions and inside are obtained by the bilinear interpolations in Figure 4 or simply by the linear interpolations in Figure 5. Note that should be located at the pixel points in , but it is not necessary for in .
Figure 4.
Piecewise bilinear transformations.
Figure 5.
Piecewise bilinear transformations on a square.
Step III: Use combinations of the SIM in Li [13] to obtain the distorted and restored images.
It is worth pointing out that the numerical algorithms via Steps I–III in this paper are beneficial not only to face transformations but also to image geometric transformations. We cite the following related reports: Castleman [26], Lakemond et al. [27], Rosa et al. [28], Luhmann et al. [29], Holden [30], Li et al. [31], Ma et al. [32], Gao et al. [33], Fang et al. [34], Chen et al. [35], Tian et al. [36], You et al. [37], and Püspöki [38].
This paper is organized as follows: in Section 2, the blending techniques and their applications are explored for Step I. In Section 3, the numerical methods for Steps II and III are addressed. In Section 4, some image examples of face transformations and resembling are provided. In Section 5, a few concluding remarks are addressed. In Appendix A, a proof of Theorem 1 is presented, and in Appendix B, the combinations of cubic splines and ODE approaches are discussed.
2. Curves for Face Boundaries
For simplicity, we consider the right boundary of a face in in Figure 6. We choose the nose’s central point as the origin of polar coordinates, where is parallel to direction . The right-half boundary of the half-face contour can be denoted by
We assume the ending conditions of are just horizontal,
Equation (8) makes the curve figuration easier to connect the right half-face contour, see Figure 1.
Figure 6.
Right half of face contour.
Suppose that is located in in , where , and . The origin of the (Cartesian) coordinates is located at , with and , where H is the mesh resolution. Hence, the polar coordinates of point are given by
For simplicity, we only choose the beginning and end points located at the vertical line: , see Figure 6. Two interpolation methods are provided below. The cubic splines are well-known, and the ODE using the Hermite interpolation for blending curves is new and developed from [17].
2.1. Cubic Spline Interpolation
Consider the piecewise cubic polynomials , where denotes the set of functions having k-order continuous derivatives. Choose and . Assume that are given and the derivatives and on two boundary nodes are known (e.g., in Figure 7). For the function , denote
Then, the piecewise cubic polynomials are given by (see Su and Liu [21] p. 13)
Figure 7.
Cubic spline interpolation.
For the given boundary derivatives and , the values of can be obtained from the linear algebraic system,
where the constants are
Equations (10) can be easily solved due to the tri-diagonal coefficient matrix. Then, the values of second-order derivatives can be found by
or
where and are the one-side limit of from the left and right, respectively. Once and are given, the entire function in (9) is provided.
2.2. Ordinary Differential Equations Using the Hermite Interpolation
For general 2D curves, since suitable Cartesian coordinates (or polar coordinates) cannot be found, the parametric functions are chosen instead (see Figure 8).
Figure 8.
General 2D curves.
The blending curves are modeled as follows. Consider the single equation of the fourth-order ODE
where is the reflection coefficient of the material, and denotes the outward force. The boundary conditions and are given, but and may be zero or arbitrary. Hence, the variational description is employed. Denote as the space of the piecewise Hermite functions (11) satisfying the given boundary conditions. Also, define the energy as follows:
We seek the minimum solution by
For conditions (13) and (14), and are given, but and are unknown, for which the difference equations will be established. Take the difference equations for , for example, since the equations for are similar. The equations for can be obtained from (15) (see [17]) and given as follows. We choose Simpson’s rule to approximate the integration and denote . The interior difference equations for are given by the following:
where the constants are as follows:
Next, the boundary difference equation for is given by
where the constants are as follows:
Last, the boundary difference equation for is given by
where the constants are as follows:
For the right half boundary, we may use the ODE techniques as in Figure 9 to seek more intermediate points. Once and are obtained, we find the intermediate points from the Hermite functions in (11). Note that the curves of the Hermite functions by ODE have minimal energy, which grants the curves good smooth properties. For the given slope and curvature at the curve boundary in Figure 10, the numerical techniques are provided by Chen [24].
We provide the following theorem, whose proofs are given in Appendix A.
Theorem 1.
Denote the energy
Let be the Hermite functions given by with and . Then, the minimal solution of gives the exact cubic spline functions satisfying and (13).
Furthermore, the new combinations of cubic splines and ODE approaches are explored in Appendix B.
Figure 9.
Adding intermediate points.
Figure 10.
A face contour (left) and nose contour (right).
2.3. Intermediate Pixel–Pixel Correspondence Between Two Face Boundaries
To map two face boundaries (1), the intermediate points between and and and can also be used (see Figure 11):
Consider the function , . The simplest function of is the piecewise linear interpolation:
However, the spline cubic interpolation and the ODE using the Hermite interpolation provide better intermediate pixels.
Figure 11.
Intermediate points.
3. Splitting–Integrating Method for the Image Grayness of Harmonic Transformations
The splitting–integrating method (SIM) originated in [14] and was then developed in both algorithms and error analysis in [13]. The image grayness and can be represented by the mean of continuous (or piecewise continuous) intensity functions and :
where , and
Consider an image with 256 gray levels. Numerical methods are used to evaluate image grayness under harmonic transformation. In [12], the splitting–shooting method (SSM) and the splitting–integrating method (SIM) are used for harmonic transformation T and its inversion transformation , respectively. In this paper, we choose the SIM for both T and . The SIM is well suited to harmonic transformation since the sequential convergence of is higher than in the SSM (see [13]).
3.1. Splitting–Integrating Method (SIM) for
First, consider the inverse transformation . From the known distorted image pixels , the approximate functions
where is the order of grayness interpolations, and and denote the constant and the linear interpolation, respectively (see [14]). Below, the composite centroid rule will be used to evaluate the integration values in (20). Let in (21) be split into uniform squares , i.e., , where
where h is the boundary length of given by . For small subpixels , the coordinates of the center of gravity are given by
Based on the composite centroid rule, we have
Hence, the normalized image grayness of at pixel is obtained by
Note that the computational algorithms (23) do not involve any nonlinear solutions, and the sequential errors as are proven to be in [13].
3.2. Harmonic Face Image Transformation T
Let in (22) be split into uniform squares, i.e., . The pixel grayness via T is also evaluated by the composite centroid rule,
where is the gravity center of . In (24), we do need the values and , where and . In general, to find , we need to solve the two nonlinear equations in (2) for the SIM. However, since the approximate harmonic functions are piecewise linear functions, as in Figure 5, the nonlinear solutions are bypassed. Hence, for the harmonic transformation T as , we may retain the convergence rate by the SIM in [13], higher than by the SSM in [12].
Under the harmonic models, the approximate values and , are obtained from the FDM in and , see Section 1.2. Suppose that the transformation T is approximated by the piecewise bilinear transformation . Then, when the values ()) are known, the values of can be easily found. In fact, the FDM can be regarded as a special kind of finite element method using piecewise linear and bilinear interpolant functions and using special rules of integration approximations (see [25]). Therefore, the FDM solutions may formulate the piecewise linear transformation :
Based on the piecewise bilinear interpolation functions, are formulated from the known by the following:
Then, the redesigned SIM of (24) is given by
where and . Note that no nonlinear solutions are needed in (25) either. Here, only one question remains: How do we find from the FDM solutions ? Now, we propose a new technique consisting of four mini steps.
- Step (a):
- Compute all and by the FDM in Step II of Section 2.1,
- Step (b):
- Find potential candidates , which may be determined by and , whereHere, is the largest integer . The definitions of and are similar.
- Step (c):
- Split into two triangles: and in in Figure 12, where are also triangles, and find all possible in such that
Figure 12. The inverse transformation at in . - Step (d):
Note that Steps (a)–(d) above are easy to perform. The computation complexity is also only , where is the total pixel number. More importantly, the computations for faces resembling under T and do not involve any nonlinear solutions.
4. Image Experiments of Age Effects and Face Resembling
The second goal of this paper is to develop and extend the face transformations in [12]. In Figure 3, we converted the female image using the face boundary of the male. By harmonic transformations, the numerical algorithms are given in Steps I–III in Section 1.1, where the finite volume method (FVM) with Delaunay triangulation was used. An image of a teenage girl was produced and is shown in the center of Figure 3. She looks pretty, but she is virtual. No such girl exists in the world.
Encouraged by Figure 3, we propose a new challenging task. Based on the photos of the parents at 50 years old and the child at five years old at the top of Figure 13, we will seek the integrated image to resemble the current image of her at 20 years old at the bottom of Figure 13 as closely as possible. This face resembling is more challenging than the face transformation in [12]. Furthermore, age effects can also be found in Palumbo et al. [39] and Taskiran et al. [40]. Now, we report two image experiments.
Figure 13.
The pictures of a young girl (original girl), her father (Father), her mother (Mother), and her childhood (Child) (with the permission from C.C. Chen).
- Experiment I: Age Effects of Face Appearance. First, we choose the images of the parents only. The images of the father and mother are converted to the same frame of the young girl, and the combined images with different ratios are provided in Figure 14, where “father:mother = 0.1:0.9” denotes the proportions of grayness values given by of the father’s image and of the mother’s image. Disappointedly, the combined images look like a 50-year-old, not like a 20-year-old. Second, we choose images of the mother and child; the combined images are provided in Figure 15. Surprisingly, the images with different ages between teenagers and adults at 50 years old can be observed clearly.
Figure 14. Age effects of parents’ images (with the permission from C.C. Chen).
Figure 15. Age effects of the mother and child (with the permission from C.C. Chen). - Experiment II: Face Resembling. Based on Experiment I, we add the child’s image and choose three bases of images at the top of Figure 13 to resemble the young girl’s image. Since the young girl looks more like her mother, we may assume that the proportion (i.e., contribution) of her father is less, say about and . Then, we may select the resembling images among many possible combinations, which are provided in Figure 16 with their grayness proportion values. However, this selection requires a great deal of computational work. Also, the resemblance selection purely by our eyes may not be trustworthy and reasonable. New numerical techniques are required to choose optimal images automatically.
Figure 16. The resembling images chosen by us (with the permission from C.C. Chen).
When three face images of father, mother, and child have been reshaped to the girl’s face frame (see the bottom of Figure 13), we denote their pixel grayness as , , and at , respectively. Also, the pixel grayness of the young girl is denoted by . The sets of , , and are regarded as three bases, and a linear combination of them is given by , where , , and are positive proportions to be sought. The optimal proportions , , and should be chosen to achieve as best as possible. To this end, the least squares method (LSM) may be employed. The LSM is a popular technique for geometric transformations.
Define the errors
The optimal , satisfy the extreme conditions: , , and . This gives a system of three linear algebraic equations:
where the coefficients , and the explicit constants are given by
Since the total number of is much larger than three, the linear Equation (27) are linearly independent. Hence, the values of , , and can be easily obtained and given by , , and , as shown in Figure 17, with different hairstyles. Amazingly, two artificial integrated images with such optimal proportions reach a good resemblance to the girl’s original image in the center of Figure 18.
Figure 17.
Images of father, mother, and child at the top, reshaped to the girl’s image at the bottom (with the permission from C.C. Chen).
Figure 18.
The optimal resembling images obtained by the least squares method (with the permission from C.C. Chen).
To close this section, we introduce two remarks.
Remark 1.
Face resembling in this paper is critical to finding missing children and identifying criminals via the police. Note that the face images in Figure 13 are standard photos required in a passport: shot from the front with no smile and a closed mouth. Suppose a target and potential patterns are given, where the patterns are of standard face images, but the face target suffers from geometric transformations and illumination effects since it may be taken from a cell phone by chance. The geometric transformations include basic geometric transformations (such as translation, rotation, and scaling) and prospective transformation. Our main efforts are paid to seek these geometric transformations and illumination effects. Then, the restored target can be found by the numerical algorithms in this paper, and the identification of the restored target with one of the standard patterns may be accomplished using the least squares method (LSM). Details are reported in another paper.
Remark 2.
In this remark, let us address the new techniques of face resembling proposed in this paper. The algorithms in Steps I–III in Section 1 are, indeed, of numerical interpolation, numerical integration, numerical ordinary differential equations (ODE), and numerical partial differential equations (PDE). These numerical algorithms were developed from our previous study [13,14,25] for geometric image transformations. From Figure 3, Figure 14, Figure 15, Figure 16, Figure 17 and Figure 18, the virtual face images were created by merging two (or more) face images; they belong to face morphing. Since numerical algorithms are used, numerical face resembling (or morphing) may be called. The numerical algorithms in this paper and [12] are different from those in the face recognition method in [4,8,9,10], where convolutional neural networks (CNN), textual transformations, etc., are used. Our key numerical algorithms are also different from those used in face morphing [3,5,6,11], where deep neural networks, feature comparisons, cross-dissolve techniques, etc., are used. The numerical interpolation in this paper and the Delaunay triangulation in [12] are found in [6]. Furthermore, the rapping techniques in [6] and the facial landmark techniques in [11] are also related to geometrical transformations. The advanced numerical algorithms in this paper and [12] may be used to improve the quality of face morphing. On the other hand, their effective techniques may also be employed for better identification, as in Figure 13 and Figure 16. When face morphing is used by an attacker in malice, face verification is vulnerable. Face-morphing attacks have appeared since 2014. Our numerical techniques can also be used for morphing attack detection (MAD). To describe new numerical algorithms, some computational formulas are essential. To display the efficiency of the algorithms, not only are some face images with grayness errors provided, but also the error analysis of algorithms as in [13] is needed. Nowadays, artificial intelligence (AI) is the hottest topic in research and applications since ChatGPT and Sora appeared. AI includes three basic elements: data, models, and algorithms. In face resembling (or morphing), geometrical and harmonic transformations are the models. We do not deal with massive data but seek good numerical algorithms. Hence, the CPU time can be saved greatly. In summary, the new and advanced numerical algorithms of this paper and [12] can also be applied to Sora to greatly enhance further developments of AI.
5. Concluding Remarks
To conclude, let us address the novelties in this paper.
- The face transformation achieved by harmonic models is shown in three steps in Section 1; this paper focuses on Step I to generate the face boundary, which is needed in the Dirichlet boundary condition for Laplace’s equations in harmonic models.
- We provide two methods for blending boundary curves: the cubic spline and the ODE using the Hermite interpolation. The latter is new and developed from our previous study [17]. For the interior and exterior boundary of the face contour, the curves are piecewise smooth only with second-order derivatives. Under some constraints of characteristic points, the remaining displacements and derivatives of the curves can be determined uniquely by minimizing the energy (15).
- The obtained curves have small curvatures, and they are smooth (or piecewise smooth). Moreover, the popular cubic spline is proved in Appendix A to be a special case of the ODE using the Hermite interpolation. A combined technique in Appendix B is then explored to couple the cubic spline and the ODE using the Hermite interpolation.
- By the SIM, for the general nonlinear functions and in (2), their solutions are needed. However, the approximate harmonic functions are piecewise linear so that the nonlinear solutions can be bypassed. Hence, the algorithms of the SIM with for harmonic transformations are simple, while the convergence rate may remain higher than by the SSM for T used.
- Two image experiments are provided in Section 4. First, different ages of facial appearance can be produced by the images of adults and children. Then, a young boy’s/girl’s image can be resembled from his/her parents and those from their childhood.
- Inspired by two successful experiments, many applications of face transformations may follow: modifying facial appearance, plastic surgery, generating possible offspring images for marriage counseling, and identifying a person for different purposes, such as finding missing children and confirming criminals.
- The boundary techniques and the face combinations used in this paper can be applied not only to image processing and pattern recognition but also to face fusion and morphing, morphing attack detection (MAD), and computer animation, such as Sora, to greatly enhance further developments in AI. See Remarks 1 and 2.
Author Contributions
Methodology, Y.W.; Investigation, C.Y.S.; Writing—original draft, Z.-C.L.; Writing—review & editing, H.-T.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding authors.
Acknowledgments
We thank C.C. Chen for the image experiments in Section 4, and we are also grateful to our reviewers for their valuable comments and suggestions.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A. Proofs for Theorem 1
In this first appendix, we will provide the direct but heuristic proofs of Theorem 1, although other proofs can be found based on Vandergraft [41] (Theorem 4.2, p. 136). We will derive the explicit equations for the Hermite function just as those of the cubic spline functions, by which we will explore the combined algorithms of the two methods given in Appendix B. First, let us derive the cubic splines from the ODE using the Hermite interpolation. For simplicity, we use the simple function to denote the curve since the parametric functions can be proved similarly.
Let . From [21] (p. 12), we obtain the ODE Hermite interpolation from (11) and (12),
Then, we have the first- and second-order derivatives,
The two-sided limits of the second-order derivatives at are given by
Moreover, the continuity of the second-order derivatives at an internal knot, i.e., , yields
where
Equations (A4) and (A5) are the exact cubic interpolation (10). This implies that by adding the continuity of second-order derivatives at the nodes, the ODE Hermite solutions lead to the cubic spline interpolant.
On the other hand, we may also explicitly derive the equations for the minimum energy in (19) to provide it exactly (A4). Since and , we consider the energy , where
The derivatives of order two in (A1) are simplified as
with the known functions
Therefore, we have
where is a constant, and
Next, we evaluate the integrals (A7) by calculus. By using the transformation
the explicit entry is obtained by
Also, we obtain other explicit entries similarly,
Hence, the matrix and vector in (A6) are expressed explicitly,
From the derivatives
we have the algebraic equations
From (A6) and (A8), the interior equations are obtained,
This is (A4) and completes the proof of Theorem 1. □
Appendix B. Combinations of Cubic Splines and ODE Approaches
In the second Appendix, new combinations of cubic splines and ODE solutions are explored, as in Figure A1. For simplicity, we only consider since the case of parametric functions can be extended easily. Define an energy
where in , in , with . From Theorem 1 above, the minimum of is exactly the cubic spline, where
We conclude that the cubic spline is just a special case when and . Now we may carry out a combination as in Figure A1, where point is the interior point such that .
Figure A1.
A combination of cubic splines and ODE solutions.
Now, we give the algorithms for a combination in in Figure A1 to couple the cubic spline interpolant in and the ODE approaches with the Hermite interpolant in . Assume , are known, but are determined in the following three cases:
- Case A:
- The equations are obtained from the cubic splines in Section 2.1.
- Case B:
- The equations are obtained from (16) in Section 2.2.
- Case C:
Note that by using this combination, the coefficient matrix in (A9) is still sparse, positive definite, and symmetric. Therefore, the combined solutions can be easily obtained. It is worth pointing out that the equations in Case A are obtained from (16) in cases where and .
To close this appendix, let us consider the simple support boundary condition. Suppose that the homogeneous simple support boundary condition is given by , and that , and are known. We may modify the energy by
or
where are the admissible functions satisfying and . From integration by parts, we obtain from (A10)
Since is arbitrary at , we conclude . From (A3), we have the left boundary equation
i.e.,
which is exactly the same as that proposed by Su and Liu [21] (p. 13).
References
- Du, S.; Ward, R.K. Improved face representation by nonuniform multilevel selection of Gabor convolution features. IEEE Trans. Syst. Man and Cybern. Part B Cybern. 2009, 39, 1408–1419. [Google Scholar]
- Chang, K.; Bowyer, K.W.; Sarkar, S.; Victor, B. Comparison and combination of ear and face images in appearance-based biometrics. IEEE Trans. Patt. Anal. Machine Intell. 2003, 25, 1160–1165. [Google Scholar] [CrossRef]
- Aloraibi, A.Q. Image morphing techniques: A review. Technium 2023, 9, 41–53. [Google Scholar] [CrossRef]
- Indrawal, D.; Sharma, A. Multi-module convolutional neural network based optimal face recognition with minibatch optimization. Int. J. Image Graph. Signal Process. 2022, 3, 32–46. [Google Scholar] [CrossRef]
- Patel, A.; Lapsiwala, P. Image morphing algorithm: A survey. Int. J. Comput. Appl. 2015, 5, 156–160. [Google Scholar]
- Scherhag, U.; Rathgeb, C.; Merkle, J.; Breithaupt, R.; Bush, C. Face recognition systems under morphing attacks: A Survey. IEEE Access 2019, 7, 2169–3536. [Google Scholar] [CrossRef]
- Scherhag, U.; Rathgeb, C.; Merkle, J.; Busch, C. Deep face representations for differential morphing attack detection. IEEE Trans. Inf. Forensics Secur. 2020, 15, 3625–3639. [Google Scholar] [CrossRef]
- Tuncer, T.; Dogan, S.; Subasi, A. Automated facial expression recognition using novel textural transformation. J. Ambient Intell. Human. Comput. 2023, 14, 9439–9449. [Google Scholar] [CrossRef]
- Guo, G.; Zhang, N. A survey on deep learning based face recognition. Comput. Vis. Image Underst. 2019, 189, 102805. [Google Scholar] [CrossRef]
- You, M.; Han, X.; Xu, Y.; Li, L. Systematic evaluation of deep face recognition methods. Neurocomputing 2020, 388, 144–156. [Google Scholar] [CrossRef]
- Venkatesh, S.; Ramachandra, R.; Raja, K.; Busch, C. Face morphing attack generation and detection: A comprehensive survey. IEEE Trans. Technol. Soc. 2021, 2, 128–145. [Google Scholar] [CrossRef]
- Li, Z.C.; Chiang, J.Y.; Suen, C.Y. Face transformation with harmonic models by finite volume method with Delaunay triangulation. IEEE Trans. Syst. Man and Cybern. Part B Cybern. 2010, 40, 1543–1554. [Google Scholar]
- Li, Z.C. Analysis of discrete techniques for image transformations. Numer. Algor. 1996, 13, 225–263. [Google Scholar] [CrossRef]
- Li, Z.C.; Bui, T.D.; Tang, Y.Y.; Suen, C.Y. Computer Transformation of Digital Images and Patterns; World Scientific: Singapore; London, UK, 1989. [Google Scholar]
- Farin, G. Curve and Surfaces for Computer Aided Geometric Design, A Practical Guide, 2nd ed.; Academic Press: Cambridge, MA, USA, 1990. [Google Scholar]
- Foley, J.D.; van Dam, A.; Feiner, S.K.; Hughes, J.K. Computer Graphics, Principles and Practice, 2nd ed.; Addison-Wesley: Reading, MA, USA, 1990. [Google Scholar]
- Li, Z.C.; Huang, H.T. Blending curves for landing problems by numerical differential equations, II. Numerical methods. Comput. Math. Appl. 2000, 39, 165–187. [Google Scholar] [CrossRef]
- Leichter, I.; Lindenbaum, M.; Rivlin, E. Tacking by afffine kernel transformations using color and boundary cues. IEEE Trans. Patt. Anal. Machine Intell. 2009, 31, 164–171. [Google Scholar] [CrossRef] [PubMed]
- Stahl, J.S.; Wang, S. Globally optimal grouping of symmetric closed boundaries by combining boundary and region information. IEEE Trans. Patt. Anal. Machine Intell. 2008, 30, 395–411. [Google Scholar] [CrossRef]
- DeCarlo, D.; Metaxas, D. Shape evolution with structural and topological changes using blending. IEEE Trans. Patt. Anal. Machine Intell. 2003, 20, 1186–1205. [Google Scholar] [CrossRef]
- Su, B.Q.; Liu, D.Y. Computational Geometry Curve and Surface Modeling; Academic Press: Boston, MA, USA, 1989. [Google Scholar]
- Ostermann, J. Face Animation in MPEG-4. In MPEG-4 Facial Animation: The Standard, Implementation and Applications; Pandzic, I.S., Forchheimer, R., Eds.; John Wiley & Sons, Ltd.: Hoboken, NJ, USA, 2002; p. 21. [Google Scholar]
- Hageman, L.A.; Young, D.M. Applied Iteration Method; Academic Press: Boston, MA, USA, 1981. [Google Scholar]
- Chen, C.C. Face Transformation by Harmonic Model, Generating the Face Boundary. Master’s Thesis, Department of Applied Mathematics, National Sun Yat-sen University, Kaohsiung, Taiwan, 2002. [Google Scholar]
- Li, Z.C. Combined Methods for Elliptic Equations with Singularities, Interface and Infinities; Kluwer Academic Publishers: Boston, MA, USA; Amsterdam, The Nerzerland, 1998. [Google Scholar]
- Castleman, K.R. Geometric transformations. In Microscope Image Processing, 2nd ed.; Merchant, F.A., Castleman, K.R., Eds.; Academic Press/Elsevier: London, UK, 2023; pp. 47–54. [Google Scholar]
- Lakemond, N.; Holmberg, G.; Pettersson, A. Digital transformation in complex systems. IEEE Trans. Eng. Manag. 2024, 71, 192–204. [Google Scholar] [CrossRef]
- de la Rosa, F.L.; Gomez-Sirvent, J.L.; Sanchez-Reolid, R.; Morales, R.; Fernandez-Caballero, A. Geometric transformation-based data augmentation on defect classification of segmented images of semiconductor materials using a ResNet50 convolutional neural network. Expert Syst. Appl. 2022, 206, 117731. [Google Scholar]
- Luhmann, T.; Robson, S.; Kyle, S.; Boehm, J. Close-Range Photogrammetry and 3D Imaging; De Gruyter: Berlin, Germany; Boston, MA, USA, 2020. [Google Scholar] [CrossRef]
- Holden, M. A review of geometric transformations for nonrigid body registration. IEEE Trans. Med. Imaging 2008, 27, 111–128. [Google Scholar] [PubMed]
- Li, J.; Zhou, S.K.; Chellappa, R. Appearance modeling using a geometric transform. IEEE Trans. Image Process. 2009, 18, 889–902. [Google Scholar]
- Ma, K.; Duanmu, Z.; Wang, Z. Geometric transformation invariance image quality assessment using convolutional neural networks. In Proceedings of the 2018 IEEE International Conference on Acoustics, Calgary, AB, Canada, 15–20 April 2018; pp. 6732–6736. [Google Scholar]
- Gao, X.; Lu, W.; Tao, D.; Li, X. Image quality assessment based on multiscale geometric analysis. IEEE Trans. Image Process. 2009, 18, 1409–1423. [Google Scholar] [PubMed]
- Fang, L.; Shi, Z.; Liu, Y.; Li, C.; Pang, M.; Zhao, E. A general geometric transformation model for linescan image registration. EURASIP J. Adv. Signal Process. 2023, 78. [Google Scholar] [CrossRef]
- Chen, J.; Wang, L.; Li, X.; Fang, Y. Arbitrary Continuous Geometric Transformation Networks for Image Registration. In Proceedings of the Advances in Neural Information Processing Systems 32 (NeurIPS 2019), Vancouver, BC, Canada, 8–14 December 2019. [Google Scholar]
- Tian, C.; Zheng, M.; Zuo, W.; Zhang, B.; Zhang, Y.; Zhang, D. Multi-stage image denoising with the wavelet transform. Patt. Recogn. 2023, 134, 109050. [Google Scholar] [CrossRef]
- You, N.; Han, L.; Zhu, D.; Song, W. Research on image denoising in edge detection based on wavelet transform. Appl. Sci. 2023, 13, 1837. [Google Scholar] [CrossRef]
- Püspöki, Z. Local Geometric Transformations in Image Analysis; EPFL: Lausanne, Switzerland, 2016. [Google Scholar] [CrossRef]
- Palumbo, R.; Adams, R.B., Jr.; Hess, U.; Kleck, R.E.; Zebrowitz, L. Age and gender differences in facial attractiveness, but not emotion resemblance, contribute to age and gender stereotypes. Front. Psychol. 2017, 8, 1–18. [Google Scholar] [CrossRef] [PubMed]
- Taskiran, M.; Kahraman, N.; Erdem, C.E. Face recognition: Past, present and future (a review). Digit. Signal Process. 2020, 106, 1–28. [Google Scholar] [CrossRef]
- Vandergraft, J.S. Introduction to Numerical Computations; Academic Press: Cambridge, MA, USA, 1983. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).