Next Article in Journal
Generalizing the Classical Remainder Theorem: A Reflection-Based Methodological Strategy
Previous Article in Journal
Iterated Crank–Nicolson Runge–Kutta Methods and Their Application to Wilson–Cowan Equations and Electroencephalography Simulations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Demon Registration for 2D Empirical Wavelet Transforms

by
Charles-Gérard Lucas
* and
Jérôme Gilles
Department of Mathematics & Statistics, San Diego State University, 5500 Campanile Dr, San Diego, CA 92182, USA
*
Author to whom correspondence should be addressed.
Foundations 2024, 4(4), 690-703; https://doi.org/10.3390/foundations4040043
Submission received: 19 September 2024 / Revised: 6 November 2024 / Accepted: 11 November 2024 / Published: 3 December 2024
(This article belongs to the Section Mathematical Sciences)

Abstract

:
The empirical wavelet transform is a fully adaptive time-scale representation that has been widely used in the last decade. Inspired by the empirical mode decomposition, it consists of filter banks based on harmonic mode supports. Recently, it has been generalized to build the filter banks from any generating function using mappings. In practice, the harmonic mode supports can have a low-constrained shape in 2D, leading to numerical difficulties to estimate mappings adapted to the construction of empirical wavelet filters. This work aims to propose an efficient numerical scheme to compute empirical wavelet coefficients using the demons registration algorithm. Results show that the proposed approach is robust, accurate, and continuous wavelet filters permitting reconstruction with a low signal-to-noise ratio. An application for texture segmentation of scanning tunneling microscope images is also presented.

1. Introduction

The empirical wavelet transform is a fully adaptive time-scale representation, introduced in [1], based on data-driven filter banks. Unlike the traditional wavelet transform, the wavelet filters are not designed on the basis of prescribed scales independent of the data under study, but on the basis of supports that contain the underlying harmonic modes. This approach is inspired by the empirical mode decomposition [2] but is based on solid theoretical foundations that the latter lacks. Due to its robust performance in decomposing images, it has led to many applications such as glaucoma detection [3,4], hyperspectral image classification [5], cancer histopathological image classification [6], medical image fusion [7,8] and texture segmentation [9]. Notably, it has been shown to outperform traditional wavelet transforms in extracting appropriate texture features from images [10,11].
The last decade has seen an intensive development of the two steps involved in the 2D empirical wavelet transform: ( i ) the extraction of regions containing the harmonic modes and ( i i ) the design of filters mainly supported by these regions. The extraction of harmonic modes can be performed by scale-space representations [12], and several methods of separation of the harmonic modes in possibly low-constrained shaped supports have been proposed, such as the Tensor [1], Ridgelet, Curvelet [11], Watershed [13] and Voronoi [14] methods. However, the design of filter banks has mainly long been limited to a specific generating function based on the Littlewood–Paley formulation. This formulation relies on a separable definition or the distance to the boundaries of the supports, which limits its extension to other generating functions.
Recently, a general framework has been proposed to consider classic generating functions [15]. Deformations of a homogeneous or separable wavelet kernel are carried out by mappings between the data’s Fourier supports and the generating function’s Fourier support. In practice, this approach suffers from the difficulty of estimating the required mappings with constraints of invertibility, continuity, and differentiability. Such an estimation can be performed by the well-known demon algorithm [16], as first proposed by [15], or its variants [17,18]. These fast algorithms have been widely used and compared for medical image registration [19,20], where they have shown to provide robust and accurate estimates. However, an in-depth investigation of their use for empirical wavelet transform remains a key challenge. This is the main objective addressed in this work.
This manuscript is organized as follows. In Section 3, we recall the framework of empirical wavelet transform based on mappings and present different demon algorithms for mapping estimation. In particular, as a first contribution, we build specific band-pass wavelet filters from homogeneous or separable wavelet kernels, which is suitable for an empirical analysis of the wavelet transform. Section 4 presents the main contribution of this manuscript: a comparative analysis of various demon algorithms for designing continuous wavelet filters. The accuracy of the estimated filters and the effect of the estimation process on wavelet reconstruction is thoroughly analyzed. Additionally, to demonstrate the practical utility of the proposed tools, we include an illustration of texture segmentation for scanning tunneling microscope images. Section 4 provides a detailed discussion of the findings.

2. Notations

We recall that an invertible function γ is called a homeomorphism if it is continuous of continuous inverse and a diffeomorphism if it is infinitely differentiable of infinitely differentiable inverse. We consider that the space of square-integrable functions L 2 ( R 2 ) is endowed with the usual inner product
f , g = R 2 f ( x ) g ( x ) ¯ d x .
The Fourier transform f ^ of a function f L 2 ( R 2 ) and its inverse are, respectively, given by
f ^ ( ξ ) = F ( f ) ( ξ ) = R 2 f ( x ) e 2 π i ( ξ · x ) d x ,
f ( x ) = F 1 ( f ^ ) ( x ) = R 2 f ^ ( ξ ) e 2 π i ( ξ · x ) d ξ ,
where · stands for the dot product in R 2 .

3. Construction of Empirical Wavelet Transforms

3.1. Empirical Wavelet Systems

