Manuscript Offprint
arXiv:2608.29164Mapping-Based Image Diffusion
Abstract
In this work, we introduce a novel tensor-based functional for targeted image enhancement and denoising. Via explicit regularization, our formulation incorporates application dependent and contextual information using first principles. Few works in literature treat variational models that describe both application dependent information and contextual knowledge of the denoising problem. We prove the existence of a minimizer and present results on tensor symmetry constraints, convexity, and geometric interpretation of the proposed functional. We show that our framework excels in applications where nonlinear functions are present such as in gamma correction and targeted value range filtering. We also study general denoising performance where we show comparable results to dedicated PDE-based state of the art methods.
Keywords image enhancement · denoising · PDE · diffusion · gradient energy tensor · structure tensor
F. Åström,
Heidelberg University
Heidelberg Collaboratory for Image Processing (HCI)
Im Neuenheimer Feld 205
69 120 Heidelberg, Germany
Tel.: +49 (0) 662 1541 4841
E-mail: freddie.astroem@iwr.uni-heidelberg.de
M. Felsberg
Linköping University
Department of Electrical Engineering
581 83 Linköping, Sweden
Tel.: +46 (0) 13 28 2460
E-mail: michael.felsberg@liu.se
G. Baravdish
Linköping University
Department of Science and Technology
581 83 Linköping, Sweden
Tel.: +46 (0) 11 36 3118
E-mail: george.baravdish@liu.se
1 Introduction
A simple approach to noise reduction is to apply an isotropic convolution kernel to the image data, e.g., normalized Gaussian filters or box filters [39]. Due to the simplicity of the approach, spatial and contextual information are neglected and therefore the output image is blurred. A common approach to adaptive filtering is to let the image gradient control the amount of filtering see, e.g., the seminal work of Perona and Malik (P-M) [48]. They introduced an edge-stopping function to limit the filtering close to edges and corners. The P-M filter is often referred to as a nonlinear isotropic diffusion filter [56]. The filter's edge-stopping function acts to preserve image structure, thereby obtaining superior image quality compared to isotropic filtering. The successor to P-M filtering was introduced by Weickert [56] where additional adaptivity to image structure is achieved by using a second-order tensor. The main idea of the tensor-based formulation is to smooth parallel to image structures. The concept is based on the structure tensor [10,29]. The tensor is a windowed second moment matrix that describes the local orientation as a tensor field. Transforming the tensor field to align parallel to the image structure, one obtains a structure-preserving filtering scheme. The transformed tensor field is then used in the filtering scheme and is denoted as the diffusion tensor.
The linear diffusion scheme is the solution of the diffusion equation, a partial differential equation (PDE), and it is closely related to the notion of scale-space [45, 39]. Therefore it has been of interest to investigate also P-M formulation and its successors of adaptive image filtering in terms of a variational framework. The motivation is that the variational framework allows for a generic approach to model the denoising problem and
Freddie Åström et al.

Fig. 1 The presented framework studies image denoising from the viewpoint that the image data is not only corrupted by “noise” but also pertubated by some nonlinear function. In this figure, the nonlinear function corrects for the overexposed image. We incorporate this nonlinear function called a “mapping” as a feedback component in the iterative update scheme. For additional examples of the mapping function see Figure 2.
related image processing applications. By modifying the objective function this enables the inclusion of existing applications, e.g., active contours [38], deblurring [22, 47], optical flow [34,17,36], and inpainting [7,21]. Denote by the image data. The variational approach to image diffusion is to model an energy functional, E, of the form
where F is a fidelity term and the positive constant determines the influence of R, the regularization term. The aim is to find the minimizer of the energy functional E. Here we are interested in tensor-based formulations of the regularization term. In particular we study and introduce an application dependent, tensor-driven anisotropic diffusion scheme. Furthermore, we introduce the gradient energy tensor [28] as an alternative to the structure tensor [29].
The mapping can be either global or local depending on the application. We consider a global gamma mapping (Section 7), local targeted region filtering (Section 8), and global region filtering via local oversegmentation maps (Section 9). A preview of these applications is given in Figure 2 and Table 1 shows the corresponding interpretations of the mapping function. We emphasize that the determination of a relevant mapping function is highly application dependent. For readers familiar with anisotropic diffusion [56,48] we remark that the selection of mapping function can be thought as the accurate selection of a diffusivity function. However, while the diffusivity function is gradient and data dependent, the mapping function is intensity and application dependent. In connection to the variational model (1) we study regularization terms of the form
where and is a positive semi-definite tensor that incorporates orientation dependent information.
1.2 Synthetic example
Figure 3 illustrates the advantage when performing noise reduction with targeted filtering. In this image, the noise component is only present in the background of the image. The foreground, or object, consisting of circles of different diameters and intensities are not corrupted by noise. Based on this prior knowledge we set,

Gamma correction
Mapping
Result
Targeted filtering
Mapping
Result

Oversegmentation
Mapping
Result
Fig. 2 In this work we introduce a mapping function in the energy (2). We consider three applications, each with different definitions of the mapping. First we perform gamma correction, illustrated on the first row. In the second application (second row) we perform targeted filtering. In the third application we perform general denoising by estimating the mapping from the image data via an oversegmentation map.
in this example, the mapping as to be sigmoidal, i.e.
The parameters were set to and as , these parameters correspond to a smooth approximation of a step-function translated to 1/2. As an instance of our framework, we use total variation with a mapping function (introduced in Section 4). Visually, comparing the result to Markov Random Field (MRF) [52], Total Generalized Variation (TGV) [16] and BM3D [24] our approach appears more similar to the noise free image. MRF, TGV and BM3D all oversmooth the four
Freddie Åström et al.

Original
Noisy
Total variation mapping (see (52))

