PD Stefan Bosse
University of Siegen - Dept. Maschinenbau
University of Bremen - Dept. Mathematics and Computer Science
PD Stefan Bosse - AFEML - Module X:
Physical principles behind X-ray RAdiography and Computer Tomography
Metrics of Data
Noise and Distortions in Measuring Processes; Data Noise
Finally: Data-driven Feature Extraction in X-ray Images (ML). Models, Algorithms, Issues
PD Stefan Bosse - AFEML - Module X: Further Readings
PD Stefan Bosse - AFEML - Module X: X-ray Radiation
Berger, Yang, Maier, Medical Imaging Systems, 2018 Wavelengths and frequencies of the different groups of electromagnetic radiation. X-rays lie in the range of 0.01nm up to 10nm.
PD Stefan Bosse - AFEML - Module X: X-ray Radiation
In industry, X-rays are often the method of choice, for example to test for very small cracks in metal parts in the field of non-destructive testing.
The photon energy E is proportional to its frequency f and inverse proportional to its wavelength λ, that means the higher its frequency, the higher its energy:
Ep=hc0λp=fph
PD Stefan Bosse - AFEML - Module X: X-ray Generation
PD Stefan Bosse - AFEML - Module X: X-ray Generation
Berger, Yang, Maier, Medical Imaging Systems, 2018 Vacuum X-ray tube: The image on the left shows a schematic how electrons are accelerated from the cathode to the anode to generate X-ray photons. The image on the right shows a historic vacuum X-ray tube.
PD Stefan Bosse - AFEML - Module X: X-ray Generation
The production of X-rays is caused by two different processes:
The firs process: The electron interacts with an inner-shell electron of the target, characteristic X-radiation can be produced. This kind of X-rays results from a sufficiently strong interaction that ionizes the target atom by a total removal of the inner-shell electron.
PD Stefan Bosse - AFEML - Module X: X-ray Generation
Another type of interaction in which the electron can lose its kinetic energy delivers the second process of X-ray production:
PD Stefan Bosse - AFEML - Module X: X-ray Generation
Berger, Yang, Maier, Medical Imaging Systems, 2018
X-ray spectrum of a tungsten tube. The peaks correspond to the characteristic radiation; the continuous part of the spectrum represents the Bremsstrahlung. Maximum ≡ UHV keV
PD Stefan Bosse - AFEML - Module X: X-ray Material Interaction
Berger, Yang, Maier, Medical Imaging Systems, 2018 Principles of photon-matter interactions
PD Stefan Bosse - AFEML - Module X: X-ray Material Interaction
The X-ray photons either experience a complete absorption, elastic scattering or inelastic scattering
PD Stefan Bosse - AFEML - Module X: X-ray Material Interaction: Absorption
I=I0⋅e−µx
with x as the material thickness and μ as the absorption coefficient that is dependent from the photon energy!
Assuming ray optics (not photons), the absorption and attenuation along a path from the source to a detector is an accumulated attenuation of all materials (composites, e.g.,with different μi values) withing the path!
PD Stefan Bosse - AFEML - Module X: X-ray Material Interaction: Absorption
Hahn, Mary, DGZfP-Proceedings BB 84-CD , "A general approach to flaw simulation in..", CT-IP 2003 Absorption coefficient µ for aluminum against X-ray energy
PD Stefan Bosse - AFEML - Module X: X-ray Measuring Technologies
We get intensity images, but want to have a material density images (Scanogram or Tomogram)!
X-ray image processing and output
PD Stefan Bosse - AFEML - Module X: X-ray Measuring Technologies
Material density can only be "reconstructed" from X-ray intensity correctly if monochromatic (discrete energy) radiation is used.
X-ray image quality is influenced by multiple factors
PD Stefan Bosse - AFEML - Module X: X-ray Measuring Technologies
The Focal Spot Size Diameter (FSD) determines the maximal resolution of an X-ray imaging system!
https://umsystem.pressbooks.pub/digitalradiographicexposure/chapter/focal-spot-size/ The FSD depends on the filament size of the tube and the anode angle
PD Stefan Bosse - AFEML - Module X: X-ray Measuring Technologies
https://umsystem.pressbooks.pub/digitalradiographicexposure/chapter/focal-spot-size/ Larger focal spot sizes increase penumbral unsharpness (but depends on magnification, too)
PD Stefan Bosse - AFEML - Module X: X-ray Measuring Technologies
The Source-Object (SOD) and Source-Detector (SDD) distances determine the image magnification M and the unsharpness U!
M=SDDSODU=FSD(M−1)
Schiebold, Zerstörungsfreie Werkstoffprüfung – Durchstrahlungsprüfung, 2015
PD Stefan Bosse - AFEML - Module X: X-ray Radiography
Zeiss Basic principle of radiography. One (ray orthogonal) projection is captured providing an intensity image with intensities inverse proportional to the material density (and thickness)
PD Stefan Bosse - AFEML - Module X: X-ray Radiography
Effective maximal (theoretical) resolution R without unsharpness U is determined by the detectors pixel size pD and the magnification M
Rlimit=pDM
PD Stefan Bosse - AFEML - Module X: X-ray Tomography
Balasubramanian, Krishnamurthi, "X-ray scintillator lens-coupled with CMOS camera ..", PLOS Online, 2022 Basic principle of Tomography capturing multiple projections (rotation) from the same specimen under different angles. Finally, a depth slice image stack is reconstructed from the rotation image stack.
PD Stefan Bosse - AFEML - Module X: X-ray Detection
At the end of the day we need a digital projection image, which is baed on an analog signal, which is based on electrons, which is based on photons!
There are basically three classes of X-ray detectors:
PD Stefan Bosse - AFEML - Module X: X-ray Image Intensifier
Berger, Yang, Maier, Medical Imaging Systems, 2018 Schematic principle of an image intensifier detector. The X-rays are first converted to light, which is converted to electrons. An optic accelerates the electrons towards a fluorescent screen which converts the electrons to light, which eventually results in an image.
PD Stefan Bosse - AFEML - Module X: X-ray Image Intensifier
Berger, Yang, Maier, Medical Imaging Systems, 2018 Detailed principle of an image intensifier detector. The X-rays are first converted to light, which is converted to electrons. An optic focuses the electron beam to a fluorescent screen or film material which converts the electrons to light
PD Stefan Bosse - AFEML - Module X: X-ray Image Intensifier
The XRII itself and the following camera optics introduce geometrical distortions of the recorded images!
(Left) Vignetting artifact, i. e., luminescence drops at image periphery (Right) Distortion artifacts due to external fields, field inhomogeneities and optical systems
PD Stefan Bosse - AFEML - Module X: X-ray Image Intensifier
Example image (USAF 1951 test target, steel foil 100μm) from a cheap OV2940 CMOS camera with mini lens optics using a Thales XRII (8"), 55kV, Tungsten X-ray tube (FSD 0.8mm)
PD Stefan Bosse - AFEML - Module X: X-ray Image Intensifier
Advantages:
Disadvantages:
PD Stefan Bosse - AFEML - Module X: X-ray Images: Geometrical Errors
Besides common limitations that all imaging systems share, e. g., spatial resolution and contrast ratio, image intensifier systems are most known for vignetting and distortion artifacts. Vignetting,
Errors by:
PD Stefan Bosse - AFEML - Module X: X-ray Images: Geometrical Errors
http://m43photo.blogspot.com/2012/05/geometric-distortion-correction.html Barrel vs. pincushion distortions
PD Stefan Bosse - AFEML - Module X: X-ray Images: Geometrical Errors
Corrections by various algorithms and methods
Commonly using a reference set of points (Ground truth points) and affine or non-linear polynomial transformation
Fisheye Distortion Correction
PD Stefan Bosse - AFEML - Module X: Affine Transformations
https://neutrium.net/mathematics/basics-of-affine-transformation/ Affine transformations are typically applied through the use of a transformation matrix M and its inverse M-1
PD Stefan Bosse - AFEML - Module X: Affine Transformations
For example to apply an affine transformation to a three dimensional point, P to transform it to point Q we have the following equation:
Q=MPP=M−1Q
M=M2M1M−1=M−12M−11
PD Stefan Bosse - AFEML - Module X: Affine Transformations
Mtrans=⎛⎜ ⎜ ⎜⎝100mx010my001mz0001⎞⎟ ⎟ ⎟⎠Mscale=⎛⎜ ⎜ ⎜⎝sx0000sy0000sz00001⎞⎟ ⎟ ⎟⎠
PD Stefan Bosse - AFEML - Module X: Camera Calibration
https://euratom-software.github.io/calcam/html/intro_theory.html
The RLD model takes in to account radial (barrel or pincushion) distortion, and tangential (wedge-prism like, usually due to de-centring of optical components) distortions.
The fisheye distortion model only includes radial fisheye distortion.
Problem: Point coordinate transformations can leave holes (uncovered target pixels). Interpolation is required!
PD Stefan Bosse - AFEML - Module X: Camera Calibration
(xdyd)=[1+k1r2+k2r4+k3r6](xnyn)+(2p1xnyn+p2(r2+2x2n)p1(r2+2y2)+2p2xnyn)
where r = √(xn2+yn2), and kn and pn are radial and tangential distortion coefficients, respectively. The polynomial r2 in in the first term describes the radial distortion while the second term represents tangential distortion.
PD Stefan Bosse - AFEML - Module X: Camera Calibration
(xdyd)=θr[1+k1θ2+k2θ4+k3θ6+k4θ8](xnyn)
where r = √(xn2+yn2), and θ=tan-1(r).
PD Stefan Bosse - AFEML - Module X: X-ray Images: Geometrical Errors
Geometric corrections using polynomial functions Abdul Basith, 2011, DOI: 10.13140/RG.2.2.35707.00806
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Flat Panel
Wotirz, Digital X-ray Sensors, Circuir Cellar, 2012 Principle construction of a flat panel X-ray detector with a scintillator material, a light guide (fibres), and a CMOS/CCD image sensor
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Flat Panel
Advantages:
Disadvantages:
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
Self-made low-cost X-ray screen imaging detector (Bosse, 2023)
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
Self-made low-cost X-ray screen imaging detector (Bosse, 2023)
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
Scintillator Screen: OrthoFine 100 foil (for medical radiography using films), green light emission
CMOS image sensor: Sony IMX290 1920x1080 pixel (monochrome), exposure time 100-5000 ms
Resolution limit: 3x3μm × Mopt=13 ⇒ 40μm
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
Some recorded samples, contrast, and spectral light emission of scintillator versa camera sensitivity
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
Advantages:
Disadvantages:
PD Stefan Bosse - AFEML - Module X: X-ray Detector: Optical Screen Imaging
The optical imaging system is sensitive to "popcorn" noise induced by incident radiation (even a mirror do not eliminate such kind of noise due to scattering). Algorithmic noise cancellation is required by using multiple images.
PD Stefan Bosse - AFEML - Module X: X-ray Noise
There are two types of undesirable effects in imaging systems: probabilistic noise and artifacts (+ distortions).
However, the difference to noise is that when a scan is repeated using the exact same object and scan parameters, artifacts are reproduced exactly whereas noise effects will change based on a probabilistic scheme (and can be reduced/removed).
PD Stefan Bosse - AFEML - Module X: X-ray Noise
Berger, Yang, Maier, Medical Imaging Systems, 2018 Overview of noise related processes in X-ray imaging
PD Stefan Bosse - AFEML - Module X: X-ray Noise
A common quality measure for imaging is the signal-to-noise ratio (SNR).
In X-ray imaging it makes sense to use the definition based on statistics, i. e.,
SNR(x)=¯¯¯xσ=E(x)√E((x−¯¯¯x)2)
For random variables x following a normal distribution (Gaussian), x is the mean value and σ represents the standard deviation.
PD Stefan Bosse - AFEML - Module X: X-ray Noise: Popcorn Cancellation
σ0 := Σ[1]∀ (x,y) ∈ coord(σ0) do if σ0[x,y] > γ then ∀ σ ∈ { Σ / σ0 } do if σ[x,y] < γ then σ0[x,y] := σ[x,y] break endif done endif ∀ σ ∈ { Σ / σ0 } do if σ[x,y] < γ then σ0[x,y] := σ0[x,y] + σ[x,y] else σ0[x,y] := σ0[x,y] + σ0[x,y] endif done σ0[x,y] := σ0[x,y] / |Σ|done
Popcorn noise cancellation using multiple images (γ is a threshold, Σ a set of images, σ a pixel value)