Papers
Topics
Authors
Recent
Search
2000 character limit reached

Haar Wavelet Downsampling Overview

Updated 7 July 2026
  • Haar wavelet downsampling is a method that uses the orthonormal Haar DWT to decompose signals or images into approximation and detail coefficients for exact reconstruction.
  • It facilitates multilevel decomposition and critical sampling, allowing applications in serial X-ray crystallography and CNN-based image super-resolution.
  • Empirical results show Haar's optimal performance in localized peak detection and efficient hardware implementation, outperforming many alternative wavelets.

Searching arXiv for the cited papers to ground the article in the current literature. Haar wavelet-based downsampling is the use of the orthonormal Haar discrete wavelet transform (DWT) to couple dyadic decimation with multiresolution analysis and exact reconstruction. In one dimension it separates a signal into approximation and detail coefficients; in two dimensions it produces the four critically sampled subbands LLLL, LHLH, HLHL, and HHHH, so that low-frequency structure and oriented high-frequency structure are represented explicitly rather than being collapsed by noninvertible pooling. In recent arXiv literature, this mechanism is used both as a front-end for serial X-ray crystallography image segmentation and lossy compression, where approximation coefficients are suppressed to isolate Bragg peaks, and as a preprocessing stage for CNN-based image super-resolution, where wavelet subbands define the representation learned by the network (Doering et al., 18 May 2026, Lowe et al., 2022).

1. Mathematical basis of Haar downsampling

The orthonormal Haar (db1) filter bank uses the 1D scaling and wavelet analysis filters

h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].

This choice preserves energy and permits simple inversion. The same source characterizes Haar by one vanishing moment and the “shortest possible filter support,” and notes that the coefficients become integer-valued for hardware when the 2\sqrt{2} normalization is factored appropriately (Doering et al., 18 May 2026).

For a discrete signal xj[n]x_j[n] at level jj, the approximation and detail coefficients at level j+1j+1 are

aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].

Equivalently, the signal is convolved with LHLH0 and LHLH1 and then downsampled by LHLH2. Because the Haar bank is orthonormal, synthesis uses the same filters up to reversal, and reconstruction is

LHLH3

where LHLH4 denotes upsampling by inserting zeros between samples (Doering et al., 18 May 2026, Lowe et al., 2022).

In two dimensions, the transform is separable. For an image LHLH5, the level-LHLH6 subbands are

LHLH7

LHLH8

LHLH9

HLHL0

Each subband is decimated by HLHL1 in both dimensions. Thus, for an HLHL2 input, HLHL3 has shape HLHL4 after HLHL5 levels, and the same dimensional rule holds for the detail subbands at that scale (Doering et al., 18 May 2026).

2. Multilevel decomposition, pooling, and implementation semantics

A multilevel Haar pyramid is formed by repeatedly applying the 2D DWT to the HLHL6 subband. In the crystallography pipeline, levels HLHL7 are produced in this way, with HLHL8 reported as optimal for the tested datasets (Doering et al., 18 May 2026). In the blockwise formulation used for adaptive 2D Haar compression, one level maps each HLHL9 block to four coefficients and therefore yields four HHHH0 matrices HHHH1, HHHH2, HHHH3, and HHHH4 from an HHHH5 matrix; repeated decomposition then implies an HHHH6 approximation after HHHH7 levels (Prisheltsev, 2014).

The low-frequency subband has a particularly direct interpretation for Haar. At level HHHH8, HHHH9 is a local average over a h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].0 support; at deeper levels it corresponds to progressively larger effective windows. This makes Haar downsampling analogous to average pooling at the level of local averaging, but not at the level of representation. The DWT is frequency-selective, exactly invertible in the orthonormal setting, and spatially localized because of compact support; average or max pooling does not supply an oriented frequency decomposition and is not invertible (Doering et al., 18 May 2026).

