Home

Linearization Examples

Summary

On this page we simulate correction of beam hardening artifacts using CT Recon's second order slider and Linearization Fitter's 1-6th order fit.

Both the CT_Recon slider and the Linearization Fitter give improved estimates of linear attenuation when the X-ray spectrum is made more monochromatic by increasing the filtration. The Scanner Setup plugin can help optimize the imaging conditions. In real CT systems it may be possible to reduce the attenuation error below the S/N of the measurement.

It is important to note that the validity of a linearization correction can vary significantly depending on the specimen spatial and compositional heterogeneity. You can use your images or the ImageJ drawing tools and the Material Tagger plugin to construct test cases to explore the limitations of linearization. For a more detailed discussion of the correction of beam hardening artifacts by linearization with references to other methods see for example Van Gompel et.al.


Example-1: Linearization using the CT_Recon Slider of a two material tubular specimen.
Example-2: Linearization using the Fitter and Apply Plugins on the same specimen as example-1.
Example-3: Linearization using the CT_Recon Slider on a three material complex specimen
Example-4: Linearization using the Fitter and Apply Plugins on the same specimen as example-3.

Example-1: Linearization using the CT_Recon Slider of a two material tubular specimen.

Simulation: Stainless steel tube 0.46cm OD x 0.38cm ID plugged with quartz


CT Recon Using Beam Hardening Slider
Dialog settings(left), Sinogram(center), Reconstructions(right): Slider=0(top) and Slider=0.66(bottom)
The plot below shows how the reconstructed tube profile along the red line changes with slider position. The best profile was obtaind at a slider position = 0.66.
Profiles along the red line for several slider values
In this example we know the composition and density of the materials. We can obtain effective energies from the quartz and tube linear attenuations using the X-ray MuLin Lookup and X-ray Ratio Lookup plugins. The first row in the table below shows that the energies are different but are brought into agreement in the second row by scaling the μlin values by a constant.
Effective energy before and after image scaling
Scale Factor Tube μlin Quartz μlin Tube Eff keV Qz Eff keV Qz:Tube μlin Ratio Eff keV
1.000 8.331 0.805 59.6 51.9 67.3
0.746 6.216 0.600 67.4 67.4 67.4

This scaling method is probably unique for two material systems. Example-3 shows that scaling will not always produce a clear result but can be used to evaluate and minimize attenuation error.

Back to top

Example-2: Linearization using Fitter and Apply Plugins on a Simple Sample

We repeat Example-1 using a model-based second order beam hardening correction. See the Linearization page for use details

The images look the same as Example-1 and are not shown again here. The animation below illustrates how the fit changes with X-ray energy. The higher attenuations are dominated by the tube and the lower attenuations are a mix of tube and quartz. Both are well centered around the fit line at 67keV.
Linearization Fitter results at three X-ray energies.
The best second order fit is obtained at 67keV
Fit parameters at 67keV
Effective energy using Linearization fitter at 67keV
Tube μlin Quartz μlin Tube Eff keV Qz Eff keV Qz:Tube μlin Ratio Eff keV
6.255 0.587 67.14 68.94 65.35

In this example we get an effective energy that is consistent with the Example-1 scaled result. We note that the R2 of the fit is not very sensitive the effective energy estimate. A higher order fit at the high attenuation data may give a slightly better result. In general, lower order fits are less sensitive to noise.

Back to top

Example-3: Filtration and Linearization of a Structured Sample

How accurate are reconstructed attenuations after linearization?

The attenuations are correct in CT slices obtained using monochromatic X-rays. Polychromatic X-rays produce beam hardened images that can be arbitrarily linearized to reduce the cupping artifact but the attenuations will most likely be incorrect. As the filtering of a conventional X-ray source increases, the beam becomes less polychromatic, attenuation errors decrease but the scan times increase.

The composition of CT specimens is often unknown. In that case, the cupping artifact can be suppressed but we are stuck with the incorrect attenuations. When the composition of the materials in the specimen is known, then the reconstructed image can be adjusted to minimize the errors. If the specimens are consistent as in QC/QA, then the filtering and linearization can be optimized a to give images of known attenuation accuracy in the shortest amount of time.

The simulated example image was created using ImageJ drawing tools and the Material Tagger plugin. It is relatively large and contains strong x-ray absorbers.
Simulated slice of Aluminum Casting with
round iron(light gray) and rectangular red-brass(white) pins

We use the Scanner Setup plugin and the strongly absorbing red-brass pins to select scanning conditions that should produce different levels of beam hardening.

