Dual Energy Decomposition
- xrayphysics.xrayPhysics.setDEDlookupTable(self, spectralResponse_L, spectralResponse_H, gammas, basisFunction_1, basisFunction_2, referenceEnergies=None, T_atten=0.0, N_atten=0)
Calculate a dual energy decomposition transfer function
- Parameters:
spectralResponse_L (numpy array) – low energy spectra model
spectralResponse_H (numpy array) – high energy spectra model
gammas (numpy array) – energies at which both the spectra models are defined
basisFunction_1 (numpy array) – first basis function
basisFunction_2 (numpy array) – second basis function
referenceEnergies (2-element numpy array) – the low and high energy (keV) energies of the synthesized monochromatic attenuation
T_atten (scalar) – the sampling rate of the polychromatic attenuation (if unspecified, uses default values)
N_atten (int) – the number of samples of the polychromatic attenuation (if unspecified, uses default values)
- Returns:
A 2D numpy array that maps the low and high polychromatic attenuation to the low and high (at referenceEnergies) monochromatic attenuation
- xrayphysics.xrayPhysics.PhotoelectricBasis(self, gammas)
Returns the photoelectric basis function
- xrayphysics.xrayPhysics.ComptonBasis(self, gammas)
Returns the Compton basis function
- xrayphysics.xrayPhysics.PCAbases(self, listOfMaterials, gammas)
Returns the two basis functions derived from the PCA of several material cross sections