This distinction is central to the practical meaning of “downsampling” in Haar systems. The transform is critically sampled: the aggregate number of coefficients across h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].1, h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].2, h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].3, and h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].4 equals the original number of pixels, even though each subband has half resolution in each axis. A plausible implication is that Haar downsampling is best understood not as raw data reduction by itself, but as a reallocation of samples into subspaces that can then be selectively discarded, thresholded, or transmitted.

The same literature also emphasizes that dyadic decimation introduces shift variance: small translations can change which samples populate h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].5 versus h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].6 (Doering et al., 18 May 2026). In super-resolution implementations, boundary extension must also be chosen explicitly. Symmetric extension is described as commonly used with orthonormal wavelets such as Haar to preserve edge energy and avoid artifacts, whereas periodic extension can introduce seams and zero-padding can dim borders; however, that super-resolution paper does not specify which padding policy it used (Lowe et al., 2022).

3. Background suppression and peak isolation in serial crystallography

In serial X-ray crystallography, Haar wavelet-based downsampling is used not merely to reduce spatial resolution but to separate smooth background scatter from localized diffraction peaks. The reported pipeline applies a 2D Haar DWT with h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].7 levels, zeros the approximation coefficients, reconstructs from detail subbands only, thresholds the reconstructed image, runs peak finding, and transmits only the identified peaks for lossy compression (Doering et al., 18 May 2026).

For one reconstruction stage with approximation suppressed, the detail-only inverse synthesis is written as

h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].8

with the standard recursive multiresolution synthesis applied across levels when h=[1/2,1/2],g=[1/2,1/2].h = [1/\sqrt{2},\, 1/\sqrt{2}], \qquad g = [1/\sqrt{2},\, -1/\sqrt{2}].9 is zeroed (Doering et al., 18 May 2026). The rationale given is domain-specific: smooth background from water or air scatter is concentrated in 2\sqrt{2}0, whereas sharp Bragg peaks populate detail subbands across scales.

The empirical results are stated on 100 simulated nanoBragg frames with known ground truth derived from noiseless diffraction via connected-components and a 5-pixel matching radius. With Haar, 2\sqrt{2}1, and threshold 2\sqrt{2}2 photons, the pipeline achieves 2\sqrt{2}3, precision 2\sqrt{2}4, and recall 2\sqrt{2}5. Under the same evaluation framework, peakfinder8 with 2\sqrt{2}6 yields 2\sqrt{2}7, 2\sqrt{2}8, and 2\sqrt{2}9 (Doering et al., 18 May 2026).

The paper further reports downstream crystallographic analysis on real ePix10kA data. The metrics xj[n]x_j[n]0 and xj[n]x_j[n]1 converge at xj[n]x_j[n]2 and track the unprocessed baseline through the practical resolution limit of approximately xj[n]x_j[n]3--xj[n]x_j[n]4 Å. The same source defines

xj[n]x_j[n]5

xj[n]x_j[n]6

and

xj[n]x_j[n]7

Here xj[n]x_j[n]8 is interpreted as estimating the correlation for the fully merged dataset from the half-dataset correlation, while xj[n]x_j[n]9 measures consistency between half datasets after merging and scaling (Doering et al., 18 May 2026).

4. Wavelet choice, noise sensitivity, and hardware realization

A recurrent issue in Haar wavelet-based downsampling is whether Haar is merely the simplest option or whether it is specifically advantageous. In the serial crystallography study, a comparison of 12 wavelet families at jj0 and over 100 frames found Haar to be optimal for Bragg-peak detection, with jj1 and a precision-recall curve reaching the upper-right corner of the precision-recall space. Other families clustered at jj2--jj3, with coif1, bior2.2, and db2 identified as the next-best performers (Doering et al., 18 May 2026). The explanation given is that minimal 2-tap support maximizes spatial localization and preserves peak amplitude, whereas longer filters spread peak energy across more coefficients and weaken the reconstructed peaks.