The construction of empirical wavelets relies on the partitioning of the Fourier domain Ω . Technically, we consider a family of disjoint open sets { Ω n } n Υ , with  Υ Z , of closures Ω ¯ n covering the Fourier domain, i.e.,  Ω = n Υ   Ω n ¯ . In this work, we focus on real-valued images, which implies that the Fourier domain is symmetric, leading us to consider a partition { Ω n } n Υ that is symmetric, i.e., such that Ω n = { ξ ξ Ω n } . To obtain such a partition, the modes of the Fourier spectrum are obtained by scale-space representation [12], and the Fourier domain is partitioned by the Watershed [11] or Voronoi [14] methods. Figure 1 shows an example of an image and the Watershed and Voronoi partitions of the logarithm of its Fourier spectrum using a scale-space step-size parameter set to s 0 = 0.8 .
Symmetric empirical wavelet systems are built as filters mostly supported on the sets Ω n Ω n for n Υ + = { n Υ n 0 } . The authors of [15] have proposed building filters χ n from a wavelet kernel ψ using mappings γ n on R 2 . Let ψ be such that its Fourier transform ψ ^ is localized in frequency and compactly supported (or rapidly decaying) by a connected open subset Λ . Let { γ n } n Υ be mappings on R 2 such that Λ = γ n ( Ω n ) if   Ω n is bounded and Λ γ n ( Ω n ) otherwise. Empirical wavelet systems ψ n and their symmetric counterparts χ n are then defined as follows.
Definition 1
(Normalized empirical wavelet system). Assume that the mappings γ n are diffeomorphisms. The symmetric empirical wavelet system { χ n } n Υ corresponding to the partition { Ω n } n Υ is defined by, for all ξ R 2 ,
χ ^ 0 ( ξ ) = ψ ^ 0 ( ξ ) a n d n Υ { 0 } , χ ^ n ( ξ ) = 1 2 ψ ^ n ( ξ ) + ψ ^ n ( ξ ) ,
where, for every n Υ ,
ψ ^ n ( ξ ) = 1 a n ( ξ ) ψ ^ γ n ( ξ ) , w i t h a n ( ξ ) = 1 | det J γ n ( ξ ) | ,
with γ n : ξ γ n ( ξ ) and J γ n being the Jacobian of the mapping γ n .
The symmetry of the filter χ ^ n has to be understood with respect to the Fourier support n, i.e.,  χ ^ n = χ ^ n . The normalization coefficient a n ( ξ ) ensures that
Ω n | χ ^ n ( ξ ) | 2 d ξ = Λ | ψ ^ ( ξ ) | 2 d ξ ,
in most cases (see [15] for more details). If γ n is not a diffeomorphism, the substitution theorem ensuring the energy conservation (6) is not valid despite the use of the normalization coefficient a n ( ξ ) . However, in practice, estimating diffeomorphisms is a difficult and computationally expensive task. Since an intervertible continuous function is a homeomorphism if and only if it is an open map, i.e., a map for which the preimage of an open set is an open set, the existence of homeomorphisms is a milder assumption and their estimation is less difficult. We thus propose an unnormalized definition for the case when γ n is only a homeomorphism by removing the Jacobian determinant from Definition 1, as follows.
Definition 2
(Unnormalized empirical wavelet system). Assume that the mapping γ n is a homeomorphism. The unnormalized symmetric empirical wavelet system { χ n } n Υ   corresponding to the partition { Ω n } n Υ is defined by, for all ξ R 2 ,
χ ^ 0 ( ξ ) = ψ ^ 0 ( ξ ) a n d n Υ { 0 } , χ ^ n ( ξ ) = ψ ^ n ( ξ ) + ψ ^ n ( ξ ) ,
where ψ ^ n = ψ ^ γ n and γ n : ξ γ n ( ξ ) .

3.2. Empirical Wavelet Transform

The empirical wavelet transform consists of a filtering process from a normalized or unnormalized empirical wavelet system as follows.
Definition 3
(Empirical wavelet transform). The symmetric empirical wavelet transform is defined by, for all n Υ ,
E χ f ( · , n ) = F 1 f ^ . χ ^ n ¯ ,
where F denotes the inverse Fourier transform.
Figure 2 shows an example of unnormalized wavelet filter’s Fourier filters χ ^ n and the resulting wavelet coefficients E χ f ( · , n ) for the toy image in Figure 1 (left) and the Watershed partition of its Fourier spectrum given in Figure 1 (middle).
The reconstruction of a real-valued image f from its symmetric empirical wavelet transform E χ f is guaranteed by Theorem 4.3 in [15], recalled hereafter.
Theorem 1
(Reconstruction). Let Υ + = { n Υ : n 0 } . Assume that, for  a . e . ξ R 2 , 0 < n Υ + ψ ^ n ( ξ ) 2 < and n Υ + { 0 } ψ ^ n ( ξ ) ψ ^ n ( ξ ) < . Then
f = n Υ + E χ f ( · , n ) F 1 χ ^ n m Υ + χ ^ m 2 ,
where ★ denotes the convolution of functions and F 1 denotes the inverse Fourier transform.

3.3. Band-Pass Empirical Wavelets