Markov random field
MRF [52]
Total generalized variation
TGV [16]
Block-matching
BM3D [24]
Fig. 3 Synthetic example where an image has been corrupted with additive Gaussian noise with standard deviation 20 in a specific value range. By appropriately defining the mapping in (2) we are able to preserve image details oversmoothed by MRF, TGV and BM3D. In this example the mapping function was of sigmoidal type, (3) with a = 100 and c = 1/2.
small circles and details. We note however that in this simple example, assuming that the input image can be accurately partitioned in noise-free and noisy regions, one can naturally apply a restoration method on these partitions. However, in the case of more complex image regions, see Figure 2 second and third row, such heuristic partitioning of the image value range is in general a highly non-trivial task. Furthermore, by incorporating the mapping into the filtering process, one does not require an additional heuristic post-processing step to accurately fuse these independent regions.
1.3 Overview and summary of contributions
The main contribution of this work is to study the effects of the mapping function in the tensor-based regularization term (2). The corresponding minimizer is presented in Theorem 1. We show in the experimental part that the inclusion of the nonlinear mapping, as a component of the filtering scheme, improves the filtering performance compared to applying the mapping as a separate pre- or post-processing step. The denoising applications we consider are gamma correction of the intensity range, targeted filtering, and adaptive denoising where the image value distributions are used to drive the filtering process. Furthermore, we introduce the gradient energy tensor (GET) [28] as an orientation dependent term into the regularization term. Our formulation allows us to utilize both the eigenvalues and eigenvectors of the tensor.
In Section 2 we give an overview of denoising approaches related to the current work. Section 3 further details the diffusion framework and introduces some additional notation. In Section 4 we present the main results of this paper, summarized in Theorem 1. To minimize the proposed functional we prove the existence of its Euler-Lagrange (E-L) equation. Furthermore, we derive properties in the subsequent analysis useful for image denoising applications. We show that the proposed functional describes several variational denoising
Applications
I. Gamma correction
Global mapping applied pixel-wise
II. Targeted filtering
Local mapping applied globally (on the value range)
III. Oversegmentation
Local mappings applied locally (within one segment)
Table 1 Overview of the different applications considered in this work and their relation to local and global mappings. A discussion on the difference between these two classes of mappings is given in Section 10. Figure 2 shows examples of the different applications. For additional details, we refer to the respective section in the experimental evaluation.
methods as special cases and we extend these to include the mapping function. In particular we extend our gradient energy total variation formulation [2] to also include the mapping function. In the same section we also give some additional properties of the energy and its E-L equation. Section 5 briefly reviews the GET tensor and presents an empirical evaluation where the tensor is compared to the structure tensor for orientation estimation. The GET tensor is used to formulate the gradient energy total variation scheme with a mapping function in Section 6.
In the experimental evaluation, Section 7, we show empirically that providing the nonlinear mapping of the image data as a feedback component yields an improved result compared to (I) transforming the image value range and then denoise, or (II) denoise and then transform the image value range. In Section 8 we let the mapping define a user-set value range for targeted filtering. Section 9, we evaluate our framework on a third application where we let the filtering process be based on an oversegmentation map. Section 10 gives an extensive discussion on the difference between local and global mapping functions and their applicability in the context of image denoising. A preview of the above mentioned applications and their relation to the different classes of mappings are given in Table 1. Recall that the mappings are nonlinear. Section 11 concludes this work.
2 Related works
2.1 Variational methods
The connection between energy functionals and the corresponding E-L equation for image processing formulations have been investigated before, we refer to e.g., [6] and references therein. The total variation (TV) formulation was introduced by Rudin et al. [50]. The TV-model is well studied, both theoretically and practically, see [19] for an overview of the method and its application areas. One major draw-back with the TV-approach for image denoising applications is its tendency to show staircasing effects. The total generalized variation (TGV) introduced by Bredies et al. [16], which includes higher order differentials, does not suffer from these artifacts. The drawback of the approach is that the introduced smoothness of the higher-order derivatives may cause image features to be oversmoothed. Other relevant extensions of the TV model to include additional smoothness constraints are, e.g., [12,23,13].
The extension of TV to variational tensor-based formulations was investigated by Roussos and Maragos [49], Lefkimmiatis et al. [43] and Grasmair and Lenzen [33]. These approaches consider the structure tensor [10,29] and model the objective functions in terms of the tensor eigenvalues. Roussos and Maragos define their regularization term as , where is a strict convex function and are the eigenvalues of the structure tensor, thus the regularization is only indirectly taking into account the image structure as it ignores the eigenvectors. Similar to Roussos and Maragos, Lefkimmiatis et al. consider the Schatten-norm of the structure tensor eigenvalues. In contrast, Grasmair and Lenzen define the regularization , where is the positive semidefinite structure tensor with remapped eigenvalues. The objective function is then solved using a finite element method instead of deriving a variational solution. An alternative approach was proposed by Krajsek and Scharr [40] who formulated a linear anisotropic regularization term for tensor-valued image diffusion. The common factor by the aforementioned methods is that they use the structure tensor. Due to the fact that the structure tensor is defined as the integration of the outer product of the image gradient, the divergence theorem is not applicable when deriving the minimizer of the corresponding functional. We show this fact in Section 3.3, Proposition 1. To our knowledge, the only tensor-based total variation approach that also considered the eigenvectors, has been studied in [2], where the lesser known gradient energy tensor (GET) is used instead of the structure tensor.
In our previous work [4] we proposed to filter certain value ranges of the image data, i.e., an image value range adaptive filter. In a related work, [5], we interpret the image data as observations from a stochastic process and use an oversegmentation of the input image to define the mapping function. The basic approach is to describe each locally homogeneous region using first and second statistical moments to drive a nonlinear filtering process. In this work we combine the mapping
Freddie Åström et al.
function [4,5] and the tensor-based method [2], leading to novel results.
2.2 Block-matching methods
In addition to local, e.g., tensor-based, methods, a different paradigm in the denoising literature has emerged called non-local methods. These methods rely on block-matching of neighbourhoods and have been shown to efficiently suppress image noise. The basic idea is to average similar patches in a local neighbourhood, where similarity is measured with respect to some criteria. The denoising methods block-matching by sparse 3-D transform (BM3D) [24] and non-local means (NLM) [18] are two such methods. NLM and BM3D are fundamentally similar since both use collaborative filtering. Rather than computing new pixel-centres from matched neighbourhoods as in NLM, BM3D considers patches and adaptively denoises a group of local neighbourhoods. In this context we mention Levin et al. [44] who studied image denoising quality w.r.t. patch-size and patch-complexity in view of natural image statistics, they conclude: while the restoration of homogeneous regions is straightforward by increasing the sample size, an increase of patch-size for textured regions has limited impact on the restoration quality as pixels in these regions are weakly correlated. Since, BM3D combines block-matching, linear transform thresholding and Wiener filtering, the noise can only be suppressed efficiently given that sufficiently many similar patches are found. Therefore, as a consequence of inaccurate template matching criteria, oversmoothing may occur in highly textured regions. We compare our framework with BM3D in the experimental evaluation.
In contrast to patch-matching methods, we present an altogether different view-point to image denoising by focusing on adaptive value range filtering and region specific noise removal. Application areas where a mapping function has shown beneficial are visualization of medical images [4] and colour-image denoising [5]. In the present work, we further study this approach by considering a wide range of applications: denoising overexposed images, targeted filtering and denoising of natural images. The potential improvement of image quality and interesting mathematical exposition motivates the subsequent presentation of a theoretical framework. However, before proceeding to the main results, we summarize the background on standard scalar-and tensor valued diffusion methods.
3 Review of image diffusion methods
To make this work self-contained we briefly review concepts from calculus of variations and its role in deriving standard diffusion methods. Moreover, we introduce some additional notation and terminology that is used in the remainder of the paper.
3.1 Concepts of image diffusion
The classical approach to image diffusion is to consider functionals, or energy models, consisting of a fidelity term, F, and a regularization term, R, see (1). Moreover, the energy often takes the form
where is the image domain, is the observed (noisy) image. The constant is a positive scalar and determines the effect of the regularization. One well-studied choice of prior is the p-Dirichlet energy
where corresponds to Total Variation [50] and has been studied in. e.g., [41,8]. To minimize , assuming it is convex, one finds the stationary point by solving the corresponding Euler-Lagrange (E-L) equation
and
With homogeneous Neumann boundary condition, , the E-L equation of (4), (5) is the following boundary value problem
where is the normal vector on the boundary . If , the E-L equation describes linear (isotropic) diffusion [39] and if it describes the formal TV-formulation of Rudin et al. [50]. The that minimizes (4), (5) is obtained by solving (8). The corresponding initial value problem is then
and results in the diffusion equation [51,25,42]. In the case of isotropic filtering, the diffusion equation has a closed form solution.
3.2 Nonlinear diffusion
Isotropic filtering does not preserve characteristic image features such as edges and corners due to the rotational symmetry of the Laplacian operator. Therefore, when solving the E-L equation in (8), the image is blurred. Introducing a diffusivity function, also known as an “edge-stopping” function in (8), Perona and Malik [48] formulated the PDE
The function , with , acts to reduce the filtering if the image gradient takes large values. The function's principal behaviour is as and as and a common choice is the negative exponential function
where is an edge-stopping parameter. Although this formulation resolves many drawbacks of linear image diffusion, noise is preserved along edges since the filtering is simply “stopped” for large image gradients. An alternative to using the negative exponential function as the diffusivity function is to let the problem define which edge-stopping function is suitable. In the work on targeted iterative filtering [4] we let the mapping be defined by a user selected sigmoidal function, that compresses the value range of 12-bit image data for the purpose of medical visualization. The regularization term introduced in [4] is defined as
where the mapping and is a sigmoidal function. Furthermore, note that . In this case the mapping defines the visualization windows, thus replaces the ad-hoc selection of a potential function, e.g., (11). The corresponding PDE equation is given by
Since and , it follows that , where is the Sobolev space equipped with the norm (see, e.g., [31]). Depending on the definition of the function can be understood as the diffusivity function in (11). Note that the PDE (13) is equivalent to the formulation in [4] due to the novel Lemma 2 in Section 4.2.
3.3 Tensor-based diffusion
The main deficiency of the methods presented in Section 3.2 is that the filtering is simply stopped close to image features such as edges and corners. To filter parallel to line-structures Weickert [56] introduced a tensor-based anisotropic diffusion scheme. The filtering scheme is defined as the PDE
The adaptivity of the filter is determined by the diffusion tensor , constructed from a nonlinear mapping of the structure tensor defined as
where * is a convolution operator and w is a smooth kernel, e.g., a Gaussian function [29,10]. The tensor is a windowed second moment matrix, it is positive semidefinite, thus it estimates the local energy distribution and can be thought of being a covariance matrix [30]. The eigenvector of T corresponding to the largest eigenvalue is aligned orthogonal to the image structure. Therefore, to avoid blurring image structures, the diffusion tensor D is computed as where g is the diffusivity function (e.g., (11)), O are the eigenvectors and has the eigenvalues of T on its diagonal [26].
Before continuing we show why a straightforward variational formulation, which gives the PDE (14) without the convolution (15), cannot be extended into a variational formulation for (14) with the convolution (15) by inserting the convolution into the regularizer.
This problem has previously been studied by, e.g., Scherzer and Weickert [51]. Here we tackle the energy functional directly and show that the failing component is the application of Green's identity. Now, let be a tensor-valued function and define the regularization term
To compute the variational derivative of R we need partial integration in higher dimensions defined by Green's identity [31]: Let A be a vector field and v once continuously differentiable, then
(17)
When F is defined by a nonlinear function and a convolution operator there is no operator A such that Green's formula applies. This is shown in the following proposition.
Freddie Åström et al.
Proposition 1 Let be a differentiable tensor valued-function and w be a smooth (Gaussian) function. If
then the corresponding Euler-Lagrange equation of (16) does not exist.
Proof Assume that the variational derivative of (16) exists. To show this assertion we set
and let
Then from (7) and (16) we have
(21)
From the product rule of differentiation we are interested in the following part from (21):
(22)
from which we only need to consider the differentiation of w.r.t. , i.e.,
With s as in (19) we have
(24)
Now, we evaluate the limit and obtain from (22), (23), (24) the following result
(25)
for any operator . Since the element v cannot pass the convolution operator, Green's formula (17) can not be applied to give an E-L equation of (16).
In the next section we present one of the main results of this work: the mapping function-based functional and its E-L equation.
4 Mapping-based Image Diffusion
In this section we integrate a nonlinear mapping into a framework of tensor-based image diffusion.
4.1 Variational formulation
In the following, let be the mapping function which describes the nonlinear mapping of the image value range. Also let be a positive semidefinite tensor. Set . Let the components of be differentiable, then is the component-wise differentiation of w.r.t. , such that is defined as
In order to simplify notation in the following calculations we introduce a prescript-notation for matrix contraction, we define
which contracts matrices such as (26) to an matrix.
The next theorem generalizes our initial formulation [2] (cf. Theorem 1) which states the relation between a tensor-functional and its corresponding E-L equation. In this work we extend the theorem to dimensions and to include the mapping m. Compared with [2] we state the theorem in a simplified form, exploiting newly found identities which result in a generalized tensor-based application-driven image denoising framework.
Theorem 1 Let the regularization term R, be given by
where and , and is a tensor-valued function. Set , then the corresponding E-L equation is given by
where
Proof The proof is a generalization of the results presented in [2] (cf. Theorem 1) and is given in Appendix A.
Depending on choice of mapping m and tensor W in (28), we show in Table 2 that the proposed scheme generalizes several diffusion methods from literature. The same table also shows the methods that are subject to further study in this paper. In the subsequent sections we investigate some additional selections of W and m that extend the gradient energy total variation scheme (GETV) presented in [2] to include the mapping. Also we extend the scalar TV formulation to include the mapping function. Before proceeding to specify W and m, consider the following properties of the proposed functional and corresponding E-L equation in Theorem 1.
4.2 Properties
In the general case is a non-symmetric tensor, however one may be interested in positive definiteness or other symmetry constraints. For example it is often desirable in orientation estimation that the magnitude response of the estimated orientation is equivalent in vertical and horizontal directions in the image plane. If and in (29) are symmetric, then it aids the subsequent analysis of otherwise complex expressions to determine positive-definiteness. Therefore, we derive necessary conditions for to yield a symmetric in this section. In the following, we show that a tensor exists such that the tensors defined by and in the E-L equation are symmetric, i.e.,
It is easy to identify two additional constraints required for to be of the form (31) from (30a), (30b), i.e., it is necessary that and . Let
then the following corollary state the set of symmetric tensors W that yield a symmetric tensor S in (31).
Corollary 1 Let be the symmetric tensor (32) with differential components, then if
i)
ii)
are both satisfied, is also a symmetric tensor.
Proof Since W is symmetric we can write as
Conditions i) and ii) follow directly from the constraint .
The solution of i) and ii) is clearly not unique. For example, one solution is given by
If instead b is given, then a and c must satisfy
which results in
to which we can also add any constant symmetric matrix. We note that in the general case it may be difficult, or not interesting, to evaluate Corollary 1. However, as a theoretical tool it may serve the purpose to derive classes of tensors S that are symmetric.
The following lemmas are particularly useful and enable the reformulation of the E-L equation (29) in a single divergence form. In this case we set where in contrast to in (31) is not necessarily a symmetric tensor.
Lemma 1 Let , then
where H is the Hessian matrix.
Proof We first write the left hand-side of (38) as a sum, then by expanding its partial derivatives we get
(39)
which shows the result.
Lemma 2 Given a tensor with differentiable components, the following relation holds
(40)
Freddie Åström et al.
| Methods Without mapping | Regularizer | in E-L equation | Comment |
|---|---|---|---|
| Isotropic | |||
| TV [50] | |||
| EAD [1] | |||
| GETV [2] | see (63) with | ||
| With mapping | |||
| TIF [4]D3 [5] | |||
| TVm (novel) | See (49)-(52) | ||
| GETVm (novel) | see (63) | ||
Table 2 Examples of E-L equations for different choices of mapping functions and tensors. We have listed linear diffusion, total variation (TV), extended anisotropic diffusion (EAD), gradient energy total variation (GETV), targeted iterative filtering (TIF) and density driven diffusion (D3). The corresponding boundary conditions can be computed using (30a) and (30b). The methods TVm and GETVm are extensions, introduced in this work, of TV and GETV with a mapping function.
Proof From Lemma 1, the left hand-side of (40) can be written as
which concludes the proof.
Observe that depending on , its derivative can in the general case obtain negative values. However, due to linearity of the divergence operator, any non-negative factors originating from cancel as indicated in the right-hand side of (40), i.e.,
Assuming that is at least positive (semi)-definite, then the final discretized E-L equation will have a convergent behaviour.
In particular, with the sufficient condition for tensor symmetry of and , and the above simplification of the divergence terms in Lemma 2, we obtain the E-L equation of the regularization term in Theorem 1 on the following (considerably) simplified form.
Corollary 2 Let be a symmetric tensor, then the -L equation (29) is given by
where
Proof Since it follows that , whereby Lemma 2 can be applied to (29).
Convexity In this section we investigate and discuss convexity of the proposed functional in the case and is a symmetric and positive semidefinite tensor. If is a monotonically increasing function, the below results can be generalized using similar arguments, however, for a general function the description of a convex function remains an open problem. Our approach is based on the eigenvalue decomposition of the tensor .
Consider the quadratic form rewritten in the eigendecomposition of with eigenvalues and eigenvectors , then
Fig. 4 (a) Illustration of eigenvector basis at coordinate . Dashed (red) arrows indicate the eigenvectors of W and S and thick (black) arrows . (b) Illustration of the paraboloid (47) where we set and .

