Camera Counts Estimation Details
This page explains the physics, geometry, and mathematical formulas behind the camera counts estimation tool.
1. Energy Deposition in the Crystal
First, we calculate the energy deposited in the scintillator crystal by the ionizing radiation. This depends on the mass stopping power (or energy deposition rate) of the material, its physical density, and the path length (thickness) through the crystal:
\[E_{\text{deposited, MeV}} = \left(\frac{dE}{dx}\right)_{\text{mass}} \cdot \rho \cdot t\]
where:
- \(\left(\frac{dE}{dx}\right)_{\text{mass}}\) is the mass stopping power (in \(\text{MeV}\cdot\text{cm}^2/\text{g}\)),
- \(\rho\) is the crystal density (in \(\text{g/cm}^3\)),
- \(t\) is the crystal thickness (in \(\text{cm}\)).
We convert the deposited energy from mega-electronvolts (\(\text{MeV}\)) to kilo-electronvolts (\(\text{keV}\)):
\[E_{\text{deposited, keV}} = E_{\text{deposited, MeV}} \cdot 1000\]
2. Scintillation Photon Generation
The total number of optical scintillation photons generated inside the crystal volume is determined by the light yield of the crystal material:
\[N_{\text{photons}} = E_{\text{deposited, keV}} \cdot Y_{\text{light}}\]
where \(Y_{\text{light}}\) is the crystal light yield (in \(\text{photons/keV}\)).
3. Optical Collection Efficiency (\(\eta\))
Only a fraction of the generated scintillation photons will be collected by the lens and reach the camera sensor. This geometric and optical collection efficiency is heavily influenced by the lens aperture (\(f\)-number), focal length, and magnification.
First, we calculate the lens magnification \(m\) from the focal length \(f\) and the object distance \(d_o\) (distance from the crystal to the lens principal plane):
\[m = \frac{f}{d_o - f}\]
The inverse magnification factor is defined as:
\[\text{Term}_{\text{mag}} = \left(1 + \frac{1}{m}\right)^2\]
Depending on the crystal surface preparation and wrapping, the light emission can be modeled in two ways:
Isotropic Emission (unpolished/unwrapped crystal)
For rough or unwrapped pixels, the light is emitted uniformly into \(4\pi\) steradians. The collection efficiency is given by:
\[\eta_{\text{isotropic}} = \frac{1}{16 \cdot (f/\#)^2 \cdot \text{Term}_{\text{mag}}}\]
Lambertian Emission (polished/wrapped light-guide)
For polished or wrapped crystal interfaces with a light-guide, the emission profile is directional (Lambertian, into a \(2\pi\) hemisphere facing the lens). This increases the collection efficiency by a factor of 4:
\[\eta_{\text{lambertian}} = \frac{1}{4 \cdot (f/\#)^2 \cdot \text{Term}_{\text{mag}}}\]
where \(f/\#\) is the lens \(f\)-number (aperture setting).
4. Sensor Photoelectron Conversion
The collected photons hitting the sensor are converted into photoelectrons based on the camera's Quantum Efficiency (\(QE\)):
\[N_{e^-} = N_{\text{photons}} \cdot \eta \cdot QE\]
where \(QE\) is the sensor's Quantum Efficiency (expressed as a fraction between 0 and 1) at the scintillation light wavelength.
5. Analog-to-Digital Conversion (ADC Counts)
The accumulated charge (photoelectrons) in each pixel is digitized into ADC counts. The conversion gain (electrons per ADC step) is defined by the Full Well Capacity (\(\text{FWC}\)) and the bit depth of the Analog-to-Digital Converter (\(B\)):
\[\text{Gain}_{\text{ADC}} = \frac{\text{FWC}}{2^B - 1}\]
Note: Many camera datasheets report a saturation capacity (measured per the EMVA 1288 standard) which may differ from the nominal full well capacity. When available, use the EMVA 1288 saturation capacity as the FWC value for a more accurate conversion gain. Similarly, use the actual ADC bit depth from the datasheet (e.g. 12-bit), not the output bit depth (which may be 16-bit due to padding).
The recorded digital ADC counts is calculated by dividing the total generated photoelectrons by the conversion gain. Because physical digital counts are discrete and cannot be fractional, the value is rounded down to the nearest integer:
\[\text{ADC Counts} = \left\lfloor \frac{N_{e^-}}{\text{Gain}_{\text{ADC}}} \right\rfloor\]
6. Dynamic Range and Signal-to-Noise Ratio
The dynamic range of a camera sensor quantifies the ratio between the maximum signal it can capture (saturation capacity) and the minimum signal it can distinguish from noise (read noise). It is defined as:
\[\text{DR}_{\text{dB}} = 20 \cdot \log_{10}\left(\frac{\text{Saturation Capacity}}{\sigma_{\text{read}}}\right)\]
where:
- Saturation Capacity is the maximum number of electrons a pixel can hold before saturating (in \(\text{e}^-\)),
- \(\sigma_{\text{read}}\) is the temporal dark noise or read noise (in \(\text{e}^-\\)).
Given the dynamic range and read noise, we can derive the implied saturation capacity:
\[\text{Saturation Capacity} = \sigma_{\text{read}} \cdot 10^{\text{DR}_{\text{dB}} / 20}\]
This serves as a useful cross-check: if the implied saturation capacity differs significantly from the FWC entered by the user, the input parameters may be inconsistent.
Signal-to-Noise Ratio (SNR)
When read noise is provided, the tool computes a simplified Signal-to-Noise Ratio for the detected signal. This indicates whether the signal is detectable above the camera's noise floor:
\[\text{SNR} = \frac{N_{e^-}}{\sigma_{\text{read}}}\]
Note: This is a simplified SNR that only considers read noise. A full noise model would also include photon shot noise (\(\sqrt{N_{e^-}}\)) and dark current noise, but for the low-light signals typical of scintillator imaging, read noise is often the dominant noise source.
Understanding Datasheet "Signal-to-Noise Ratio (typical/minimal)"
Camera datasheets (e.g., from manufacturers like Basler or Allied Vision) often list a typical "Signal-to-Noise Ratio" (such as 40 dB) alongside the "Dynamic Range" (such as 73 dB). These two metrics describe different limits of the camera:
- Dynamic Range (DR) characterizes performance at the dark limit (the ratio between saturation and the noise floor).
- Signal-to-Noise Ratio (SNR) in a datasheet characterizes performance at the bright limit (the maximum possible SNR achieved at saturation, $SNR_{\text{max}}$).
The full SNR equation for a given signal \(S\) (in electrons) is:
\[\text{SNR} = \frac{S}{\sqrt{\sigma_{\text{read}}^2 + S}}\]
where the term \(S\) under the square root represents photon shot noise (which follows Poisson statistics, so its variance equals the signal itself).
At the absolute limit of the sensor's capacity (when the signal equals the Saturation Capacity, \(C_{\text{sat}}\)), the shot noise dominates completely because \(C_{\text{sat}} \gg \sigma_{\text{read}}^2\). Therefore, the read noise term becomes negligible, and the maximum SNR simplifies to:
\[\text{SNR}_{\text{max}} \approx \frac{C_{\text{sat}}}{\sqrt{C_{\text{sat}}}} = \sqrt{C_{\text{sat}}}\]
Expressed in decibels:
\[\text{SNR}_{\text{max, dB}} = 20 \cdot \log_{10}(\sqrt{C_{\text{sat}}}) = 10 \cdot \log_{10}(C_{\text{sat}})\]
Example: For a sensor with a Saturation Capacity of \(10.4\text{ ke}^- = 10,400\text{ e}^-\) and a Dark Noise of \(2.3\text{ e}^-\):
- Dynamic Range: \(20 \cdot \log_{10}(10,400 / 2.3) \approx \mathbf{73.1\text{ dB}}\) (performance in darkness).
- Typical SNR: \(10 \cdot \log_{10}(10,400) \approx \mathbf{40.2\text{ dB}}\) (performance at saturation).
