Professional website

In this demo, we illustrate the effect of Total Variation regularization on images and how it can be used for image denoising.

Total variation is a measure of the complexity of an image with respect to its spatial variation. It has several variations in the image processing litterature. In this demo we will discuss its extension to color images. In color images, one can consider each pixel as a 3D vector.

The total variation of a color image can be expressed as

We will focus in the following to 3 special cases

- Classical TV computed independently on each color component.
- TV computes the euclidean norm of the vector.
- Squared TV computes the squared euclidean norm of the vector.

Those variants of TV measure different spatial variation. wil sum the absolute values of the finite differences for each color component independently. and squared will sum respectively the norm and squared norm of the vector of difference treating all the color components simultaneously.

TV can be also be used for image denoising. This can be done by computing the following optimization problem

In this image, we can clearly see that the squared TV leads to a smooth image at the cost of loosing sharp edges and details in the image. and TV both keep sharp edges. in the case of TV, all color component are treated independently leading to color artifacts around the edges.

In order to see the effect of TV regularization on a real-life image, we will use the widly known Lena picture. We will apply the regularization on both the original image (up) and an image that contains noise (down).

Note that due to the size of the images, the update might take a while when changing the parameters, depending on your internet provider.

Both the TV variant and the regularization parameter can be changed in this demo. The Signal to noise ratio of the reconstructed image is also provided.

Note that an early stopping is used which might return an approximate solution for some values of the regularization parameter.

Total Variation have been around in the image processsing comunity for a while now since the pioneer works of [1]. A nice and simple paper about the extension to color image cen be found in [2]. Finally the algorithm used for solving the optimization probleme is a variant of ADMM as discussed in [3].

[1] **Nonlinear total variation based noise removal algorithms**, Rudin, L. I.; Osher, S.; Fatemi, E. (1992). Physica D 60: 259–268.

[2] **A generalized vector-valued total variation algorithm.**, Rodriguez Paul, and Brendt Wohlberg. Image Processing (ICIP), 2009 16th IEEE International Conference on. IEEE, 2009.

[3] **An ADMM algorithm for a class of total variation regularized estimation problems**, Wahlberg, B., Boyd, S., Annergren, M., & Wang, Y. (2012).