Sample Path(cm) Src KV Filter Filter(cm) Detector Detector(cm) Tau BH% Eff(keV)
Red Brass 0.8 245 Copper 0.5 BaF2 0.1 3.07 16.4 160
Red Brass 0.8 245 Tin 0.5 BaF2 0.1 2.5 7.8 180
Scanner Setup Results
In this example,
  1. a higher source accelerating potential was used to produce x-ray energies that penetrate the brass.
  2. a thick, strongly absorbing detector was needed to improve high energy response.
  3. the first setup used a copper filter and produced ~16% beam hardening.
  4. the second setup used tin filter and produced ~8% beam hardening.
  5. sinograms for each setup were produced using the TagImage To Parallem Brems Sinogram plugin.
  6. The sinograms were reconstructed using the CT Recon Parallel Beam plugin.

How close is the attenuation to the model at each setup when reconstructed with and without the CT-Recon plugin slider?

First, a few sample calculations. With the CT_Recon slider set to 0, we use NIST_XCOM.xlam and Solver Excel Addins to identify the X-ray energy that minimizes the RMS %Err without any beam hardening correction and obtain 147keV and 9.6% error.
Excel solving for best energy fit
Example 1 showed that scaling the image can improve the fit. We again use the Solver to identify the X-ray energy and scale factor that minimize the RMS %Err without any beam hardening correction(slider=0) and obtain a small improvement.
Excel solving for best scaling and energy fit
The table below summarizes the best keV and scale fits for the both setups with and without the slider.
Excel solving for best scaling and energy fit
We see in the copper filtered image that using the slider to reduce the cupping artifact still results in an 5% RMS error in attenuation coefficient. The reduction in beam hardening using the tin filter is sufficient to reduce the error to about 1.3%, which is below the S/N in most reconstructions. We could probably reduce the thickness of the tin filter to reduce the scan time and use the slider to still obtain a good result. The best fit X-ray energies are consistent with the detected X-ray intensity distributions shown below.
Detected X-ray Intensity Distributions

Sample reconstructions for the imaging conditions in this example

Polychromatic Reconstructions:
A-Cu Filter Slider 0, B-Cu Filter Slider 0.33, C-Sn Filter Slider 0, D-Sn Filter Slider 0.20, E-monochromatic 150keV
The reconstructed gray scale is adjusted to be uniform between images and to highlight residual artifacts1.

Image D is of the same quality as the monochromatic image E and has attenuations that are within 1.3% of for the Solver effective energy.


1. The boundaries of the rectangular brass pins are perfectly aligned with the 90degree projection and are not band-limited giving rise to Gibbs noise in the monochromatic reconstruction.
Back to top

Example-4: Using the Linearization Fitter Plugin

This example uses the same simulated structure and projection conditions as example-3. The sinograms were reconstructed using the CT Recon Parallel Beam plugin with the slider set 0.

The ImageJ macro below creates a stack of fitter plots to demonstrate how the quality of the fit changes with effective X-ray energy.

Copper Filtered Results

Fitter Results for Copper Filter from 100 to 250keV
The minimum R2 fit occurs at 150 keV

Note the two points at the top right of the plot
corresponding to the attenuation overlap of two brass and one iron pin.
Linearization Fitter Results for Cu Filtered data
The minimum R2 fit occurs at 150 keV
Cu Filtered Reconstructions at same gray scale
Scale was selected to highlight artifacts.
The third order fit better approximates the attenuation overlap of the brass pins.

The table below shows that although the image quality is improved by applying the fit, the attenuation error is about 8%. The detected X-ray spectrum using the copper filter is too polychromatic to obtain accurate attenuations.

Correction Aluminum Iron Brass RMS Err %
2nd Order 2.93 -7.72 -0.83 8.30
3rd Order 2.49 -7.31 -0.10 7.72
Copper Filter Attenuation error

Tin Filtered Results

Fitter Results for Tin Filter from 100 to 250keV
The minimum R2 fit occurs at 177 keV
3rd Order Fit Results for Tin Filter at 177keV
Note the two points at the top right of the plot
corresponding to the attenuation overlap of two brass and one iron pin.
Sn Filtered Reconstructions at same gray scale
Scale was selected to highlight artifacts.
The third order fit better approximates the attenuation overlap of the brass pins.

The table below shows that the image quality is improved by applying a higher order fit and that the attenuation error is about 1.5%, below the ~5% S/N of routine CT scans. The detected X-ray spectrum using the tin filter is sufficiently monchromatic to obtain accurate attenuations and reduce streak artifacts.

Correction Aluminum Iron Brass RMS Err %
2nd Order 0.72 -1.24 -.06 1.43
3rd Order 0.74 -0.98 0.29 1.27
Tin Filter Attenuation error
Back to top

Home