For the study of the numerical behavior of the empirical wavelet transform, it is more convenient to consider band-pass filters. Therefore, we propose in this section defining homogeneous or separable 2D wavelet band-pass filters. The proposed definition extends the band-pass wavelet filters introduced in [1,11], which are based on the semi-Euclidean distance to support boundaries, thus corresponding to a discrete mapping. In 1D, the continuous band-pass wavelet kernel can be defined as follows.
Definition 4
(1D band-pass wavelet). The 1D band-pass wavelet, mostly supported by the segment Λ = [ 1 2 , 1 2 ] , is defined by, for every ξ R ,
ψ ^ τ 1 D ( ξ ) = 1 i f   | ξ | < 1 2 τ , cos π 2 β τ 1 2 + | ξ | 2 τ i f   1 2 τ | ξ | 1 2 + τ , 0 o t h e r w i s e ,
where 0 < τ < 1 2 is a transition width and β is a continuous function on [ 0 , 1 ] such that β ( 0 ) = 0 , β ( 1 ) = 1 and β ( x ) + β ( 1 x ) = 1 for every x [ 0 , 1 ] .
The function β is usually chosen as β ( x ) = x 4 ( 35 84 x + 70 x 2 20 x 3 ) . The 1D band-pass wavelet can be extended to 2D in a homogeneous or separable way, as proposed in the following definitions.
Definition 5
(Disk band-pass wavelet). The disk band-pass wavelet, mostly supported by the disk Λ = B ( 0 , 1 2 ) , is defined by, for every ξ R 2 ,
ψ ^ τ D ( ξ ) = 1 i f   ξ 2 < 1 2 τ , cos π 2 β τ 1 2 + ξ 2 2 τ i f   1 2 τ ξ 2 1 2 + τ , 0 o t h e r w i s e ,
where 0 < τ < 1 2 is a transition width and β is a continuous function on [ 0 , 1 ] such that β ( 0 ) = 0 , β ( 1 ) = 1 and β ( x ) + β ( 1 x ) = 1 for every x [ 0 , 1 ] .
Definition 6
(Square band-pass wavelet). The square band-pass wavelet, mostly supported by the square Λ = [ 1 2 , 1 2 ] 2 , is defined by, for every ξ = ( ξ 1 , ξ 2 ) R 2 ,
ψ ^ τ S ( ξ ) = ψ ^ τ 1 D ( ξ 1 ) ψ ^ τ 1 D ( ξ 2 ) ,
where 0 < τ < 1 2 is a transition width.
Figure 3 shows examples of disk and square band-pass wavelet filters.
Theorem 2.
Let χ n D , τ = χ τ D γ n and χ n S , τ = χ τ S γ n , the (normalized or unnormalized) symmetric wavelet systems resulting from the disk and square band-pass wavelets ψ ^ τ D and ψ ^ τ S , respectively, for every n Υ . The reconstruction Formula (9) holds for the normalized and unnormalized systems { χ n D , τ } n Υ and { χ n S , τ } n Υ .
Proof. 
Let ψ ^ τ be either ψ ^ τ = ψ ^ τ D or ψ ^ τ = ψ ^ τ S . We set Λ τ = B ( 0 , 1 2 + τ ) if ψ ^ τ = ψ ^ τ D and Λ τ = [ 1 2 τ , 1 2 + τ ] 2 if ψ ^ τ = ψ ^ τ S . Let ξ Ω m . Since there exists a finite number of γ n such that γ n ( ξ ) Λ τ , we have
n Υ + ψ ^ n ( ξ ) 2 = n Υ + 1 a n ( ξ ) ψ ^ τ ( γ n ( ξ ) ) 2 = n Υ m + 1 a n ( ξ ) ψ ^ τ ( γ n ( ξ ) ) 2 < + ,
where Υ m + = { n Υ + : γ n ( ξ ) Λ τ } and a n ( ξ ) = 1 or a n ( ξ ) = 1 / | det J γ n ( ξ ) | for the normalized or unnormalized empirical wavelet system, respectively. Moreover, since ψ ^ τ ( γ m ( ξ ) ) 0 and a n ( ξ ) > 0 for every n Υ , we have 0 < n Υ + | ψ ^ n ( ξ ) | 2 . Similarly, we can show that n Υ + | ψ ^ n ( ξ ) ψ ^ n ( ξ ) | < + . Hence, the reconstruction Formula (9) for { χ n D , τ } n Υ and { χ n S , τ } n Υ holds by Theorem 1.    □

3.4. Mapping Estimation

In practice, the mappings γ n in Definitions 1 and 2 have to be estimated. The Thirion’s demon algorithm [16] is a mapping estimation scheme inspired by a diffusion process in which the targeted mapping is represented by a displacement field γ . This method alternates between solving the flow equations and regularization. To give a theoretical justification for this method, [18] revisited it as the following optimization problem:
minimize γ , c F ( R 2 ) Λ Ω c 2 2 + 1 σ x 2 γ c 2 2 + R ( γ ) ,
where Λ and Ω are considered as functions from R 2 to R , F ( R 2 ) denotes the set of mappings on R 2 , c is an intermediate mapping to allow spatial uncertainties, σ x is a parameter controlling the spatial uncertainty on the mappings, and R ( γ ) is a regularization term.
The additive demon algorithm proposed in [17] consists of estimating the minimum s of Equation (14) using an intermediate displacement field u such that c = γ + u and alternate
minimize u F ( R 2 ) Λ Ω ( γ + u ) 2 2 + 1 σ x 2 u 2 2 : = E ( u ) ,
minimize γ F ( R 2 ) 1 σ x 2 γ c 2 2 + R ( γ ) .
The displacement field u minimizing Equation (15) is approximated by, for every position p R N ,
u ( p ) Λ ( p ) Ω γ ( p ) ( Ω γ ) ( p ) 2 2 σ i 2 σ x 2 | Λ ( p ) Ω γ ( p ) | 2 Ω ,
where ∇ denotes the gradient of functions. This implies that σ x controls the maximum step length: u ( p ) 2 σ x / 2 for every p R 2 . As for the minimization of Equation (16) with a regularization term R ( γ ) = J γ 2 2 / σ d 2 , it corresponds to a convolution with a Gaussian kernel G diff ( σ d ) of standard deviation σ d . This regularization R ( γ ) has been modified by [17] in order to add a fluid-like regularization G fluid ( σ f ) of standard deviation σ f . Moreover, to ensure the mapping γ to be diffeomorphic, an alternative update of c with an exponential field has been proposed in [18]: c = s exp ( u ) . The additive and diffeomorphic demon algorithms are summarized in Algorithm 1.
Algorithm 1: Vercauteren’s demons algorithm
Foundations 04 00043 i001
    For large deformations, a multiresolution scheme is necessary: the demon algorithm is performed iteratively from the lowest to the highest resolution. This scheme is summarized in Algorithm 2.
