Skip to content

Ridgelet filtering

Fact Value
Also called Ridgelet denoising, Ridgelet transform
Status Implemented and tested
Family Wavelet and multiscale filters
Engine Science engine
Type Nonlinear, transform, ridgelet coefficient shrinkage
Output Image
Operator shown as transform (approximation)
Support radius global
Code engine/src/pixelnexus_engine/filters/radon.py, ridgelet
Operator code engine/src/pixelnexus_engine/filters/radon.py, ridgelet_representation
Packages scikit-image, PyWavelets
Channels Brightness only, RGB

Overview

Ridgelet filtering removes noise from images made of straight lines and edges. A ridgelet is a wave that is constant along lines in one direction, so a long straight line matches a few ridgelets very well. The filter gets the ridgelet coefficients from the Radon transform. Each straight line becomes a single point in the sinogram, and a 1-D wavelet transform along each projection describes those points compactly. The small coefficients are set to zero, and the image is rebuilt by filtered back projection. The sampled Radon transform and its back projection are not exact inverses, so this filter is an approximation. It runs in the PixelNexus engine on your computer.

Four panels: three thin bright lines crossing on a dark ground with strong grainy noise; the Radon round trip alone, with somewhat less grain; ridgelet filtering, with clean lines and faint streaks along their directions; and wavelet thresholding, with clean lines and a little blotchy grain. Four panels: three thin bright lines crossing on a dark ground with strong grainy noise; the Radon round trip alone, with somewhat less grain; ridgelet filtering, with clean lines and faint streaks along their directions; and wavelet thresholding, with clean lines and a little blotchy grain.
Three lines with Gaussian noise of sigma 20, the Radon round trip alone, ridgelet filtering with the defaults, and wavelet thresholding.

How it works

  1. Compute the sinogram of each channel.
  2. Apply a 1-D wavelet transform along each projection.
  3. Estimate the noise level of each projection from its finest details.
  4. Set the detail coefficients below k times that level to zero.
  5. Invert the 1-D transforms and rebuild the channel by filtered back projection.

Mathematical foundation

\[ c_i = \operatorname{DWT}_{1D}\big(p_{\theta_i}\big), \quad T_i = k\, \hat{\sigma}_i, \quad \hat{\sigma}_i = \frac{\operatorname{median}(|d_{1,i}|)}{0.6745}, \qquad \hat{I} = \operatorname{FBP}\Big(\operatorname{IDWT}_{1D}\big(\eta_{T_i}(c_i)\big)\Big), \qquad n = 180,\ J = 4,\ k = 3 \]

The formula shows the default parameter values.

where

  • \(p_{\theta_i}\): The projection at angle theta_i
  • \(c_i\): The ridgelet coefficients of projection i, its 1-D wavelet coefficients
  • \(d_{1,i}\): The finest details of projection i
  • \(k\): The threshold factor
  • \(\eta_T\): The shrink rule with threshold T
  • \(J\): The number of levels of the 1-D transform

A ridgelet is constant along lines in one direction and a wavelet across them. Candes and Donoho showed that the ridgelet transform is a 1-D wavelet transform applied along the projections of the Radon transform. A straight line in the image is a single point in the sinogram, so it gives a few large ridgelet coefficients, while noise spreads over many small ones. Here p_theta_i are the projections of the radon-filter entry, c_i their 1-D wavelet coefficients and d_1,i the finest details of projection i. The noise level of each projection is estimated from d_1,i, and the threshold T_i is k times that level. eta is the shrink rule of wavelet thresholding. FBP is filtered back projection with the ramp filter. The sampled Radon transform and FBP are not exact inverses, so this is an approximation. Do and Vetterli built an exactly invertible finite ridgelet transform, which needs a prime image size.

Wavelets are good at points but poor at lines. A straight edge crosses many wavelet positions, and each needs its own large coefficient. Candes and Donoho introduced ridgelets for this case. A ridgelet varies like a wavelet across a direction and is constant along it. They showed that ridgelet analysis is wavelet analysis in the Radon domain: the Radon transform turns a line into a point, and a 1-D wavelet transform handles points well. Curved edges are not lines, so ridgelets alone do not help there. That led Candes and Donoho to curvelets, which apply ridgelets to small blocks of the image, as in the work of Starck, Candes and Donoho.

Kernel or operator

The Inspector asks the engine for the stages with the current settings. They are the Radon transform, the 1-D wavelet transform, the threshold, the shrink rule and the rebuild by filtered back projection. The Inspector marks them as an approximation.