(a)

(b)
The product has orthonormal eigenvectors and such that and has the corresponding eigenvalues and on its diagonal. Note that by the spectral theorem [35], the eigendecomposition of is always well-defined, i.e., is not singular. This is shown by the generalized definition of , i.e., in the case of then , and in the case of we let where is the identity matrix.
In the following, we substitute the eigendecomposition of into (43):
and insert and . Then after rewriting (44) we obtain
In (45), and , where is the rotation angle as shown in Figure 4 (a). This means that the scalar products define the rotation of W in relation to the image gradient direction. Note that as W describes the local directional information, its eigenvectors will be parallel to the orthonormal eigenvectors of , i.e., and if .
Remark 1 We could have arrived at (45) directly by introducing in the nominator and denominator of (43). However, this approach would not be valid since it introduces a singularity when . Instead we exploited properties from the spectral theorem and thus (45) is always well-defined even in the case .
The next result shows that the proposed functional is convex when is symmetric and positive semidefinite with eigenvalues . When the functional is strictly convex it is guaranteed from the theory of convex optimization that its stationary point gives the minimum energy, and thus results in the optimal solution [15]. Note that . Now consider the convexity of the proposed functional in the below Corollary.
Corollary 3 Let , then the functional, in (28), is convex w.r.t. the element .
Proof To prove the convexity of we write in terms of the eigenvectors and eigenvalues of . Then, from (45) it follows that
(46)
where and for . Let , then
is a quadratic form in the basis of orthonormal eigenvectors V and . The quadratic form is always well-defined due to the spectral theorem. The paraboloid (47) has positive curvature everywhere as illustrated in Figure 4 (b). Since u is mapped continuously to the paraboloid, R is convex in u.
Extending scalar-valued diffusion It is straightforward to show that the quadratic form in (28) is related to the standard Euclidean p-norms:
Proposition 2 Let and where , then
Proof Substitute in the left-hand side of (48). Since , the right-hand side is obtained after canceling common terms in the quotient.
We obtain mapping-based isotropic diffusion by setting in (48), i.e., it yields the regularization term (12) studied in [4]. In this case the E-L equation is given by (13). Additionally, from (48), if we select then
Freddie Åström et al.
The regularization term (49) can also be interpreted in relation to the standard Rudin-Osher-Fatemi (ROF) TV-model [50], see definition in [6], pp. 39-43, but now with a mapping function.
The formulation (49) can also be obtained formally from the initial functional (28) in Theorem 1. Set
then the differentiation with respect to each component of W yields
Since W in (50) is obviously symmetric, Corollary 2 is applicable and the resulting E-L equation is given by
The standard isotropic diffusion and total variation formulations are obtained by setting , which yields in (48). Thus the standard methods are special cases of our presented framework. The introduction of the mapping function adds an additional nonlinear component that controls the amount of filtering based on some prior knowledge of the image value range.
Before continuing to the tensor-valued formulations of Theorem 1, we recall the gradient energy tensor [28] and present an empirical evaluation of the tensor compared to the structure tensor [10]. In [1] we proved that the connection between the functional and its E-L is not preserved when the structure tensor is subject to a nonlinear mapping of its eigenvalues. This has also been observed by others [40,11], furthermore, an explicit derivation of this fact is given in Proposition 1, Section 3.3 of this work. Since the GET does not have a post-convolution of its tensor components we remove some obstacles to preserve the connection between the energy and the corresponding E-L equation.
In the next section we review the gradient energy tensor before introducing the gradient energy total variation scheme with a mapping function.
5 Gradient Energy Tensor
In this section we review the gradient energy tensor [28] (GET) and analyse how sensitive it is with regards to orientation estimation compared with the structure tensor. Our analysis show that the GET can approximate the structure tensor for image denoising.
5.1 Background and definition
The origin of the gradient energy tensor comes from the 1-D energy operator [14], and in particular, from the observation that the energy of a signal can be estimated from its squared magnitude [37]. The gradient energy tensor is a symmetric tensor, like the structure tensor, and it can be shown that GET is phase invariant, orientation equivariant second order tensor [27, 46]. The GET tensor is lesser known in the computer vision community and it was first introduced by Felsberg and Köthe [28]. The motivation for considering the GET in this work, as opposed to the structure tensor, is threefold (I) the GET can potentially enable real-time image diffusion implementations which is not possible with the structure tensor (due to the post-convolution of its tensor-components, for details see [3]), (II) the GET preserves the relation between the energy and the E-L equation when the tensor is positive semi-definite and (III) to promote further studies on the tensor. Similarly to the structure tensor, GET is of rank 2 and determines the directional energy distribution of the signal gradient.
The classical GET is defined in terms of the image data in u [28]. Here we use an alternative, but equivalent, formulation of GET expressed in the image gradient. Let be the Hessian and , where is the Laplace operator, then we define GET as
Since the GET components are expressed in terms of the image gradient, Theorem 1 is applicable. In contrast to the structure tensor (15), the gradient energy tensor (53) does not (necessarily) require a convolution operator to form a rank 2 tensor.
Example responses from the two tensors are illustrated in Figure 5. Note that due to the convolution operator, the structure tensor is not sensitive to structures smaller than the width of the averaging filter used to compute it (in this case the standard deviation of the Gaussian filter was set to 1). The presence of second and third-order derivatives in GET makes it slightly more sensitive to noise. However, it allows us to capture orientation of structures not possible to detect using the structure tensor.
5.2 Spectral properties of GET
An investigation of the positivity of the 1-D energy operator was presented in [14]. In the 2-D case, the pos-
Fig. 5 Visualization of estimated local orientations for (a) the structure tensor and (b) the gradient energy tensor.

