Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

2-D Haar wavelet transform

```
[a,h,v,d]
= haart2(x)
```

```
[a,h,v,d]
= haart2(x,level)
```

```
[a,h,v,d]
= haart2(___,integerflag)
```

`[`

performs the 2-D Haar
discrete wavelet transform (DWT) of the matrix, `a`

,`h`

,`v`

,`d`

]
= haart2(`x`

)`x`

. `haart2`

returns
the approximation coefficients, `a`

, at the coarsest
level. `haart2`

also returns cell arrays of matrices
containing the horizontal, vertical, and diagonal detail coefficients
by level. If the 2-D Haar transform is computed only at one level
coarser in resolution, then `h`

, `v`

,
and `d`

are matrices. The default `level`

depends
on the number of rows of `x`

.