The same study also identifies a limitation under added Gaussian noise with jj4--jj5 ADU. The DWT-based method retains jj6 at low noise levels, specifically for jj7 ADU, but precision degrades beyond approximately jj8 ADU because noise populates the high-frequency detail subbands and no denoising is applied before inverse synthesis. By contrast, peakfinder8 maintains a stable jj9 across the tested noise levels because it uses adaptive radial background and noise estimation (Doering et al., 18 May 2026). The reported remedies are wavelet-domain detail thresholding before synthesis, consideration of fewer decomposition levels, and evaluation of alternative wavelets or combinations of Haar with detail thresholding. The same source notes, however, that the ePixUHR noise floor is well below 1 photon, so the observed degradation above j+1j+10 ADU lies above expected operating conditions.

The hardware literature in the same paper treats Haar downsampling as especially attractive for streaming architectures. An FPGA implementation was demonstrated on an AMD/Xilinx Alveo U200 at 200 MHz. The DWT analysis filters are realized as fixed conv2D kernels with stride-2 and four output channels corresponding to j+1j+11, while separable 1D filters are preferred for resource efficiency (Doering et al., 18 May 2026). For a full design of 6 ASICs j+1j+12 8 partitions, giving 48 parallel cores, a separable float16 implementation is projected at approximately 3,312 DSP slices and about 260 BRAM blocks, corresponding to roughly 48% and 15% of U200 resources respectively. The same work states that a complete 4-level pipeline per core is projected at about 69 DSPs if the initiation interval is relaxed for deeper levels, and that single-layer cores run in approximately 24--27 j+1j+13s at 200 MHz (Doering et al., 18 May 2026).

Boundary handling is treated operationally rather than abstractly in that hardware setting. The paper does not prescribe a specific mathematical extension rule, but suppresses edge artifacts through overlapped tiling: 3 columns per side for a j+1j+14 kernel and 2 columns per side for a j+1j+15 kernel. It further states that the ePixUHR ASIC streams j+1j+16 pixels in 8 parallel partitions of 24 columns, that DWT cores operate per partition with overlap, and that the fixed coefficients provide a path from ePixUHR firmware to on-detector ASIC implementation in the SparkPix detector family (Doering et al., 18 May 2026).

5. Haar downsampling in wavelet-space super-resolution

In CNN-based image super-resolution, Haar wavelet-based downsampling serves as a representation transform rather than as a segmentation operator. A single-level 2D Haar DWT produces j+1j+17, j+1j+18, j+1j+19, and aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].0 from the low-resolution input; the network then predicts residual corrections for the detail subbands, and the inverse DWT combines the preserved low-frequency component with the corrected detail bands to reconstruct the output (Lowe et al., 2022).

The reported single-level network uses 10 convolutional layers, each with 64 filters of size aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].1 followed by ReLU,

aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].2

and is trained with an aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].3 loss in wavelet space,

aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].4

using Adam with learning rate aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].5, momentum decay aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].6, for 50 epochs (Lowe et al., 2022).

A central finding of that study is empirical invariance across 37 single-level wavelets drawn from the Haar, Daubechies, Biorthogonal, Reverse Biorthogonal, Coiflets, and Symlets families. Trained on DIV2K and evaluated on Set14, the metrics vary only slightly across wavelets. Haar reports PSNR aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].7, SSIM aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].8, FSIM aj+1[n]=kh[k]xj[2nk],dj+1[n]=kg[k]xj[2nk].a_{j+1}[n] = \sum_k h[k]\,x_j[2n-k], \qquad d_{j+1}[n] = \sum_k g[k]\,x_j[2n-k].9, GSM LHLH00, MAD LHLH01, SR-SIM LHLH02, and VIF LHLH03, while the full range spans roughly PSNR LHLH04--LHLH05, SSIM LHLH06--LHLH07, FSIM LHLH08--LHLH09, and VIF LHLH10--LHLH11 (Lowe et al., 2022). The paper interprets this as evidence that, in the single-level setting, the four-band decomposition and the CNN’s operation in wavelet space matter more than fine-grained differences among scalar wavelet filters.