Algorithm 2: Multiresolution demons algorithm
Foundations 04 00043 i002

4. Numerical Experiments

In this section, we compare the Thirion’s demon algorithm (MATLAB built-in function imregdemons) and the additive and diffeomorphic Vercauteren’s demon algorithms for the computation of estimates γ ˜ n of the mappings γ n . We consider the toy image and the sets Ω n obtained by either Watershed or Voronoi partitioning presented in Figure 1.

4.1. Mapping Estimation Set-Up

For the three demon algorithms, the diffusion-like parameter σ d and number of resolution levels N level are selected by minimizing the quadratic risk Λ Ω n γ ˜ n 2 2 over the values ( σ d , N l e v e l ) ( 0.3 , 0.31 , , 0.5 ) × ( n P 1 , n P ) , with n P being the highest integer such that 2 n P is smaller than each dimension of the image. For the Thirions’s demon algorithm, the numbers iterations at each resolution level is set to ( 2 4 , , 2 N l e v e l + 1 ) from the highest to the lowest level. For the Vercauteren’s demon algorithm, the maximum step length is set to σ x = 5 , the fluid-like regularization is set to σ f = 1 , the error threshold in the stop criterion is set to ϵ = 10 3 and the maximum number of iterations is set to K = 500 .

4.2. Assessment Measures

The accuracy of an estimate γ ˜ n is measured using the Root Mean Squared Error defined as
RMSE ( Λ , Ω n , γ ˜ n ) = 1 N pixels Λ Ω n γ ˜ n 2 ,
where N pixels is the number of pixels in the image Λ . The reconstruction f ˜ of the image f, with values in [ 0 , 1 ] , obtained by Equation (9) is assessed using the peak signal-to-noise ratio (PSNR) defined as
PSNR ( f , f ˜ ) = 10 log 10 f ˜ f 2 2 .

4.3. Mapping Estimation Assessment

We assess the behavior of the different algorithms to map a partition to a generating function’s Fourier support, which is usually a disk or a square. Table 1 reports the average RMSE of the estimated mappings γ ˜ n from the sets Ω n of the Watershed or Voronoi partition to the disk or square Λ for the different demon algorithms. The additive and Thirion’s demon algorithms have similar performance on average, and both outperform the diffeomorphic demon algorithm due to the latter’s additional constraint on diffeomorphicity. However, the Thirion’s demon algorithm suffers from more variability than the additive demon algorithm. Furthermore, all demon algorithms achieve higher performance for the more shape-constrained Voronoi partition than for the Watershed partition and better for the disk than for the square due to its irregularity.
In addition, Table 2 reports the computational time of the different demon algorithms for the Watershed and Voronoi partitions { Ω n } n Υ and the disk and square sets Λ . The Thirion’s demon algorithm is the fastest method, and the diffeomorphic demon algorithm is much more computationally costly than the two other demon algorithms. Moreover, these results suggest that the computational time does not depend on the shape of the regions Ω n but only on their number.
To assess the invertibility, continuity, and diffeomorphicity of the mapping estimates, we explore the behavior of the resulting empirical wavelet coefficients expected to be concave and equal to one on most of each support Ω n . Figure 4 and Figure 5 show the disk band-pass empirical wavelet coefficients χ ^ n D , τ , where τ = 0.2 , respectively, with and without normalization for the Watershed partition and the different demon algorithms. The normalized coefficients are not concave for the additive and Thirion’s demon algorithms due to the discontinuity of the normalization coefficient, while they are concave but very sparse for the diffeomorphic demon algorithm. The unnormalized wavelet coefficients are more satisfactory as they are continuous, concave and mostly equal to one for all sets Ω n . However, the coefficients obtained using the diffeomorphic demon algorithm are more spread out due to the additional constraint of differentiability. As for the Thirion’s demon algorithm, it can miss an important part of a filter (see the top right corner of Figure 5).
In conclusion, the additive demon algorithm provides accurate continuous mapping estimates to compute robust unnormalized empirical wavelet filters in a reasonable computation time. As for the diffeomorphic demon algorithm, it provides inaccurate diffeomorphic mapping estimates, leading to unsuitable normalized filters.

4.4. Reconstruction Assessment