Algorithm

  1. Compute the sinogram of the channel with n angles.
  2. Apply a 1-D wavelet transform with J levels along each projection.
  3. Estimate the noise level of each projection from its finest details.
  4. Shrink all detail coefficients of each projection with k times its noise level.
  5. Invert the 1-D transforms and rebuild the channel by filtered back projection.

Parameters

Parameter Default Values Meaning
Angles angles 180 8 to 720 How many projection angles, spread evenly over 180 degrees.
Wavelet wavelet Daubechies 4 (db4) Haar, Daubechies 2 (db2), Daubechies 4 (db4), Daubechies 8 (db8), Symlet 4 (sym4), Symlet 8 (sym8) The 1-D orthogonal wavelet applied along each projection. Its filter taps come from PyWavelets.
Levels levels 4 1 to 8 How many levels the 1-D transform has. It is capped at the deepest level the projection length allows.
Threshold factor factor 3 0 to 8 The threshold is this factor times the noise level of each projection, estimated from its finest details. 0 keeps every coefficient.
Shrink rule mode Hard Hard, Soft Hard thresholding sets small coefficients to 0 and keeps the others. Soft thresholding also moves the others toward 0 by T.
Channels channelScope Brightness only RGB, Brightness only Which part of the color image the filter changes.

Implementation

ridgelet in engine/src/pixelnexus_engine/filters/radon.py runs ridgelet_plane on each channel the scope names. It uses the sinogram and back_project functions of the Radon filter, and pywt.wavedec and pywt.waverec along the detector axis for all projections at once. projection_noise estimates the noise of each projection. The shrink rules come from wavelet thresholding. There is no live preview. The result arrives when you click Apply.

Worked example

Result PSNR in dB
Noisy 22.18
Radon round trip, factor 0 25.44
Ridgelet, factor 2 26.31
Ridgelet, factor 3 26.68
Ridgelet, factor 4 26.72
Wavelet thresholding, BayesShrink 27.12

Three straight lines, 3 pixels wide, at 200 on a background of 60, 160 by 160 pixels, with Gaussian noise of sigma 20 from NumPy's default_rng with seed 7. The ridgelet rows use 180 angles, db4, 4 levels and hard thresholding. The Radon round trip alone, without noise, gives the clean lines back at only 29.32 dB, since the sampled transform blurs thin lines. That caps what any threshold can reach. Here ridgelet filtering beats the round trip but not wavelet thresholding.

Complexity

  • Time: \(O(N n)\)
  • Memory: \(O(N + n sqrt(N))\)

N is the number of pixels and n the number of angles. The Radon transform and the back projection dominate. The 1-D transforms cost O(n sqrt(N) L) for L filter taps.

Artifacts and limitations

Limitations

  • Approximate. The Radon round trip alone loses fine detail. In the worked example it caps thin lines at about 29 dB even without noise.
  • Curved edges spread over many angles, so they gain nothing.
  • The noise in the sinogram is not white, so the noise level of a projection is only an average.
  • Slow for large images.

Artifacts

  • Faint streaks along the angles of strong lines.
  • The blur of the Radon round trip on fine detail.

Tests

With a threshold factor of 0, the result must equal the Radon round trip, the filtered back projection of the sinogram, to within 10^-9. With the default factor, the filter is checked against an independent pipeline written in the test: radon of scikit-image, a 1-D PyWavelets transform and pywt.threshold for each projection, and iradon. The engine API tests run a job and check the stages of the representation.

References

  • Candes, E. J., and Donoho, D. L. Ridgelets. A key to higher-dimensional intermittency? Philosophical Transactions of the Royal Society of London A 357(1760), 2495 to 2509, 1999. DOI 10.1098/rsta.1999.0444.
  • Do, M. N., and Vetterli, M. The finite ridgelet transform for image representation. IEEE Transactions on Image Processing 12(1), 16 to 28, 2003. DOI 10.1109/TIP.2002.806252.
  • Starck, J.-L., Candes, E. J., and Donoho, D. L. The curvelet transform for image denoising. IEEE Transactions on Image Processing 11(6), 670 to 684, 2002. DOI 10.1109/TIP.2002.1014998.
  • Kak, A. C., and Slaney, M. Principles of Computerized Tomographic Imaging. SIAM, 2001. Reprint of the IEEE Press edition of 1988. DOI 10.1137/1.9780898719277.