The same paper contrasts single-level Haar with the GHM multi-level multiwavelet transform. GHM uses multiple scaling and wavelet functions, a two-stage matrix filter bank with provided matrices LHLH12, LHLH13, LHLH14, and LHLH15, and yields 16 subbands rather than 4 (Lowe et al., 2022). On Set14, the table reported in that work gives bicubic / Haar / GHM values of PSNR LHLH16, SSIM LHLH17, FSIM LHLH18, GSM LHLH19, MAD LHLH20, SR-SIM LHLH21, and VIF LHLH22 (Lowe et al., 2022). Thus, GHM improves FSIM, GSM, MAD, SR-SIM, and VIF over both bicubic and Haar, but yields slightly lower PSNR and SSIM than Haar on Set14. Within the scope of that evidence, Haar remains the pragmatic default for single-level wavelet-space CNNs because of simplicity and speed, whereas GHM is used when richer multiscale representation is prioritized.

6. Adaptive 2D Haar banks and compression-oriented variants

A distinct line of work treats Haar wavelet-based downsampling through adaptive 2D wavelet banks defined directly on the unit square rather than through standard separable 1D filter taps. In that formulation, Haar multiresolution analysis is generated by the characteristic function of LHLH23, with expansion matrix

LHLH24

and three piecewise-constant wavelet functions LHLH25 supported on the four quadrants of the unit square, each quadrant assigned constants LHLH26 subject to orthonormality constraints (Prisheltsev, 2014).

The operational transform in that paper is blockwise. For a LHLH27 matrix LHLH28, the low-pass and detail coefficients are defined as

LHLH29

LHLH30

Applying this transform over disjoint LHLH31 blocks produces four matrices LHLH32, LHLH33, LHLH34, and LHLH35, each of size LHLH36 for an LHLH37 input (Prisheltsev, 2014). In this setting, the approximation matrix LHLH38 is explicitly the block-average image, so it acts as the antialiased downsampled representation.

The same work constructs four orthonormal bases in LHLH39: a classical Haar basis and vertical, horizontal, and diagonal variants (Prisheltsev, 2014). Its adaptive Haar transform computes all four transforms for each LHLH40 block and selects the basis that minimizes

LHLH41

This is a local, spatially adaptive criterion intended to reduce detail energy prior to quantization and coding.

The reported compression pipeline converts an image to three RGB matrices, applies the two-dimensional wavelet transformation to each color matrix, quantizes the coefficients, performs Huffman coding, and writes the binary stream to a file (Prisheltsev, 2014). Compression rates are reported in the range of 30%--50%. For quantization, the stated rates are 54% for 64 levels, 49% for 32 levels, 45% for 16 levels, and 44% for 8 levels. For decomposition depth, the rates are 49% at level 1, 37% at level 2, 35% at level 3, and 34% at level 4 (Prisheltsev, 2014). The same paper states that the adaptive scheme is worse than simple wavelet-basis compression on average by 1--3% because the basis-id matrix must also be stored, and that no correlation between image type and compression was revealed.

A common misconception is that “Haar downsampling” is synonymous with crude averaging. These papers show a narrower and more technical picture. In the adaptive compression setting, the approximation coefficient is indeed a LHLH42 average; in the separable DWT setting, however, the average is only one branch of a perfect-reconstruction filter bank whose detail channels carry orientation and scale information (Prisheltsev, 2014, Doering et al., 18 May 2026). A second misconception is that the simplest wavelet is necessarily the weakest. In serial crystallography, the evidence points in the opposite direction: Haar’s minimal support is precisely what makes it optimal among the tested wavelet families for localized Bragg-peak detection (Doering et al., 18 May 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Haar Wavelet-based Downsampling.