To assess the numerical behavior of the empirical wavelet transform, which is theoretically lossless for the disk and square band-pass filter according to Theorem 2, we examine the quality of reconstruction. Table 3 reports the PSNR of the empirical wavelet reconstruction of the toy image for the disk and square band-pass filters with different transition widths τ , the Watershed and Voronoi partitions, and the different demon algorithms. The additive demon algorithm provides better, or at least similar, reconstruction to the other demon algorithms. Moreover, the normalization in the empirical wavelet filters has no impact on the reconstruction performance for the different demons algorithms.
Despite the accuracy of the mapping estimation obtained in Table 1, the related wavelet reconstruction can be corrupted when the estimated filter bank does not entirely cover the Fourier domain. Notably, the transition width τ = 0.1 leads to lower signal-to-noise ratios than the transition width τ = 0.2 . Indeed, in case of an inaccurate estimate of a mapping, τ = 0.2 ensures a larger covering of the Fourier domain by the wavelet filters than τ = 0.1 . In contrast, the transition width τ = 0.3 can lead to artifacts in a symmetric wavelet filter χ n due to overlaps of paired wavelet filters ψ ^ n and ψ ^ n , as confirmed by lower signal-to-noise ratios for the disk band-pass transform using the Watershed partition and a diffeomorphic demon algorithm compared to the transition width τ = 0.2 .

4.5. Application to Texture Segmentation

In this section, we illustrate the relevance of the proposed Empirical wavelet transform in the segmentation of scanning tunneling microscope images. Analyzing the structure and chemical properties of self-assembled monolayers of organic molecules is the core of many applications in nanoscience and nanotechnology [21,22]. These properties result in variations in the textures that are crucial to identify. Recently, Empirical Curvelet Wavelet Transform (EWT-Curvelet), obtained by partitioning the Fourier domain in scales and angles [13], has been shown to provide relevant texture features for scanning tunneling microscope images of self-assembled monolayers [23,24,25]. In particular, the EWT-Curvelet based segmentation outperforms the state-of-the-art methods for this task [24]. Therefore, we propose a comparison of our approach with the latter.
We perform the texture segmentation according to the procedure of [10], which consists of the following steps. First, we extract the cartoon and textural parts u and v, respectively, of an image f by solving the cartoon–texture decomposition model [26], defined as follows:
minimize u F , v G u 1 + μ v G s . t . f = u + v ,
where F is the set of functions from R 2 to R and G is the set of oscillating functions. Following numerical analyses conducted by [27], the parameter controlling the oscillation degree of the textural part is set to μ = N pixels / 2 . This problem is solved numerically using the algorithm described in [28]. Next, we compute the local energy of the empirical wavelet transform E χ v of the textural part v, defined as the local average of the wavelet coefficients E χ v ( . , n ) for each frequency band n, i.e.,
T n E ( x ) = 1 N W y W x E χ v ( y , n ) 2 ,
where W x is a window centered at the pixel x of size set to N W = 19 × 19 , following the work of [10]. Finally, the segmentation is obtained by performing a pixel-wise k-means clustering with the cityblock distance on the local energy (21), for preselected numbers of clusters k.
Figure 6 shows partitions of the Fourier spectrum of a scanning tunneling microscope image obtained by performing the Curvelet, Watershed and Voronoi methods with a scale-space step-size s 0 = 0.2 on the logarithm of the Fourier spectrum. The Curvelet method results in a large number of sets Ω n , namely 393, while the Watershed and Voronoi methods extract as many sets Ω n as detected harmonic modes, 17 in this case.
Figure 7 shows scanning tunneling microscope images, their corresponding textural parts, and their segmentation for the EWT-Curvelet and the proposed disk and square band-pass empirical wavelet transforms with τ = 0.2 for both Voronoi and Watershed partitioning. The proposed empirical wavelet transforms provide accurate and comparable texture masks for the different images. In all cases, the segmentation performance with the proposed approach is better than with the EWT-Curvelet, as can be clearly seen in the last two rows of Figure 7.

5. Discussion

As shown by numerical experiments, the additive demon algorithm provides accurate continuous mappings suitable for the empirical wavelet transform. The results show that this approach has satisfactory performances for reconstruction and texture extraction. In contrast, diffeomorphic mapping estimates are harder to obtain and take longer. This suggests that the use of normalization proposed in previous work [15] should be avoided in practice.
Moreover, although the proposed algorithm applies to any homogeneous or separable wavelet kernel and any Fourier partition, the selection of the wavelet kernel’s support and the partitioning method is crucial to optimize the mapping estimation performance. The study conducted in the present work shows that a Voronoi partition and a wavelet kernel defined on a disk result in a better performance overall.
The tools introduced in this work are ready for application on real-world data. In particular, they have been shown to provide relevant texture features for scanning tunneling microscope images for the different studied wavelet kernels. In addition, the number of features resulting from the Voronoi or Watershed partitioning methods is reasonable compared to the one obtained by the Curvelet transform used in [24].
Future work will include a thorough study of the stop criterion of the additive demon algorithm. In addition, an in-depth study of texture segmentation will also be carried out on a large labeled dataset, including a quantitative assessment of the impacts of the Fourier partitioning on the segmentation performance.

6. Conclusions

This work proposed an efficient algorithm for the empirical wavelet transform from any wavelet kernel based on demon registration. Among the different meticulously compared demon algorithms, the additive one has been shown to provide accurate numerical empirical wavelet systems with good properties of reconstruction, as validated for suitable wavelet kernels. The relevance of this approach for texture feature extraction has also been highlighted.

Author Contributions

