Discrete shearlet transform on GPU with applications in anomaly detection and denoising

Xavier Gibert, Vishal M. Patel, Demetrio Labate, Rama ChellappaEURASIP J. Adv. Signal Process 2014 · DOI

Introduction

While wavelets revolutionized signal processing, they often struggle with the "geometry" of multidimensional data. Because wavelets are isotropic (square-ish), they require many coefficients to represent edges or curves efficiently. Shearlets were developed to overcome this limitation; they are highly anisotropic (needle-like) and can capture directional information with optimal sparsity.

However, the "Shearlet Advantage" historically came with a massive computational tax. A standard CPU-based implementation could take minutes to process a single image, rendering it impractical for real-time video or high-throughput industrial inspection. This paper presents a high-performance GPU implementation of the 2D and 3D Discrete Shearlet Transform (DST), achieving speedups of up to 551x and transforming shearlets into a viable solution for real-world applications.

The Geometry of Shearlets

Unlike curvelets, which rely on rotations, shearlets utilize shear matrices. This distinction is critical for digital implementation because shears preserve the rectangular integer lattice of pixels, allowing for more faithful digital transforms.

Frequency tiling of the shearlet transform (a) and the support of a single shearlet in the frequency domain (b).

As shown in the figure above, the shearlet transform partitions the frequency plane into trapezoidal regions. This tiling allows the transform to capture features at different scales and orientations with high precision, which is the key to its superior performance in edge-heavy tasks like crack detection.

GPU-Accelerated Implementation

The authors implemented both 2D and 3D transforms using a combination of CUDA C++ and GPU-accelerated MATLAB. The core algorithm follows a two-stage approach:

  1. Laplacian Pyramid: Decomposes the image into different scales (low-pass and high-pass components).
  2. Directional Filtering: Applies a bank of shearlet filters to the high-pass components to capture specific orientations.

To achieve maximum performance, the implementation leverages several technical innovations:

  • Kernel Optimization: Utilizing the cuFFT library and hand-tuned "à trous" convolution kernels that preload data into shared memory to minimize global memory access.
  • Memory Management: For 3D volumes (video), the implementation computes convolutions sequentially to prevent GPU memory overflow while maintaining high throughput.

Applications and Performance

The implementation was evaluated on standard benchmarks (the "Barbara" image and "Waterfall" video) and industrial data (concrete railroad crossties).

Key Results

  • 2D Denoising: A 512x512 image processing time dropped from 8.8 seconds on a 4-core CPU to just 38.6 milliseconds on a GTX 690 GPU—a 233x speedup.
  • 3D Video Denoising: Processing a 192³ video volume was reduced from ~5 minutes on a CPU to 3 seconds on a GPU, a 551x speedup.
  • Crack Detection: Using Morphological Component Analysis (MCA), the authors treated crack detection as an image separation problem. By modeling cracks as sparse in the shearlet domain and background texture as sparse in the wavelet domain, they could effectively "peel" cracks away from complex backgrounds. This approach significantly outperformed standard Canny edge detection in low-contrast industrial environments.

Conclusion and Future Work

By leveraging the parallel nature of GPGPU architecture, this work moves shearlets from a theoretical tool to a practical engine for high-speed image analysis. While currently optimized for NVIDIA hardware, future work includes porting to OpenCL for broader hardware support and further optimizing memory footprints for high-resolution 3D video.

Summary updated

BibTeX
@article{gibert2014discrete,
  author = {Xavier Gibert and Vishal M. Patel and Demetrio Labate and Rama Chellappa},
  title = {{Discrete shearlet transform on GPU with applications in anomaly detection and denoising}},
  journal = {EURASIP J. Adv. Signal Process.},
  year = {2014},
  doi = {10.1186/1687-6180-2014-64},
}
Figure