In the following sections, we present a general approach to remove the geometric constraints on the detected partitions in the previously described 2D empirical wavelets. First, we give a mathematical construction of wavelet filters is based on arbitrarily shaped supports and shows that these filters permit us to define a general empirical wavelet transform. We prove the existence of dual filters, allowing the definition of the inverse transform. Second, we present a new algorithm to detect 2D partitions of arbitrary geometry, inspired by the 1D scale-space algorithm discussed in
Section 2.3.
3.1. 2D Empirical Wavelets of Arbitrary Supports
Let us assume we are given a discrete image
where
is the image domain (pixels coordinates will be denoted
) and an arbitrary partition,
, of the Fourier domain (denoted
, frequency coordinates will be denoted
), whose detection will be discussed in
Section 3.2. We assume the partition
has the following properties:
and
if
, whose boundaries delineate the expected supports. In order to define a transition region similar to the one shown in
Figure 1 for the 1D EWT, we must define the distance from any point in the image to these boundaries. As such, for each region
, we define a distance transform of the region:
where
is the boundary of the region
and
is the quasi-Euclidean distance, defined by
This is done such that, for each region, we define any point in the image spectrum by its distance to the region’s boundary. From there, we can define a 2D empirical wavelet as
where
is the desired transition area width and
is an arbitrary
function such that
Unlike in the 1D case or the existing 2D cases, there are no theoretical results for the appropriate choice of , and therefore it must be chosen experimentally. Nevertheless, we can show that the set forms a frame.
Proposition 1. Denoting , the set forms a frame.
Proof. Assuming, for now that (to be shown later)
, such that
then, using Parseval’s theorem, we get
which implies that
forms a frame of bounds
A and
B.
It remains to show that such bounds
A and
B exist such that
. We can observe that three situations, as shown in
Figure 3, can occur:
- -
lies outside of a transition area
- -
lies in a transition area between only two regions
- -
lies in a transition area between three or more regions
It is easy to see that, if is not within a transition area, is nonzero for only one index n, and, by construction, we have . It remains to show the bounds if lies within a transition area.
The lower bound is decided when the transition area is defined between two regions. In this situation, we have
However, from the definition of the distance transform, we have
, hence
Since
and
,
and since
, this is equivalent to
Therefore, our lower bound is .
In the situation where the transition area is between r regions, we have . Since , we therefore get an upper bound which completes the proof. □
With our set of empirical wavelets in hand, the corresponding transform is then defined by
Since
, we can define the corresponding dual frame
via
The existence of such dual frame allows us to reconstruct the original signal
f from its empirical wavelet transform:
3.2. On the Detection of Partitions of Arbitrary Geometry
In this section, we address the question of how to detect partitions of the Fourier domain corresponding to meaningful harmonic modes of arbitrary geometry. The proposed method uses a 2D scale-space representation to find the “center” of harmonic modes, followed by a watershed transform to find the arbitrary boundaries delimiting the different regions . These two steps are described in detail in the next two sections. From now on, we assume our image f is discrete of size .
3.2.1. Scale-Space Localization of Harmonic Modes
In
Section 2.3, we showed that the expected 1D boundaries corresponded to meaningful local minima which can be found using scale-space representations. Unfortunately, 2D boundaries separating the different regions correspond to arbitrary curves and it becomes very hard to characterize what a meaningful curve is. Since our goal is to separate harmonic modes, assuming that these modes are well enough separated lobes in the spectrum, we propose first to detect the potential candidates by selecting meaningful local maxima. To do so, we follow a similar approach as in
Section 2.3 but looking for persistent maxima instead of minima. To resume the process, we build a 2D scale-space representation of the image magnitude spectrum, i.e.,
, detect all local maxima at each scale
s, and measure their lifespans (i.e., the largest
s before they disappear). From there, we create a histogram of the persistence of the maxima and use Otsu’s method to define a threshold to classify each maxima as persistent or not. The locations of all persistent maxima, denoted
, are then extracted; these locations represent “centers” of the expected harmonic modes. Because we are working in a discrete space, the scale step-size
is a parameter and we set the maximum scale proportional to
and the image size,
, where
K is the size of the kernel used to create the scale-space representation.
Figure 4a illustrates the tracking of maxima through the scale-space, while
Figure 4b shows the remaining persistent maxima after thresholding.
3.2.2. Watershed Transforms
Given a set of mode centers,
, we wish to find a set of boundaries which will define the mode supports. Taking again the point of view that modes correspond to lobes, then a natural way to find such boundaries is to select the bottom of the valleys between the modes. From a mathematical perspective, such a process corresponds to finding the path of lowest separation (this idea is a direct extension of the principle used in [
15], for finding 1D boundaries, where the lowest minimum between meaningful peaks was chosen).
The watershed transform, first proposed by Beucher et al. in [
24], is an image segmentation technique that defines a contour based on the path of highest separation between minima. Based on the geographic definition of watersheds and catchment basins, the watershed transform treats an image as a topographic landscape with pixel intensity representing the height at that pixel. Then, the transforms separate the image into its catchment basins, with a watershed contour separating them. This process can be described as follows.
Given an image g and a set of its minima, , we uniformly “flood” the topographic landscape produced from g, with the water collecting at the minima. When one body of water flows into another, we construct a barrier. Once complete, we define the contour along the barrier.
Later, Meyer et al. in [
25,
26] proposed a method in which one morphologically reconstructs the image in such a way to impose minima at select markers
. This is done by first forcing each marker to be a minimum, by setting
for all
n, and then by filling the catchment basins of each minimum
in such a way that the region contains no extrema. This approach reconstructs the image so that the only minima are at the markers
and thus reformulates the watershed transform such that the generated contour
lays along the path of highest separation between selected markers, rather than all minima.
To find the set of boundaries that will define the expected supports, we first invert the magnitude spectrum, , so that the watershed transform will define the path of lowest separation, rather than highest separation. Then, we impose minima to be at the location of persistent maxima, . Finally, we apply the watershed transform, which defines a boundary on the magnitude spectrum that is along the paths of lowest separation between the locations of persistent maxima . The boundary defines a partition with regions .
Since the watershed transform defines some pixels as part of the boundary, we must assign these pixels to a region. This assignment is not critical, since they belong to the path of lowest separation, but it should be symmetric if
f is a real valued image. Furthermore, if
f is real valued, we must pair regions symmetrically with respect to the origin. This can be achieved using Algorithm 1.
Algorithm 1 Boundary pixel assignment and regions symmetrization. |
Input: A set of unpaired maxima locations and corresponding partition , where n = |
|
for do |
|
|
|
end for |
Output: Set of paired regions , where |