# À Trous Wavelets Transform

A wavelet is a function at the base of the wavelet decomposition, a decomposition similar to the short term Fourier transform, used in signal processing. It corresponds to the intuitive idea of a function corresponding to a small oscillation, hence its name.

There are many types of wavelet functions that have their own names, as shown in the figure below.

The À Trou Wavelet Transform used in Siril performs decomposition of an image into a series of scale layers, also known as wavelet layers. These layers can be extracted with the Wavelet Layers extraction tool, however here, they are used without being visually accessible. In general, this algorithm is widely used at the end of a planetary image stack. Because the noise is exclusively contained in one of the wavelet layers, it is possible to bring out the details of the image by containing the noise amount.

The first thing to do is to click on the Execute button in order to calculate the wavelet layers using the parameters defined above, such as:

**Type**: There are two types of algorithms possible: Linear and BSpline. The latter will usually be chosen, even if it is a bit slower.**Nb of layers**: Number of wavelet layers that will be used. 6 is the maximum number of layers that can be defined. To work on a larger number of layers it is possible to use the command line explained below.

Then, each layer has a slider that allows to modify the contrast of this layer. If less than 6 layers have been created, then only the corresponding sliders will be active. A value greater than 1 improves the details while a smaller value tends to reduce them.

This is a liveview tool. The changes are displayed in real time and you have to click on Apply to validate them. Clicking on Reset resets all the sliders to 1, and thus cancels any transformation in progress.

Siril command line

```
wavelet nbr_layers type
```

**nbr_layers**=1...6) layer(s) using linear (

**type**=1) or bspline (

**type**=2) version of the 'à trous' algorithm. The result is stored in a file as a structure containing the layers, ready for weighted reconstruction with WRECONS.

Siril command line

```
wrecons c1 c2 c3 ...
```

**c1**,

**c2**, ...,

**cn**according to the number of layers used for wavelet transform, after the use of WAVELET

The example given in the image above would be written in the command line as follow:

```
wavelet 6 2
wrecons 31 5 1 1 1 1
```