(a) Remapped structure tensor
(b) Remapped energy tensor
itivity of the operator is reflected in the sign of the eigenvalues. Let the components of the GET be a, b and c, i.e.,
then the GET is positive semidefinite if the following lemma is satisfied.
Lemma 3 The GET is positive semidefinite if
where .
Proof Since GET is symmetric it has real eigenvalues. Thus by its eigenvalue decomposition it is sufficient to show that (i.e., (55)) in order for GET to be positive semidefinite. is necessarily positive since .
The GET-tensor can attain zero-values despite the gradient is not zero, and in some cases the eigenvalues may be negative. Here, we set the negative eigenvalues to positive in the GET tensor. We define
and v, w are the eigenvectors and , eigenvalues of the GET respectively. In the standard approach of anisotropic diffusion one considers the diffusion tensor, which is the structure tensor with transformed eigenvalues as described in Section 3.3. We do a similar mapping of (56) by using the negative exponential function, i.e., we have
(57)
and v, w are the same eigenvectors as in (56) and the eigenvalues . Now GET , is positive semidefinite as exp is the matrix exponential function obtained by a Taylor series expansion. Figure 5 shows a visual comparison between the remapped energy tensor and the diffusion tensor. Visually, the local orientation estimation appears nearly identical between the two tensors. Next, we quantify this assertion.
5.3 Analysis
In this part we discuss the effect of noise perturbation on the tensor's estimated orientations. We consider a radially symmetric test-pattern shown in Figure 7 (a). As a baseline for the evaluation we use the noise-free angles that have also been used to compute the test-pattern image. For each tensor and considered noise level, we compute the local neighbourhoods dominant distribution angle by projecting the tensor components on a vector z in the complex plane [32],
where a, b and c are components of a symmetric matrix. We compare the mean absolute difference of the angular error in Figure 6 (a) for different noise levels. In (b) we show the percentage of pixels that have an angular error smaller than 1 degree. It is evident that the two tensors are marginally different. As the noise-level increases beyond standard deviation 20, the structure tensor performs better due to the post-convolution of the tensor components. At standard deviations 0 and 10 of noise the difference is approximately 8% and 3% respectively. Our third evaluation is a comparison of the histogram error quantized to 10 bins in the range
Freddie Åström et al.

(a)
(b)
(c)
Fig. 6 Results of sensitivity analysis of orientation estimation by using the structure tensor and the gradient energy tensor. We used the radially symmetric pattern (a) for different noise levels in Figure 7. (a) shows the mean absolute angular error. (b) illustrates the percentage of pixels which has an angular error smaller than 1 degree. (c) shows the histogram of angular errors divided into 10 bins from 0 to radians. See text for details.

(a)

(b)

(c)

(d)
Fig. 7 (a) Original, noise free circular pattern. (b) Ground truth orientation. Orientation in radians at standard deviation 20 of noise, (c) Structure tensor and (d) Gradient energy tensor.
0 – at the intersection point seen in (b), i.e., at the noise level of standard deviation 20. The histogram is shown in (c) and we see that the error distribution is indeed similar for the two tensors. We also see that for the angles less than 0.5 rad the structure tensor shows higher errors than the structure tensor due to the post-convolution of its components. However, considering the right most bins, the structure tensor has fewer pixels with large errors than the gradient energy tensor.
Objectively, the gradient energy tensor has more large magnitude errors than the structure tensor. However, this is expected since the energy tensor lacks a post-convolution of the tensor components to compensate for the noise. Nevertheless, considering that the difference between the two tensors mean angular error is small, as indicated in (a), it still suggests that the gradient energy tensor can be used in a diffusion framework, a claim that we further support in our numerical experiments, and was shown in [3]. In the following sections we use the gradient energy tensor to model a tensor-based total variation framework.
6 Mapping-based Gradient Energy Tensor Total Variation
In this section we extend our previous work [2,1] on the gradient energy tensor total variation (GETV). In particular we introduce the mapping to GETV and denote the formulation as GETVm.
6.1 The objective function
The below corollary gives the definition of the GETVm scheme. The tensor that steer the filter is the transformed gradient energy tensor, i.e., (57). In the following, let W be a tensor such that the following relation holds
where is the tensor in (57) and has eigenvalues and eigenvectors . Then (59) can be reformulated into a modified expression of (45), i.e.,
where the left hand side is the integrand of (28). Now we give the following statement
Corollary 4 Set and let in (60). Then the gradient energy total variation regularization term is given by
and the tensor in (27) is
(62)
where D is defined in (57).
Proof See Appendix B.
Due to the definition of the tensor in (59) the resulting functional describes an anisotropic total variation filtering method. The tensor acts as a weight limiting the TV filtering perpendicular to image structures. In a homogeneous region the regularization term in the functional reduces to previously described in (49). It is obvious that the GET-tensor will be isotropic in homogeneous regions.
In the section below we show how to derive the E-L equation corresponding to the selection of W in (59) that yields the diffusion scheme.
6.2 Diffusion formulation
To obtain the diffusion formulation of GETVm, note that W in (59) is symmetric. Then, according to Corollary 2, it is straightforward to show that the tensors in the E-L equation (29) are given by . With given in (62) we obtain
(63)
where
(64)
Now, from Corollary 2, (41) we get the E-L equation
The difference to TV is the introduction of a mapping function and the tensor in front of in the divergence. These weights control the anisotropy of the TV scheme: reducing the filtering orthogonal to image structures and accelerating the filtering parallel to image structures. The orientation estimation is achieved using the GET-tensor with positive eigenvalues, defined in (56). However, note that using GET is not unique, any tensor, also the diffusion tensor constructed from the structure tensor may be applicable in this framework.
The derivatives of with respect to and in (64) are obtained by first computing the eigenvectors and and eigenvalues , of . The differentiation of in (59) w.r.t. reads
(66)
and , with the corresponding orthonormal eigenvectors ( )
and
and l is given in Lemma 3. Appendix C further details the components of (66). In the case b = 0 the eigenvalues are given on the diagonal of GET and the orthonormal eigenvectors are given by the identity matrix. The implication of b = 0, is that derivatives with respect to and in (66) vanish.
6.3 Discretization
The PDEs we have introduced in this work can all be expressed on the form
where and is a tensor different for each application (selection) of and . Different selections of are outlined in Table 2.
To approximate the PDEs we use a simple, but generic, PrimalDual approach of Chan, Golub and Mulet
Freddie Åström et al.
| ISO/m, TV/m | GETV/m | |
|---|---|---|
| λ | 0.1 | 0.05 |
| τ | λ/8 | |
| β | ||
| γ | 1 | |
| k | 100 | |
Table 3 Parameters of the numerical scheme were fixed for all applications. “/m” denotes with and without mapping. The abbreviations stand for isotropic diffusion (ISO), isotropic diffusion with a mapping function (ISOm) [5], total variation (TV) [50], total variation with a mapping function (TVm), see (52), gradient energy tensor total variation (GETV) [2] and GETV with a mapping function (GETVm), see (65).
[20]. The idea is straight-forward and the aim is to avoid explicit computation of the quotient in (69), therefore they introduce a dual variable, . In the following, let and be small positive constants. In our case we define the dual variable as
where we introduce in the denominator. This gives the nonlinear equation system
We update of the primal variable as
where is an iterator. To solve for the dual variable in (71b) we introduce the iterator , and use the current as initial value, i.e., we have
The divergence term in (71a) is discretized using forward finite differences [57], i.e.,
where
In , (69), we are required to compute terms such as . Therefore, in practice we regularize the denominator term with a small positive constant, i.e., as they appear in . In the gradient energy tensor (53), we are required to compute third-order derivatives (see appendix (98a)-(98c)) for terms such as . However, rather than to expand these terms using derivative rules, we found that it is sufficient to approximate these terms using a central difference derivative. The finite differences are regularized with a smooth kernel. Here we use a Gaussian filter of standard deviation 1 before computing the finite differences. The filter size was kept constant for all images and all noise levels in the experimental evaluation. We also fixed the parameters , , , and the number of inner iterations for all experiments. The parameter values are shown in Table 3.