Conceptualization, C.-G.L. and J.G.; methodology, C.-G.L. and J.G.; software, C.-G.L. and J.G.; validation, C.-G.L.; formal analysis, C.-G.L.; investigation, C.-G.L.; resources, C.-G.L. and J.G.; data curation, C.-G.L. and J.G.; writing—original draft preparation, C.-G.L.; writing—review and editing, C.-G.L. and J.G.; visualization, C.-G.L.; supervision, J.G.; project administration, J.G.; funding acquisition, J.G. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Air Force Office of Scientific Research, grant FA9550-21-1-0275.

Data Availability Statement

The MATLAB toolbox for the additive and diffeomorphic Vercauteren’s demons lgorithms are freely available at https://www.mathworks.com/matlabcentral/fileexchange/39194-diffeomorphic-log-demons-image-registration (accessed on 10 November 2024). The MATLAB toolbox for the empirical wavelet transform is freely available at https://github.com/jegilles/Empirical-Wavelets (accessed on 10 November 2024). The scanning tunneling microscope images are available on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Gilles, J. Empirical Wavelet Transform. IEEE Trans. Signal Process. 2013, 61, 3999–4010. [Google Scholar] [CrossRef]
  2. Huang, N.E.; Shen, Z.; Long, S.R.; Wu, M.C.; Shih, H.H.; Zheng, Q.; Yen, N.C.; Tung, C.C.; Liu, H.H. The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis. Proc. R. Soc. Lond. Ser. A Math. Phys. Eng. Sci. 1998, 454, 903–995. [Google Scholar] [CrossRef]
  3. Maheshwari, S.; Pachori, R.B.; Acharya, U.R. Automated diagnosis of glaucoma using empirical wavelet transform and correntropy features extracted from fundus images. IEEE J. Biomed. Health Inform. 2016, 21, 803–813. [Google Scholar] [CrossRef]
  4. Parashar, D.; Agrawal, D.K. Automatic classification of glaucoma stages using two-dimensional tensor empirical wavelet transform. IEEE Signal Process. Lett. 2020, 28, 66–70. [Google Scholar] [CrossRef]
  5. Nidhin Prabhakar, T.V.; Geetha, P. Two-dimensional empirical wavelet transform based supervised hyperspectral image classification. ISPRS J. Photogramm. Remote Sens. 2017, 133, 37–45. [Google Scholar] [CrossRef]
  6. Deo, B.S.; Pal, M.; Panigrahi, P.K.; Pradhan, A. An ensemble deep learning model with empirical wavelet transform feature for oral cancer histopathological image classification. Int. J. Data Sci. Anal. 2024, 1–18. [Google Scholar] [CrossRef]
  7. Sundar, K.J.A.; Jahnavi, M.; Lakshmisaritha, K. Multi-sensor image fusion based on empirical wavelet transform. In Proceedings of the IEEE 2017 International Conference on Electrical, Electronics, Communication, Computer, and Optimization Techniques (ICEECCOT), Mysuru, India, 15–16 December 2017; pp. 93–97. [Google Scholar] [CrossRef]
  8. Polinati, S.; Dhuli, R. Multimodal medical image fusion using empirical wavelet decomposition and local energy maxima. Optik 2020, 205, 163947. [Google Scholar] [CrossRef]
  9. Huang, Y.; Zhou, F.; Gilles, J. Empirical curvelet based Fully Convolutional Network for supervised texture image segmentation. Neurocomputing 2019, 349, 31–43. [Google Scholar] [CrossRef]
  10. Huang, Y.; De Bortoli, V.; Zhou, F.; Gilles, J. Review of wavelet-based unsupervised texture segmentation, advantage of adaptive wavelets. IET Image Process. 2018, 12, 1626–1638. [Google Scholar] [CrossRef]
  11. Hurat, B.; Alvarado, Z.; Gilles, J. The Empirical Watershed Wavelet. J. Imaging 2020, 6, 140. [Google Scholar] [CrossRef]
  12. Gilles, J.; Heal, K. A parameterless scale-space approach to find meaningful modes in histograms—Application to image and spectrum segmentation. Int. J. Wavelets Multiresolut. Inf. Process. 2014, 12, 1450044. [Google Scholar] [CrossRef]
  13. Gilles, J.; Tran, G.; Osher, S. 2D Empirical transforms. Wavelets, Ridgelets and Curvelets Revisited. SIAM J. Imaging Sci. 2014, 7, 157–186. [Google Scholar] [CrossRef]
  14. Gilles, J. Empirical Voronoi wavelets. Constr. Math. Anal. 2022, 5, 183–189. [Google Scholar] [CrossRef]
  15. Lucas, C.G.; Gilles, J. Multidimensional empirical wavelet transform. arXiv 2024, arXiv:2405.06188. [Google Scholar]
  16. Thirion, J.P. Image matching as a diffusion process: An analogy with Maxwell’s demons. Med Image Anal. 1998, 2, 243–260. [Google Scholar] [CrossRef]
  17. Cachier, P.; Bardinet, E.; Dormont, D.; Pennec, X.; Ayache, N. Iconic feature based nonrigid registration: The PASHA algorithm. Comput. Vis. Image Underst. 2003, 89, 272–298. [Google Scholar] [CrossRef]
  18. Vercauteren, T.; Pennec, X.; Perchant, A.; Ayache, N. Diffeomorphic demons: Efficient non-parametric image registration. NeuroImage 2009, 45, S61–S72. [Google Scholar] [CrossRef]
  19. Wang, C.; Ren, Q.; Qin, X.; Yu, Y. Adaptive diffeomorphic multiresolution demons and their application to same modality medical image registration with large deformation. Int. J. Biomed. Imaging 2018, 2018, 7314612. [Google Scholar] [CrossRef]
  20. Tabassum, I.; Min, L.; Shafique, A.; Saleem, M. Registration of Chest Radiographs Using A Diffeomorphic Demons Based Method. In Proceedings of the 2020 IEEE International Conference on Progress in Informatics and Computing (PIC), Shanghai, China, 18–20 December 2020; pp. 195–201. [Google Scholar] [CrossRef]
  21. Love, J.C.; Estroff, L.A.; Kriebel, J.K.; Nuzzo, R.G.; Whitesides, G.M. Self-assembled monolayers of thiolates on metals as a form of nanotechnology. Chem. Rev. 2005, 105, 1103–1170. [Google Scholar] [CrossRef]
  22. Gooding, J.J.; Mearns, F.; Yang, W.; Liu, J. Self-assembled monolayers into the 21st century: Recent advances and applications. Electroanal. Int. J. Devoted Fundam. Pract. Asp. Electroanal. 2003, 15, 81–96. [Google Scholar] [CrossRef]
  23. Guttentag, A.I.; Barr, K.K.; Song, T.B.; Bui, K.V.; Fauman, J.N.; Torres, L.F.; Kes, D.D.; Ciomaga, A.; Gilles, J.; Sullivan, N.F.; et al. Hexagons to ribbons: Flipping cyanide on Au {111}. J. Am. Chem. Soc. 2016, 138, 15580–15586. [Google Scholar] [CrossRef] [PubMed]
  24. Bui, K.; Fauman, J.; Kes, D.; Torres Mandiola, L.; Ciomaga, A.; Salazar, R.; Bertozzi, A.L.; Gilles, J.; Goronzy, D.P.; Guttentag, A.I.; et al. Segmentation of scanning tunneling microscopy images using variational methods and empirical wavelets. Pattern Anal. Appl. 2020, 23, 625–651. [Google Scholar] [CrossRef]
  25. Guttentag, A.I.; Wächter, T.; Barr, K.K.; Abendroth, J.M.; Song, T.B.; Sullivan, N.F.; Yang, Y.; Allara, D.L.; Zharnikov, M.; Weiss, P.S. Surface structure and electron transfer dynamics of the self-assembly of cyanide on Au {111}. J. Phys. Chem. C 2016, 120, 26736–26746. [Google Scholar] [CrossRef]
  26. Aujol, J.F.; Chan, T.F. Combining geometrical and textured information to perform image classification. J. Vis. Commun. Image Represent. 2006, 17, 1004–1023. [Google Scholar] [CrossRef]
  27. Gilles, J. Multiscale texture separation. Multiscale Model. Simul. 2012, 10, 1409–1427. [Google Scholar] [CrossRef]
  28. Gilles, J.; Osher, S. Bregman Implementation of Meyer’s G-Norm for Cartoon+ Textures Decomposition; UCLA Cam Report; UCLA Mathematics: Los Angeles, CA, USA, 2011; pp. 11–73. [Google Scholar]
