Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Curvelets 1.5.dev1+g25b327cd1 documentation
Curvelets 1.5.dev1+g25b327cd1 documentation
  • Overview
  • Installation
  • Curvelet FAQs
  • Related Projects
  • NumPy backend
  • PyTorch backend
  • Contributing
  • Releases
    • 1.4
    • 1.3
      • Curvelets 1.3 under the hood
    • 1.2
    • 1.1
    • 1.0
    • Before 1.0
  • Example Gallery
    • Zone Plate
    • Asymmetric Directional Resolution
    • Multiscale Direction Disks
    • Meyer Wavelet Transform
    • Wavelet Transforms at the Highest Scale
    • Monogenic Curvelet Transform
    • Monogenic Curvelet Transform Verification
    • Window Overlap (Alpha) Heatmap
    • PyTorch UDCT Module
    • UDCT MNIST Classification
    • Curvelet-based Denoising
    • Curvelet-Domain Hessian Action
    • Comparison of Transform Atoms
    • Monogenic vs. Real Transform
    • Do Monogenic Curvelets Detect Faults Better?
  • API
    • curvelets package
      • curvelets.numpy package
      • curvelets.plot package
      • curvelets.torch package
      • curvelets.utils package
Back to top
View this page

Related Projects¶

Curvelab¶

Curvelab implements the fast discrete curvelet transforms (FDCT) of Candès et al. [2006] in C++ and MATLAB, for 2D and 3D signals. It is proprietary and free for academic use only.

Curvelet.jl¶

Curvelet.jl implements the UDCT [Nguyen and Chauris, 2010] in Julia, for 2D signals. The repository has been archived and read-only since 10 September 2019, and its last commit is from 2017.

Kymatio¶

Kymatio implements the wavelet scattering transform [Andreux et al., 2019, Bruna and Mallat, 2013] in Python, with PyTorch, TensorFlow and JAX frontends. The scattering transform takes a modulus, so it is not invertible. The project is not under active development: the last release is 0.3.0, and since mid-2024 the commits only fix tests, CI and dependencies. Version 0.3.0 does not import with current SciPy.

dtcwt¶

dtcwt is a Python port of the MATLAB dual-tree complex wavelet transform toolbox [Kingsbury, 2001], with NumPy, OpenCL and TensorFlow backends. The original repository was archived in July 2024 and states that it is no longer maintained. A fork, xir4n/dtcwt, continued it, but it also looks unmaintained: its last merged change is from June 2024, and its open pull requests, including support for NumPy 2, have not been merged. Version 0.14 does not work with NumPy 2.

Pytorch Wavelets¶

Pytorch Wavelets implements the 2D DWT, the DTCWT and a DTCWT-based scattering network in PyTorch, with GPU support [Cotter and McLaughlin, 2019]. Its last commit is from September 2022.

Summary¶

Project

Algorithm

Language

License

N-dimensional?

Invertible?

Curvelets

UDCT

Python

MIT

Yes

Yes

Curvelab

FDCT

C++ and MATLAB

Proprietary (free for academic use only)

2D, 3D

Yes

Curvelet.jl

UDCT

Julia

MIT

2D

Yes

Kymatio

Wavelet scattering transform

Python

BSD 3-clause

1D, 2D, 3D

No

dtcwt

Dual-Tree Complex Wavelet Transform

Python

BSD 2-Clause

1D, 2D, 3D

Yes

Pytorch Wavelets

Discrete WT and Dual-Tree CWT

Python

MIT

2D

Yes

Performance comparison¶

The forward transform of one 2D image or 3D volume (batch of one, float32) was timed on an NVIDIA RTX 3070 with 8 GB of memory, with benchmarks/library_comparison.py. In the table, each column is relative to its slowest library, which is 1x: Kymatio Scattering2D at 256x256 (162 ms) and 512x512 (165 ms), and dtcwt (NumPy) at 64x64x64 (169 ms). Higher is faster, and the fastest is in bold. The absolute times, in milliseconds, and the results for larger sizes (up to \(2048 \times 2048\)) are in benchmarks/data/library_comparison.json.

Library

Device

256x256

512x512

64x64x64

Curvelets (torch) [1]

cuda

1925x

1048x

655x

Curvelets (NumPy)

cpu

50x

14x

5x

Kymatio Scattering2D

cuda

1x

1x

pytorch_wavelets DWT

cuda

258x

262x

pytorch_wavelets DTCWT

cuda

22x

23x