Fig. 8 Mapping function for gamma correction. Illustration of different gamma parameters (dash-dotted), corresponding compensation curves (dashed) and the compensation curve with error (thick). The dash-dotted curve is used to obtain the noisy images and the thick curve is used to obtain the denoised results in Figure 9.
7 Application I: Gamma correction
In this section we apply total variation with a mapping function (TVm), see (52), to the problem of denoising overexposed images corrupted with multiplicative noise. Multiplicative noise is the common noise model in, e.g., ultrasound imaging, synthetic aperture radar (SAR) imaging, sonar and laser imaging, etc.
The intention with this application is not to show state of the art results denoising of multiplicative noise, rather we show empirically that (I) gamma correction (GC) and then denoise, or (II) denoising and then gamma correction is suboptimal to (III) using a combined filtering scheme compensating for the gamma correction in the evolution process of the minimiser. The parameters were set as shown in Table 3. We consider the following
Noisy
Filter then GC
GC then filter
Mapping-based filter

PSNR: 8.6
SSIM: 0.50
24.5
0.74
24.4
0.70
26.2
0.79

PSNR: 15.7
SSIM: 0.56
24.4
0.73
24.9
0.75
25.3
0.77

PSNR: 11.9
SSIM: 0.56
24.4
0.74
25.1
0.75
25.8
0.79
Fig. 9 Examples of combined gamma correction (GC) and denoising compared to “denoise and then gamma correct” and “gamma correct and then denoise”. If the degradation parameter is set to , (77) is a one-to-one mapping and (78) is the identity. Instead of using the true gamma correction parameter we use to represent the uncertainty in the estimate of an unknown inverse mapping. With a stronger nonlinearity, it can be seen that the mapping-based filter performs better than the other approaches, both visually and with respect to error measures.
noise model: let be the degraded image, then
where and is the mean-value and the standard deviation. The main difference to Gaussian noise is that multiplicative noise scales with the intensity; the lower the intensity, the less noise is present. Gaussian noise is uniform in the sense that the intensity range is degraded by the same strength of the noise-components.
We use the “standard” gamma correction formula and define the mapping function to correct for an over-exposed image. In this sense, we define the mapping function that corrects for this degradation as
Freddie Åström et al.

Fig. 10 Denoising results for the mapping-based filter when . In each instance we accurately preserve the dominant features while suppressing the main parts of the noise. The noise is multiplicative and was set to 40 levels of the intensity range in the noise model (76).
Fig. 11 Evaluation of gamma correction of overexposed images Cameraman, Barbara, Lena and Boat. As becomes smaller, i.e., the nonlinearity is more pronounced, the mapping-based filter consistently performs better than the two alternatives “denoise and gamma correct” and “gamma correct and denoise”. We set of the intensity range in (76).

where . If then (77) corrects for an overexposed image, and if corrects for an underexposed image. Figure 8 shows the different values for and its inverse, we also show the difference to 10% offset of the inverse gamma value. The reason why we include this scale-factor is that in practical applications it is difficult, or impossible, to obtain an accurate estimate of the true inverse-mapping. In the E-L equation we are required to compute the derivative of the mapping, i.e., we have
and normalize it by the maximum slope so that to assure stability when solving the PDE (52).
7.1 Results
Figure 9 shows the result of denoising an overexposed image for the different cases of filtering order. Naturally, if , then the case of “filter and then gamma correct” is equivalent to the mapping-based filter (as it should be). As decreases, i.e., the nonlinearity become more severe, we observe that the mapping-based filter becomes superior to the two other approaches in all cases. The error measures in Figure 11 clearly illustrates this relation. In particular, Figure 11 shows the error measures for varying -parameter and the different orders (I), (II), and (III) of filtering. The final error values were obtained at the peak structural similarity value (SSIM) [55]. The reason for the improved performance is easiest explained in terms of a dynamic system: by including the nonlinear mapping of the intensity range as a component in the filtering scheme, it acts as a feedback component adjusting the diffusivity to conform with the final visualized result. This behaviour is also illustrated in Figure 1, Section 1.
In addition to the error graph, we show the final result for the mapping-based filter of Cameraman and Boat as in Figure 10. It is visible that most of the noise has been removed and that edges remain well-preserved.
8 Application II: Targeted value range filtering
In this section we present an application where the image value range is set from prior information based on user interaction.
Figure 3 in the introduction illustrates a fixed selection of the image value range where we know which value range is noisy prior to filtering. Thus, we can achieve high quality result where we preserve fine details in the image. These results are not possible to obtain with state of the art denoising methods such as

Selected region
Mapping
Result
Histogram
Fig. 12 Two examples of targeted value range filtering from user selected regions. On the first row we focus on the text. As visible in the close-up in the Result-column the noise is removed in the white text whereas and preserved in the red background. On the second row we instead choose to filter the red color of the soda can, and as visible in the Result-column the red is denoised whereas the noise remains in the white text. The column labeled “Mapping” is computed from the fitted (normalized to 1) density functions in the right-most column. See text for details.
MRF [52], TGV [16] or BM3D [24] since they denoise the complete image value range.
8.1 User-based value-mapping
In the introduction we also gave an initial example of user-based region selected value range filtering, see the first row of Figure 2 which shows a result when filtering the butterfly's wings. In the same figure, the corresponding mapping shows the region of interest that is processed by our algorithm. The denoised result is shown in the right column. It is visible that the noise in the desired region is reduced meanwhile noise in other value ranges are preserved.
We give an additional example in Figure 12. In the right most column we also show the histogram for the selected color region in the left column. The histogram shows the sample value-distribution of each color channel and the corresponding estimated Gaussian distribution. These distributions make up our channel specific mapping functions. In this targeted-value range application we first reduce the noise of the letters written on the soda can. This is achieved by selecting a sample region in the image outlined on the letter “C”, displayed on the first column in the first row. The resulting mapping shows that the algorithm is targeting the desired region. A close-up in the result-column shows that the filtering is confined to the letters - leaving the noise in the remainder of the value range undisturbed.
Next, we mark a region with red color and filter the image. The corresponding close-up on the second row shows that the red color is free of noise and that the white color of the letters still contains noise, just as desired. This type of filtering process is beneficial when the application's noise-component is known prior to filtering. Also, there may be cases when one can tolerate the preservation of noise meanwhile other regions are smoothed.
When performing the filtering process the fitted density functions are normalized in the same way as was done in the application of gamma correction in the previous section.
9 Application III: Denoising via an oversegmentation map
In the third application we treat the problem of global image denoising, i.e., in contrast to applications I and II, we now consider the whole (spatial) image domain . Here, the mapping function will be estimated from locally homogeneous regions via an oversegmentation map.
Freddie Åström et al.
9.1 Method definitions
We define the tensor W and the mapping in functional (28) to describe isotropic diffusion (ISO), isotropic diffusion with a mapping function (ISOm) [5], total variation (TV) [50], total variation with a mapping function (TVm), see (52), gradient energy tensor total variation (GETV) [2] and GETV with a mapping function (GETVm), see (65). The definitions of these methods are outlined in Table 2. The diffusivity parameter in (57) for GETV and GETVm is set according to
where is the image noise variance [26]. In the following evaluation the aim is not to show superiority over all existing denoising algorithms. We rather investigate how an oversegmentation map affects the final denoised result and we believe interesting results will follow from this approach. To get comparative performance result of the below outlined approach, we compare our formulation to original code of state of the art denoising methods BM3D [24], TGV [16] and MRF [52].
9.2 Approach and motivation
Objects in an image, or more specifically, their value distributions, can be described by a stochastic process. Such processes can be estimated from image segments, or homogeneous regions, via an oversegmentation map. Figure 13 shows one such partitioning of similar regions. In this case, each region (or object) is associated with its own set of features [54]. In image denoising the aim is to remove the noise while preserving image features. In other words we want to obtain a “clean” image without the noise component, i.e., we want to infer the true underlying statistical process that describes the noise free image. Therefore, modelling the image filtering process based on estimated densities is a means to incorporate a prior into the filtering scheme. Here, the aim is to separate objects based on certainty estimates originating from the underlying distributions. In practice we rely on the principle of ergodicity to estimate first and second order moments of each segments sample distribution. Additionally, we assume uncorrelated pixels between segments to drive the diffusion process. The idea is to exploit properties of statistical sample distributions in a way such that we can reduce the uncertainty to which segment a pixel, located at the border of two segments, belongs to. This is achieved by incorporating the statistical properties of pixel density functions into the filtering scheme.
Based on this motivation we let the derivative of the mapping function, i.e., , describe the sample distribution. Thus, the mapping function can be interpreted as the corresponding cumulative density function.
In this application, our approach to image denoising is a four step procedure: (I) Compute an oversegmentation that conforms to homogeneous regions. (II) In the case of natural colour images, transform the colour space into colour opponent components. (III) Construct the mapping derivative, , from estimated density functions. (IV) Solve the corresponding E-L equation for a given W. We use the CIELAB colour representation of the noisy images to decorrelate its RGB components [53]. In the following we introduce the concept of oversegmentation maps and show how they can be used to compute mapping functions to drive the diffusion process.
9.3 Oversegmentation
The introduction of a mapping into the diffusion framework was first presented in [5]. In this work we extend the initial formulation to include a tensor component, this is enabled by the functional in Theorem 1. However, before specifying the filtering method, we explain how to obtain an oversegmentation map to estimate the image statistics.
The selection of image regions suitable for image denoising is a non-trivial task. Much research has focused on devising efficient methods to partition images into homogeneous areas that adhere to image structure boundaries. It is not until recently these partitioning methods are efficient enough to produce sufficiently accurate regions for image denoising while achieving computation times suitable for practical applications. One oversegmentation method that satisfy these demands is SEEDS, superpixels extracted via energy-driven sampling [9]. With the assumption that each segment in the oversegmentation map is independent, we estimate local second order statistics for each segment. A sensitivity analysis on the selection of number of regions was done in [5], which showed that the filtering process is robust to the number of segments used in the oversegmentation map. Furthermore, note that the selection of oversegmentation method is not unique. We expect that as the oversegmentation methods continue to improve boundary localizations, they may further accelerate their applicability in denoising applications.
Fig. 13 Image “Boat”. Top left original image, right is the degraded image corrupted with additive Gaussian noise with standard deviation 20. Down left, oversegmentation map and down right, is the obtained mapping function.

