Skip to content

Releases: LazzyIzzi/MuMassCalculator

MuMassCalculatorJava8

05 Jan 18:13
Compare
Choose a tag to compare

A library for X-ray Absorbance Calculations
MuMassCalculator
Production release of a Java library for computing mass attenuation coefficients (see readme.md for details).
Adds parallel and fan-beam monochromatic and bremsstrahlung slice projectors for simulating CT scans.

See My GitHub Pages for descriptions and JavaDocs.

MuMassCalculator was developed with JavaSE-1.8 (64-bit) and tested in the Eclipse IDE and as an ImageJ PlugIn with ImageJ 1.53u
MuMassCalculator has no ImageJ dependencies.

Main Functions
See source comments for additional function information

Type Method Description
double getFormulaWeight​(java.lang.String theFormula) Returns the formula weight of the formula
double[] getMevArray​(java.lang.String theFormula) Returns the list of tabulated x-ray energies for the formula, useful in plotting spectra with absorption edges.
double[] getMevArray​(java.lang.String theFormula, double minMev, double maxMev) Returns the list of tabulated x-ray energies between minMev and maxMev for the formula, useful in plotting spectra with absorption edges.
double[] getMeVfromMuLin​(java.lang.String formula, double linearCoeff, double gmPerCC, java.lang.String muMassType) Returns the photon energy(s) that will produce the observed linear attenuation coefficient for the formula
double[] getMeVfromMuLinRatio​(java.lang.String formula1, double linearCoeff1, double density1, java.lang.String formula2, double linearCoeff2, double density2, java.lang.String muMassType) Returns the photon energy(s) that will produce the observed linear attenuation coefficient ratio of two formulas
double getMuMass​(java.lang.String theFormula, double theMeV, java.lang.String muMassType) Returns the mass attenuation coefficient for atoms and formulas
java.lang.String[] getMuMassTypes() Returns list of recognized cross section types
double muLinToMolPerM3​(double linearCoeff, double massCoeff, double formulaGmPerCC) Converts observed linear attenuation coefficient to concentration.
double spectrumKramers​(double tubeVoltageKV, double tubeCurrentMa, java.lang.String targetAtomSymbol, double meV) Estimates the output of a conventional x-ray source (reflection target) using the Kramers equation.
float[] imageToFanBeamSinogram(float[] image,int width,int height, FanParams fanSettings, boolean showProgress) Computes the monochromatic fan-beam sinogram of an input 2D image.
float[] imageToBremsstrahlungFanBeamSinogram(BremFanParams ctSet, float[] image, int width, int height) Computes the bremsstrahlung fan-beam sinogram of an input 2D image.
float[] imageToParallelSinogram(float[] image,int width,int height,int numAngles) Computes the monochromatic parallel-beam sinogram of an input 2D image.
float[] imageToBremsstrahlungParallelSinogram(BremParallelParams ctSet, float[] image, int width, int height) Computes the bremsstrahlung parallel-beam sinogram of an input 2D image.

MuMassCalculator Initial Release

29 May 15:11
1fb106c
Compare
Choose a tag to compare
Pre-release

MuMassCalculator
Initial release of a Java library for computing mass attenuation coefficients (see readme.md for details).

MuMassCalculator was developed with JavaSE-1.8 (64-bit) and tested in the Eclipse IDE and as an ImageJ PlugIn with ImageJ 1.53i
MuMassCalculator has no ImageJ dependencies.

Main Functions
See source comments for additional function information

Type Method Description
double getFormulaWeight​(java.lang.String theFormula) Returns the formula weight of the formula
double[] getMevArray​(java.lang.String theFormula) Returns the list of tabulated x-ray energies for the formula, useful in plotting spectra with absorption edges.
double[] getMevArray​(java.lang.String theFormula, double minMev, double maxMev) Returns the list of tabulated x-ray energies between minMev and maxMev for the formula, useful in plotting spectra with absorption edges.
double[] getMeVfromMuLin​(java.lang.String formula, double linearCoeff, double gmPerCC, java.lang.String muMassType) Returns the photon energy(s) that will produce the observed linear attenuation coefficient for the formula
double[] getMeVfromMuLinRatio​(java.lang.String formula1, double linearCoeff1, double density1, java.lang.String formula2, double linearCoeff2, double density2, java.lang.String muMassType) Returns the photon energy(s) that will produce the observed linear attenuation coefficient ratio of two formulas
double getMuMass​(java.lang.String theFormula, double theMeV, java.lang.String muMassType) Returns the mass attenuation coefficient for atoms and formulas
java.lang.String[] getMuMassTypes() Returns list of recognized cross section types
double muLinToMolPerM3​(double linearCoeff, double massCoeff, double formulaGmPerCC) Converts observed linear attenuation coefficient to concentration.
double spectrumKramers​(double tubeVoltageKV, double tubeCurrentMa, java.lang.String targetAtomSymbol, double meV) Estimates the output of a conventional x-ray source (reflection target) using the Kramers equation.