dtcwt (NumPy)

cpu

26x

10x

1x

dtcwt (OpenCL)

opencl

30x

25x

dtcwt (TensorFlow)

cuda

54x

56x

[1]

Best mode of the torch implementation in each column; it was CUDA graphs (cuda_graphs=True) in all of them.

The rows marked cpu run on the CPU: the NumPy implementation of Curvelets and the NumPy backend of dtcwt. The OpenCL rows of dtcwt pass NumPy arrays in and out, so they include the copies between the host and the device. The TensorFlow row is the backend written for TensorFlow 1, run in graph mode with the outputs fetched to the host. Both agree with the NumPy backend. The OpenCL backend in 3D was not timed, because its output does not match the NumPy backend. Kymatio was not run at \(2048 \times 2048\), because building its filter bank took over 20 minutes on the CPU.

For small and medium inputs, the GPU transform is limited by the cost of launching kernels, which CUDA graphs mostly remove (see PyTorch backend). At \(512 \times 512\), the forward transform takes 0.16 ms, against 0.63 ms for the DWT, 2.9 ms for the TensorFlow backend of dtcwt, 6.5 ms for its OpenCL backend, 7.3 ms for the dual-tree wavelet transform of Pytorch Wavelets and 165 ms for the scattering transform of Kymatio. At \(2048 \times 2048\) (not in the table), the DWT of Pytorch Wavelets takes 0.73 ms, which is 3x faster than Curvelets (2.1 ms), and CUDA graphs no longer help (the eager transform takes 1.75 ms).

The transforms are not equivalent. They differ in redundancy (below), in their directions (three for the DWT, six for the dual-tree transforms, and as many as configured for the curvelets; see the atom comparison), and in invertibility: the scattering transform is not invertible, so only its forward transform is timed.

Redundancy comparison¶

The redundancy of a transform is the number of (real-valued) coefficients it returns per input sample. It goes from nearly one for the DWT to about four for the dual-tree wavelet transform and the curvelets in 2D. More coefficients cost memory and time, and buy more directions and stability to shifts, which is a large part of why the DWT is faster at large sizes.

Library

256x256

64x64x64

Curvelets

4.06x

7.73x

pytorch_wavelets DWT

1.06x

pytorch_wavelets DTCWT

4.00x

dtcwt

4.00x

8.00x

Kymatio Scattering2D

1.63x

References¶

[AAE+19]

Mathieu Andreux, Tomás Angles, Georgios Exarchakis, Roberto Leonarduzzi, Gaspar Rochette, Louis Thiry, John Zarka, Stéphane Mallat, Joakim Andén, Eugene Belilovsky, Joan Bruna, Vincent Lostanlen, Matthew J. Hirn, Edouard Oyallon, Sixin Zhang, Carmine Cella, and Michael Eickenberg. Kymatio: Scattering Transforms in Python. arXiv preprint arXiv:1812.11214, 2019. URL: https://arxiv.org/abs/1812.11214.

[BM13]

Joan Bruna and S. Mallat. Invariant scattering convolution networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1872–1886, August 2013. doi:10.1109/tpami.2012.230.

[CDDY06]

Emmanuel Candès, Laurent Demanet, David Donoho, and Lexing Ying. Fast Discrete Curvelet Transforms. Multiscale Modeling & Simulation, 5(3):861–899, jan 2006. doi:10.1137/05064182X.

[CM19]

Fergal Cotter and Sean McLaughlin. fbcotter/pytorch_wavelets: Zenodo Release. 2019. URL: https://zenodo.org/records/3471950, doi:10.5281/zenodo.3471950.

[Kin01]

Nick Kingsbury. Complex wavelets for shift invariant analysis and filtering of signals. Applied and Computational Harmonic Analysis, 10(3):234–253, May 2001. doi:10.1006/acha.2000.0343.

[NC10]

Truong T. Nguyen and Hervé Chauris. Uniform Discrete Curvelet Transform. IEEE Transactions on Signal Processing, 58(7):3618–3634, jul 2010. doi:10.1109/TSP.2010.2047666.

Next
NumPy backend
Previous
Curvelet FAQs
Copyright © 2026, Carlos Alberto da Costa Filho
Made with Sphinx and @pradyunsg's Furo
On this page
  • Related Projects
    • Curvelab
    • Curvelet.jl
    • Kymatio
    • dtcwt
    • Pytorch Wavelets
    • Summary
    • Performance comparison
    • Redundancy comparison
    • References