Figure 1. Fourier partitioning. Toy image of size 256 × 256 along with the (middle) Watershed and (right) Voronoi partitions (overlapping in red) of the logarithm of their Fourier spectra. By convention, the center of the Fourier spectrum corresponds to the frequency ( 0 , 0 ) .
Figure 1. Fourier partitioning. Toy image of size 256 × 256 along with the (middle) Watershed and (right) Voronoi partitions (overlapping in red) of the logarithm of their Fourier spectra. By convention, the center of the Fourier spectrum corresponds to the frequency ( 0 , 0 ) .
Foundations 04 00043 g001
Figure 2. Empirical wavelet filtering. Example of unnormalized symmetric empirical wavelet filters χ n in the Fourier domain (left) and resulting wavelet coefficients E χ f ( · , n ) (right), for n = 1 , , 10 , associated with the toy image using the Watershed partitioning.
Figure 2. Empirical wavelet filtering. Example of unnormalized symmetric empirical wavelet filters χ n in the Fourier domain (left) and resulting wavelet coefficients E χ f ( · , n ) (right), for n = 1 , , 10 , associated with the toy image using the Watershed partitioning.
Foundations 04 00043 g002
Figure 3. Band-pass wavelet. Disk (left) and square (right) band-pass wavelet with transition width τ = 0.2 .
Figure 3. Band-pass wavelet. Disk (left) and square (right) band-pass wavelet with transition width τ = 0.2 .
Foundations 04 00043 g003
Figure 4. Normalized wavelet systems. Normalized disk band-pass empirical wavelet filters χ ^ n D , τ with τ = 0.2 for the Watershed partition and the different mapping estimators.
Figure 4. Normalized wavelet systems. Normalized disk band-pass empirical wavelet filters χ ^ n D , τ with τ = 0.2 for the Watershed partition and the different mapping estimators.
Foundations 04 00043 g004aFoundations 04 00043 g004b
Figure 5. Unnormalized wavelet systems. Unnormalized disk band-pass empirical wavelet filters χ ^ n D , τ with τ = 0.2 for the Watershed partition and the different mapping estimators.
Figure 5. Unnormalized wavelet systems. Unnormalized disk band-pass empirical wavelet filters χ ^ n D , τ with τ = 0.2 for the Watershed partition and the different mapping estimators.
Foundations 04 00043 g005aFoundations 04 00043 g005b
Figure 6. Examples of Fourier partitions. Fourier spectrum of a scanning tunneling microscope image overlapping with partitions obtained by the Curvelet (left), Watershed (middle) and Voronoi (right) methods. By convention, the center of the Fourier spectrum corresponds to the frequency ( 0 , 0 ) .
Figure 6. Examples of Fourier partitions. Fourier spectrum of a scanning tunneling microscope image overlapping with partitions obtained by the Curvelet (left), Watershed (middle) and Voronoi (right) methods. By convention, the center of the Fourier spectrum corresponds to the frequency ( 0 , 0 ) .
Foundations 04 00043 g006
Figure 7. Texture segmentation. Original scanning tunneling microscope images, their textural parts and the segmentation obtained for the different empirical wavelet transforms with numbers of clusters k set to 5, 3, 3 and 4 from top to bottom, respectively. Raw scanning tunneling microscope images of cyanide on Au { 111 } have been reproduced from [23,25] with permission. Copyright for images, American Chemical Society.
Figure 7. Texture segmentation. Original scanning tunneling microscope images, their textural parts and the segmentation obtained for the different empirical wavelet transforms with numbers of clusters k set to 5, 3, 3 and 4 from top to bottom, respectively. Raw scanning tunneling microscope images of cyanide on Au { 111 } have been reproduced from [23,25] with permission. Copyright for images, American Chemical Society.
Foundations 04 00043 g007
Table 1. RMSE ×   10 2 averaged over the sets Ω n (with lowest and highest values) for the different demon algorithms, partitions { Ω n } n Υ , and sets Λ .
Table 1. RMSE ×   10 2 averaged over the sets Ω n (with lowest and highest values) for the different demon algorithms, partitions { Ω n } n Υ , and sets Λ .
Demon AlgorithmWatershed → DiskWatershed → SquareVoronoi → DiskVoronoi → Square
Thirion’s4.37    (0.82–18.43)4.59    (0.31–20.03)2.41    (0.58–13.71)2.32    (0.32–6.80)
Additive3.83    (2.13–5.13)4.30    (2.47–7.23)3.00    (2.14–4.17)3.08    (2.23–4.14)
Diffeomorphic5.64    (3.00–10.29)7.35    (3.15–14.47)4.03    (2.86–6.04)6.41    (2.00–17.05)
Table 2. Computational times (h: m i n :s) of the demon algorithms for the different partitions { Ω n } n Υ and sets Λ .
Table 2. Computational times (h: m i n :s) of the demon algorithms for the different partitions { Ω n } n Υ and sets Λ .
Demon AlgorithmWatershed → DiskWatershed → SquareVoronoi → DiskVoronoi → Square
Thirion’s00:02:4400:02:5000:02:4800:02:44
Additive00:12:5000:11:3500:14:5100:12:17
Diffeomorphic01:43:2201:32:2501:27:5301:44:40
Table 3. PSNR of the reconstructed images for the different demon algorithms, sets Λ , partitioning methods, and transition widths τ for the normalized and unnormalized empirical wavelet transforms.
Table 3. PSNR of the reconstructed images for the different demon algorithms, sets Λ , partitioning methods, and transition widths τ for the normalized and unnormalized empirical wavelet transforms.
τ NormalizedUnnormalized
Demon AlgorithmWatershedVoronoiWatershedVoronoi
DiskSquareDiskSquareDiskSquareDiskSquare
Thirion’s 0.1 76.21 79 . 67 82.61 90.79 76.21 79 . 67 82.63 90.79
Additive 96 . 08 79.23 120 . 47 305 . 64 96 . 08 79.23 120 . 47 306 . 03
Diffeomorphic 89.20 62.05 97.88 286.93 89.20 62.05 97.12 269.60
Thirion’s 0.2 78.22 87.21 85.34 297.90 78.22 87.22 85.34 302.70
Additive 112 . 78 305 . 65 305 . 47 305 . 69 112 . 78 305 . 88 306 . 37 306 . 26
Diffeomorphic 89.20 124.85 103.42 303.76 89.20 120.77 101.77 305.40
Thirion’s 0.3 85.02 180.79 89.32 305.10 84.82 183.43 89.32 305.39
Additive 124 . 41 305 . 16 305 . 78 305 . 61 124 . 41 305 . 67 306 . 00 306 . 16
Diffeomorphic 77.27 117.87 103.45 303.19 64.14 128.81 103.38 305.38
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.

Share and Cite

MDPI and ACS Style

Lucas, C.-G.; Gilles, J. Demon Registration for 2D Empirical Wavelet Transforms. Foundations 2024, 4, 690-703. https://doi.org/10.3390/foundations4040043

AMA Style

Lucas C-G, Gilles J. Demon Registration for 2D Empirical Wavelet Transforms. Foundations. 2024; 4(4):690-703. https://doi.org/10.3390/foundations4040043

Chicago/Turabian Style

Lucas, Charles-Gérard, and Jérôme Gilles. 2024. "Demon Registration for 2D Empirical Wavelet Transforms" Foundations 4, no. 4: 690-703. https://doi.org/10.3390/foundations4040043

APA Style

Lucas, C.-G., & Gilles, J. (2024). Demon Registration for 2D Empirical Wavelet Transforms. Foundations, 4(4), 690-703. https://doi.org/10.3390/foundations4040043

Article Metrics

Back to TopTop