Original
Noisy

Oversegmentation
Mapping
9.4 Estimating a mapping
The spatial extent of a segment in the oversegmentation map should conform to approximately homogeneous regions. If the requirement is fulfilled, then the observed data (or pixels) within one region can be assumed to originate from the same stochastic process and modeled using the same density function. We use this idea to derive a confidence value that describes the certainty that a sample (pixel) belongs to a region or not, e.g., a noisy observation would have a low confidence. We model the mapping m to reflect the confidence level that a sample belongs to a neighbourhood. To do so we define the mapping from a local neighbourhood L. Assuming independence between each segment, we model the data sample in the neighbourhood using a Gaussian distribution with associated mean and variance . In practice we estimate the statistical moments using the sample mean and variance of the segment. The mapping function is defined as
where
Thus, instead of controlling the filtering based on edge-strength, e.g., as in P-M (11), the filtering is now defined by , the certainty that an observed sample belong to the local neighbourhood. The selection of neighbourhood L is arbitrary, but for simplicity we choose its size to be . In (80) we use the product of the probability density functions (PDF) rather than the sum which would yield a proper Gaussian mixture model (GMM). The motivation is that at edges, the GMM would not reduce the filtering as efficiently as in the case of a product mapping function. When filtering colour images we compute one oversegmentation of the noisy image. This map is then used to compute the density estimates in each channel of the colour image representation.
Freddie Åström et al.

ISO
TV
GETV
ISOm
TVm
GETVm

BM3D
TGV
MRF
Fig. 14 Comparison of visual quality. The Boat's bow appears more clear where we have applied the mapping function, compared to ISO, TV and GETV. Visually, TGV appear similar to TVm and GETVm. While ISO and ISOm are oversmoothed, MRF and GETV exhibits color artifacts in the blue sky. Although, BM3D has good visual and good error values (Table 4), its approach to denoising is fundamentally different from the PDE-based method introduced in this work.
9.5 Results
We already mentioned in the introductory paragraph of this section that we do not aim to outperform state of the art denoising methods. Rather we study how the usage of an oversegmentation map influence the noise removal. Our PDE-framework defines a natural way of reducing the filtering process at border regions rich with detail and texture, so as to not oversmooth corners and lines. We show that the mapping function is the key component for this approach.
Figure 14 illustrates a result for all considered methods, obtained at their maximum SSIM values. The right
| PSNR | SSIM | |
|---|---|---|
| Noisy | 22.10 | 0.47 |
| ISO | 25.09 | 0.75 |
| ISOm | 25.36 | 0.76 |
| TV | 26.71 | 0.80 |
| TVm | 26.66 | 0.80 |
| GETV | 27.60 | 0.77 |
| GETVm | 26.70 | 0.80 |
| TGV | 27.98 | 0.82 |
| BM3D | 31.36 | 0.90 |
| MRF | 28.26 | 0.81 |
Table 4 Error values for the Boat image in Figure 13 and 14. We see that the mapping function in particular improves the SSIM values. Compared to TGV, BM3D and MRF our results are most similar to TGV and MRF.
illustration in Figure 13 shows the mapping for GETVm. We see that the red color-region on the bow of the Boat has high uncertainty, thus in this region, the mapping-based algorithms will reduce the filtering. Note that the color coding is in the RGB-space in the mapping-figure although the actual filtering is done in the CIELAB-space. This means that red color in the mapping corresponds to filtering in the CIELAB intensity channel whereas green and blue describe the opponent color channels. White color indicates that each CIELAB-value is well described by the estimated sample distributions and therefore we have high filtering in each CIELAB channel. Moreover, the color cyan indicates filtering of only the chroma information, not the structural information present in the intensity channel. Due to the mapping, the filtering is reduced in regions with high uncertainty. Example of such regions are the sail and the mountain in the background, see, e.g., ISOm in Figure 14. Here, this gives an improved visual appearance without oversmoothing details in these regions while suppressing the noise in the background. With respect to the error measures for the Boat image, see Table 4, it is obvious that BM3D outperforms all compared methods. However, GETV is on-par with TGV and MRF. The mapping makes the most difference for GETV, showing more improvement than any of the other approaches. Although the PSNR value decreases marginally for TVm compared to TV, the denoised result in Figure 14 appears less oversmoothed for TVm.
Figure 15 shows the original and the noisy image of Lena. The same figure also depicts the mapping produced by the GETVm method. Figure 16 illustrates the result of filtering the Lena image for the respective method. In this case, image regions are well-preserved by the mapping, e.g., the brim of the hat and the hair. Note that the mapping-based methods have a tendency to oversmooth features in highly textured regions, e.g., the feathers in Lena's hat. This is due to the violation of homogeneous partitioning of the oversegmentation map, clearly visible in Figures 13 and 15. This is a frequent problem for these types of image structure. With respect to the error measures, Table 5, we see that BM3D is again superior to all considered methods. We also note that the introduction of mapping function does improve the ISO, TV and GETV error values and visual appearance.
| PSNR | SSIM | |
|---|---|---|
| Noisy | 22.08 | 0.40 |
| ISO | 27.69 | 0.80 |
| ISOm | 28.09 | 0.81 |
| TV | 29.05 | 0.83 |
| TVm | 29.32 | 0.83 |
| GETV | 29.12 | 0.76 |
| GETVm | 29.42 | 0.84 |
| TGV | 30.03 | 0.85 |
| BM3D | 33.10 | 0.91 |
| MRF | 29.71 | 0.82 |
Table 5 Error values for the Lena image in Figure 15 and 16. In this case the mapping improves all error values. Compared to TGV, BM3D and MRF our results are most similar to TGV and MRF.
10 Discussion and summary of results
This work introduces an alternative viewpoint to image filtering, as such, we discuss the usability of the method and give some additional interpretations.
The novelty of our approach is the idea of including a mapping of the image value range in the variational framework. To this end, the resulting PDE does not only describe spatially-adaptive filtering but also depends on the image value range. Important to note is that the mapping can be defined as either a local or a global function. By this we mean that the mapping can be defined locally, i.e., in a region, or alternatively, globally as in the application of gamma correction where the mapping is applied pixel-wise. We shortly elaborate on the difference between these classes of mapping functions.
For interesting image processing applications, e.g., the ones considered in this work, it is formally necessary to decouple the derived Euler-Lagrange equation from the initial variational formulation. The reason is that none of the complex definitions of the mapping and the nonlinear mappings of the tensor GET allows us obtain an energy functional on the form (17). This is due to the result in Proposition 1. However, note that
Freddie Åström et al.
Fig. 15 Image “Lena”. Top left original image, top right shows the degraded image corrupted with additive Gaussian noise of standard deviations 20. Down left shows the oversegmentation map of the noisy image and down right illustrates the obtained mapping function.

