completely_reconstruct_2d

Function completely_reconstruct_2d 

Source
pub fn completely_reconstruct_2d(
    signal_2d: ArrayViewMut2<'_, f32>,
    buffer: ArrayViewMut1<'_, f32>,
    wavelet: Wavelet<'_>,
)
Expand description

Inverse wavelet transform, 2D, completely, inplace.

+----+----+---------+    +-------------------+
|----| H₁ |         |    |                   |
+----+----+    H₀   |    |                   |
| V₁ | D₁ |         |    |     Original      |
+----+----+---------+ => |                   |
|         |         |    |     2D Signal     |
|    V₀   |    D₀   |    |                   |
|         |         |    |                   |
+---------+---------+    +-------------------+

Vertical firstly, then horizontal.

§Hard requirements

  • signal_shape should be exactly a square, otherwise it will panic in debug builds.
  • signal_side_length should be exactly a power of 2, otherwise it will panic in debug builds.
  • buffer_size >= signal_side_length + window_size - TWO