Original
Noisy
Oversegmentation
Mapping
the decoupling is only in the case GET has negative eigenvalues. For an extended discussion of GET and its properties see [28]. If we instead consider the structure tensor: the energy and the E-L equation are fully decoupled due to the convolution operator, we again refer to Proposition 1.
The versatility of our framework allows a large number of image processing problems to be considered. In this work we illustrate applications of image denoising. We hypothesize that the mapping can be used in, e.g., image value range compression, visualization, deblurring and inpainting, etc. We also see possible extensions to estimate (or learn) the mapping from datasets of images or self-similarity measures of patches in an image.
Naturally our approach is not the only way to achieve any of the considered applications. However, it is a reasonable assumption that coupling the filtering process with the nonlinear mapping is a preferred formulation. Our method is a framework that provides a natural and explicit coupling for image enhancement: it relates theoretical expositions with user-defined as well as data-specific priors. This versatility, comes at a cost of performance. In fact, one can tailor methods to solve each application independently, this is what BM3D has done with great success for the application of image denoising. Although heuristic methods can give better performance w.r.t. error measures, their scalability to other applications remain limited.
To further motivate our approach and clarify its potential we wish to highlight specific differences between the mapping functions we have considered in the respective applications. In particular we discuss, what we call, local and global mapping functions and in what context the mapping is a suitable approach.
Table 1, Section 1, gives an overview of the different mapping functions considered in this work.
10.1 Global mappings
A global mapping is a mapping where each image sample (pixel) is mapped with the same definition of the mapping function, i.e., .
This type of mapping is used in the first application on gamma correction. We emphasize that in this case the mapping does not provide any additional explicit

ISO
TV
GETV
ISOm
TVm
GETVm

BM3D
TGV
MRF
Fig. 16 Comparison of visual quality. The brim of Lena's hat appears more clear where we have applied the mapping function, compared to ISO, TV and GETV. As expected, ISO and ISOm are oversmoothed. TVm, GETVm and TGV all have similar visual appearance. In this example image, there are no apparent color artifacts. Visually, Lenas hair retains more details in BM3D, TGV and MRF compared with TVm and GETVm.
edge information of the image. However, the mapping does provide information how the image values should map, e.g., to correct for the gamma distortion in the final result. Recall that the property of the mapping is that if a line/corner, or feature, is present in the image value range after the mapping, then the feature is preserved. If the structure is not present in the value range after the mapping then the feature is not preserved. Again, although the purely global mapping formulation does not give an explicit edge-stopping effect, the mapping will aid the discontinuity preservation induced by the PDE given that the feature information
Freddie Åström et al.
is present after the mapping. Moreover, since the mapping is nonlinear, a weak edge in the input data may be transformed to a strong edge as the mapping is applied. Thus, the mapping gives an implicit edge-preservation effect. Next we contrast the global mapping function with the local mapping.
10.2 Local mapping
We have considered two types of local mappings. First we defined a local mapping of the color image value range (Application II), where we target the filtering process to a certain color range. The selection of the color range is based on user-input but may also be generalized to prior value ranges based on application requirements. The advantage of having a coupled value and spatial-range filtering process is clear in this targeted application: one does not need to explicitly handle the transition (border) between filtered and unfiltered value range data. This is implicitly handled by the smoothness of the mapping function.
In the third application, we defined an oversegmentation map where each segment in the map describe a local homogeneous region. From these segments we estimate local density functions and via a mixture model we achieve an edge stopping effect between the segments. This edge-stopping effect can be seen in Figure 2 (second row, middle figure) and in the mappings in Figure 13 and 15, respectively. Individually, density functions do not provide any information about edge-localization, rather it is the combination of densities that prove edge-localization. This combination of mappings depends on a large number of pixels and their relation. This is comparable, but goes beyond the local estimation of the edge-stopping function in P-M diffusion etc. The method used to produce the oversegmentation map is not unique. Moreover, one can apply any method that produces an oversegmentation map. Naturally, the effect of the mapping in the filtering process will depend on the accuracy of detected segment boundaries.
11 Conclusions
This work introduced a mapping of the image value range into a variational framework. The key component is the mapping function that allows us to replace the ad-hoc edge-stopping function otherwise present in diffusion schemes. After adopting the mapping function to a set of image processing problems we conclude that the mapping contributes positively to the filtering process. Moreover, we have shown that the mapping can be estimated (or set) for each application in a non-parametric way. Our main finding is that context aware tensor-based image filtering can be derived from principles of energy minimization. However, with respect to general image denoising, state of the art denoising methods outperform our framework. If we consider targeted value range applications our methodology clearly demonstrates advantageous aspects by improving feature preservation while reducing the image noise. It is expected that, under appropriate mappings, related energy based problem will benefit from the presented work. Naturally, assuming a reasonable map can be formulated, the direct extension to these alternative applications is to generalize existing regularization terms.
Acknowledgements We thank the reviewers for their helpful comments and suggestions which have improved this work. This research has received funding from the Swedish Foundation for Strategic Research through the grant VPS and from Swedish Research Council through grants for the projects energy models for computational cameras (EMC ) and Visualization adaptive Iterative Denoising of Images (VIDI), all within the Linnaeus environment CADICS and the excellence network ELLIIT. Support by the German Science Foundation and the Research Training Group (GRK 1653) is gratefully acknowledged by the first author.
A Proof of Theorem 1
To prove Theorem 1, compute the variational derivative of the functional (28). The first variation is given by
Now, we let in and we get
then, from the product rule of differentiation, we need to consider the following terms
(84)
To simplify the notation define
and note the relation
We first consider the differentiation of the B-component w.r.t . In order to differentiate the B-component use the chain rule of differentiation:
then
with
(88)
evaluating the limit in (87) with (88) we get
(89)
Next, we focus on the second product in (84). Then, with (89) and after few rewrites, we obtain the following
(90a)
(90b)
(90c)
(90d)
where we set
and is defined in (26). The definitions and will be used in the application of Green's formula (17). Now we focus on the differentiation of the -component w.r.t. in (83a), i.e., we set and get
(92)
With (92) we evaluate the limit of (83a) which results in
(93)
where the definitions E and F will be used in the application of Green's theorem. Summing (90d) and (93) and making use of G, H and E, F yields
(94)
The second integral of (94) is now on the form , i.e., we can integrate it w.r.t. by using Green's formula (cmp. (17)) and get
where the natural Nuemann boundary condition is given by . Substituting defined in (90d) and (93) into the above expression, and after rearranging the terms and dropping the parentheses for improved clarity, we get
The above E-L equation can be simplified by considering the following expansion
(96)
Freddie Åström et al.
Substituting the first term of the right hand side of (96) into the PDE of (95) we get:
(97)
The final result is obtained after subtracting the last term from the first term in (97), which concludes the proof. ☐
B Proof of Corollary 4
To derive the gradient energy tensor diffusion scheme we set W and D as specified in (59). With this relation between W and D we introduce E and set , then . Before proceeding with the proof, we specify the components of GET. The components of GET (54) are
Now we need to compute in (27) with , that is, we have
The derivatives of E reads
The tensor in the E-L scheme, can now be expressed as (62).
C Eigendecomposition
This part decomposes in its eigendecomposition and computes and . We have
where and and are the eigenvalues of GET with . We obtain the eigenvectors of GET by solving , i.e., we have the following equation system
The orthonormal eigenvectors of GET are (67) and (68). Now, we focus on in (66). After expanding the derivatives of the eigenvectors we obtain
and
The derivatives of the tensor's eigenvalues are:
(104)
where
and
(106b)
In the case the difference to the above derivation is that , thus and should be modified accordingly. The component follows the same line of calculations and is therefore omitted here.
References
-
Åström, F., Baravdish, G., Felsberg, M.: On Tensor-Based PDEs and their Corresponding Variational Formulations with Application to Color Image Denoising. In: ECCV12, vol. 7574, pp. 215–228. LNCS, Springer Berlin/Heidelberg, Firenze (2012)
-
Åström, F., Baravdish, G., Felsberg, M.: A tensor variational formulation of gradient energy total variation. In: X.C. Tai, E. Bae, T. Chan, M. Lysaker (eds.) Energy Minimization Methods in Computer Vision and Pattern Recognition (EMMCVPR), LNCS, vol. 8932, pp. 307–320. Springer International Publishing (2015)
-
Åström, F., Felsberg, M.: On the choice of tensor estimation for corner detection, optical flow and denoising. In: C. Jawahar, S. Shan (eds.) Computer Vision - ACCV 2014 Workshops, LNCS, vol. 9009, pp. 16–30. Springer International Publishing (2015)
-
Åström, F., Felsberg, M., Baravdish, G., Lundström, C.: Targeted Iterative Filtering. In: SSVM2013, June, pp. 1–11. Springer Berlin/Heidelberg (2013)
-
Åström, F., Zografos, V., Felsberg, M.: Density Driven Diffusion. In: SCIA, pp. 17–20 (2013)
-
Aubert, G., Kornprobst, P.: Mathematical Problems in Image Processing: Partial Differential Equations and the Calculus of Variations (second edition), Applied Mathematical Sciences, vol. 147. Springer, Berlin (2006)
-
Ballester, C., Bertalmío, M., Caselles, V., Sapiro, G., Verdera, J.: Filling-In by Joint Interpolation of Vector Fields and Gray Levels. IEEE Transactions on Image Processing 10(8), 1200–1211 (2001)
-
Baravdish, G., Svensson, O., Åström, F.: On Backward -Parabolic Equations for Image Enhancement. Numerical Functional Analysis and Optimization 36(2), 147–168 (2015)
-
den Bergh, M.V., Boix, X., Roig, G., de Capitani, B., Gool, L.V.: SEEDS: Superpixels Extracted via Energy-Driven Sampling. In: A.W. Fitzgibbon, S. Lazebnik, P. Perona, Y. Sato, C. Schmid (eds.) ECCV12, LNCS, vol. 7578, pp. 13–26. Springer (2012)
-
Bigün, J., Granlund, G.H.: Optimal Orientation Detection of Linear Symmetry. In: Proceedings of the IEEE First ICCV, pp. 433–438. London, Great Britain (1987)
-
Black, M.J., Rangarajan, A.: On the Unification of Line Processes, Outlier Rejection, and Robust Statistics with Applications in Early Vision. IJCV 19(1), 57–91 (1996)
-
Blomgren, P., Chan, T.F., Mulet, P., Wong, C.: Total Variation Image Restoration: Numerical Methods and Extensions. In: in Proc. IEEE ICIP, pp. 384–387 (1997)
-
Bollt, E.M., Chartrand, R., Esedoğlu, S., Schultz, P., Vixie, K.R.: Graduated Adaptive Image Denoising: Local Compromise Between Total Variation and Isotropic Diffusion. Advances in Computational Mathematics 31(1), 61–85 (2008)
-
Bovik, A.C., Maragos, P.: Conditions for positivity of an energy operator. Signal Processing, IEEE Transactions on 42(2), 469–471 (1994)
-
Boyd, S., Vandenberghe, L.: Convex Optimization. Cambridge University Press, New York, NY, USA (2004)
-
Bredies, K., Kunisch, K., Pock, T.: Total Generalized Variation. SIAM J. Img. Sci. 3(3), 492–526 (2009)
-
Bruhn, A., Weickert, J., Feddern, C., Kohlberger, T., Schnörr, C.: Variational optical flow computation in real time. Image Processing, IEEE Transactions on 14(5), 608–615 (2005)
-
Buades, A., Coll, B., Morel, J.M.: A non-local algorithm for image denoising. In: CVPR, vol. 2, pp. 60 – 65 vol. 2 (2005)
-
Chan, T., Esedoğlu, S., Park, F., Yip, A.: Total Variation Image Restoration: Overview and Recent Developments. In: N. Paragios, Y. Chen, O. Faugeras (eds.) Handbook of Mathematical Models in Computer Vision, chap. 2, pp. 17–31. Springer US (2006)
-
Chan, T.F., Golub, G.H., Mulet, P.: A nonlinear primal-dual method for total variation-based image restoration. SIAM Journal on Scientific Computing 20(6), 1964–1977 (1999)
-
Chan, T.F., Kang, S.H., Kang, Shen, J.: Euler's elastica and curvature based inpaintings. SIAM J. Appl. Math 63, 564–592 (2002)
-
Chan, T.F., Wong, C.K.: Total Variation Blind Deconvolution. IEEE Transactions on Image Processing 7(3), 370–375 (1998)
-
Chen, Y., Levine, S., Rao, M.: Variable exponent, linear growth functionals in image processing. SIAM Journal on Applied Mathematics 66, 1383–1406 (2004)
-
Dabov, K., Foi, A., Katkovnik, V., Egiazarian, K.O.: Image Denoising by Sparse 3-D Transform-Domain Collaborative Filtering. IEEE Transactions on Image Processing 16(8), 2080–2095 (2007)
-
DiBenedetto, E.: Degenerate parabolic equations. Springer-Verlag, New York (1993)
-
Felsberg, M.: Autocorrelation-Driven Diffusion Filtering. Image Processing, IEEE Transactions on 20(7), 1797–1806 (2011)
-
Felsberg, M., Granlund, G.: POI detection using channel clustering and the 2D energy tensor. In: In: Pattern Recognition: 26th DAGM Symposium. Volume 3175 of LNCS, pp. 103–110 (2004)
-
Felsberg, M., Köthe, U.: GET: The connection between monogenic scale-space and Gaussian derivatives. In: R. Kimmel, N. Sochen, J. Weickert (eds.) Scale Space and
PDE Methods in Computer Vision, LNCS, vol. 3459, pp. 192–203. LNCS (2005)
-
Förstner, W., Gülch, E.: A fast operator for detection and precise location of distinct points, corners and centres of circular features. In: ISPRS Intercommission, Workshop, Interlaken, pp. 149-155. (1987)
-
Gårding, J., Lindeberg, T.: Direct computation of shape cues using scale-adapted spatial derivative operators. IJCV 17(2), 163–191 (1996)
-
Gilbarg, D., Trudinger, N.: Elliptic Partial Differential Equations of Second Order. Classics in Mathematics. Springer Berlin Heidelberg (2001)
-
Granlund, G.H., Knutsson, H.: Signal processing for computer vision. Kluwer (1995)
-
Grasmair, M., Lenzen, F.: Anisotropic Total Variation Filtering. Applied Mathematics & Optimization 62(3), 323–339 (2010)
-
Horn, B.K.P., Schunck, B.G.: Determining Optical Flow. Artificial Intelligence 17, 185–203 (1981)
-
Horn, R.A., Johnson, C.R. (eds.): Matrix Analysis. Cambridge University Press, New York, NY, USA (1986)
-
Huguet, F., Devernay, F.: A variational method for scene flow estimation from stereo sequences. In: Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on, pp. 1–7 (2007)
-
Kaiser, J.F.: On a simple algorithm to calculate the ‘energy’ of a signal. In: Acoustics, Speech, and Signal Processing, 1990. ICASSP-90., 1990 International Conference on, pp. 381–384 vol.1 (1990)
-
Kass, M., Witkin, A., Terzopoulos, D.: Snakes: Active contour models. International Journal of Computer Vision 1(4), 321–331 (1988)
-
Koenderink, J.J.: The Structure of Images. Biological Cybernetics 370(50), 363–370 (1984)
-
Krajsek, K., Scharr, H.: Diffusion Filtering Without Parameter Tuning: Models and Inference Tools. In: CVPR2010, pp. 2536–2543. San Francisco (2010)
-
Kuijper, A.: Geometrical {PDEs} based on second-order derivatives of gauge coordinates in image processing. Image and Vision Computing 27(8), 1023 – 1034 (2009)
-
Ladyženskaja, O.A., Solonnikov, V.A., Ural'ceva, N.N.: Linear and Quasilinear Equations of Parabolic Type. Translated from the Russian by S. Smith. Translations of Mathematical Monographs, Vol. 23. American Mathematical Society, Providence, R.I. (1968)
-
Lefkimmiatis, S., Roussos, A., Unser, M., Maragos, P.: Convex Generalizations of Total Variation Based on the Structure Tensor with Applications to Inverse Problems. In: A. Kuijper, K. Bredies, T. Pock, H. Bischof (eds.) SSVM, pp. 48–60 (2013)
-
Levin, A., Nadler, B., Durand, F., Freeman, W.T.: ECCV 2012, chap. Patch Complexity, Finite Pixel Correlations and Optimal Denoising, pp. 73–86. Springer Berlin Heidelberg, Berlin, Heidelberg (2012)
-
Lindeberg, T.: Scale-Space Theory in Computer Vision. Kluwer international series in engineering and computer science: Robotics: Vision, manipulation and sensors. Springer (1993)
-
Nordberg, K.: Signal Representation and Processing using Operator Groups. Ph.D. thesis, Linköping University, Sweden, SE-581 83 Linköping, Sweden (1995)
-
Oliveira, J.P., Bioucas-Dias, J.M., Figueiredo, M.A.: Adaptive total variation image deblurring: A majorization-minimization approach. Signal Processing 89(9), 1683 – 1693 (2009)
-
Perona, P., Malik, J.: Scale-space and edge detection using anisotropic diffusion. IEEE Transactions, PAMI 12(7), 629–639 (1990)
Freddie Åström et al.
-
Roussos, A., Maragos, P.: Tensor-based image diffusions derived from generalizations of the total variation and beltrami functionals. In: ICIP, pp. 4141–4144 (2010)
-
Rudin, L., Osher, S., Fatemi, E.: Nonlinear total variation based noise removal algorithms. Physica D 60(1-4), 259–268 (1992)
-
Scherzer, O., Weickert, J.: Relations Between Regularization and Diffusion Filtering. Journal of Mathematical Imaging and Vision 12(1), 43–63 (2000)
-
Schmidt, U., Gao, Q., Roth, S.: A generative perspective on mrfs in low-level vision. In: Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference on, pp. 1751–1758 (2010)
-
Sharma, G., Bala, R.: Digital Color Imaging Handbook. Electrical Engineering & Applied Signal Processing Series. Taylor & Francis (2014)
-
Torralba, A., Oliva, A.: Statistics of natural image categories. Network: Computation in Neural Systems pp. 391–412 (2003)
-
Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: Image quality assessment: from error visibility to structural similarity. IEEE Trans. Image Processing 13(4), 600–612 (2004)
-
Weickert, J.: Anisotropic Diffusion in Image Processing. Teubner-Verlag, Stuttgart, Germany (1998)
-
Weickert, J.: Nonlinear Diffusion Filtering. In: B. Jähne, H. Haussecker, P. Beissler (eds.) Signal processing and pattern recognition, Handbook of Computer Vision and Applications, chap. 15, pp. 423–451. Academic Press (1999)