rockverse.dect.DECTGroup#
- class rockverse.dect.DECTGroup(zgroup)[source]#
Manages Dual Energy Computed Tomography (DECT) processing. This class builds upon Zarr groups and is adapted for MPI (Message Passing Interface) processing, enabling parallel computation across multiple CPUs or GPUs.
For a detailed workflow, refer to the original research paper.
Note
This class should not be directly instantiated. Use the
create_group()instead.- Parameters:
zgroup (zarr group) – An existing Zarr group.
Attributes#
Voxel images#
The low energy computed tomography voxel image. |
|
The high energy computed tomography voxel image. |
|
The mask voxel image. |
|
The segmentation voxel image. |
|
Voxel image with the minimum electron density per voxel. |
|
Voxel image with the the first quartile (25th percentile) for the electron density values per voxel from the Monte Carlo inversion. |
|
Voxel image with the the median (50th percentile) values for the electron density per voxel from the Monte Carlo inversion. |
|
Voxel image with the the third quartile (75th percentile) for the electron density values per voxel from the Monte Carlo inversion. |
|
Voxel image with the maximum electron density per voxel. |
|
Voxel image with the minimum effective atomic number per voxel. |
|
Voxel image with the the first quartile (25th percentile) for the effective atomic number values per voxel from the Monte Carlo inversion. |
|
Voxel image with the the median values (50th percentile) for the effective atomic number per voxel from the Monte Carlo inversion. |
|
Voxel image with the the third quartile (75th percentile) for the effective atomic number values per voxel from the Monte Carlo inversion. |
|
Voxel image with the maximum effective atomic number per voxel. |
|
Voxel image with the number of valid Monte Carlo results for each voxel. |
Calibration materials#
A list containing four instances of the |
|
An instance of the |
Inversion parameters#
Maximum value for inversion coefficient $A$ in the broad search algorithm used during Monte Carlo simulations. |
|
Maximum value for inversion coefficient $B$ in the broad search algorithm used during Monte Carlo simulations. |
|
Maximum value for inversion coefficient $n$ in the broad search algorithm used during Monte Carlo simulations. |
|
Pandas DataFrame with the valid realization sets for low energy inversion coefficients. |
|
Pandas DataFrame with the valid realization sets for high energy inversion coefficients. |
|
Tolerance value for terminating the Newton-Raphson optimizations. |
|
The boxplot whisker length for determining Monte Carlo outlier results. |
|
The required number of valid Monte Carlo iterations for each voxel. |
|
The maximum number of trials to get valid Monte Carlo iterations per voxel. |
|
Number of threads per block when processing using GPUs. |
Methods#
Handling voxel images#
|
Copy an existing voxel image into the DECT group. |
|
Create a mask voxel image based on the lowECT one. |
Remove the mask array from the structure. |
|
|
Create segmentation voxel image based on the lowECT array. |
Remove the segmentation array from the structure. |
Monte Carlo Inversion#
|
Check the group structure for consistency and dependencies among arrays and processing parameters. |
|
Perform the preprocessing steps for Dual Energy Computed Tomography analysis: |
|
Run the DECT analysis on the data in this group. |
Visualization#
|
Convenience function for visualizing the probability density functions (PDFs) and cumulative density functions (CDFs) of calibration materials. |
|
Convenience function for visualizing the probability density functions (PDFs) for the Monte Carlo invertion coefficients. |
|
Convenience function for visualizing the probability density functions (PDFs) for the Monte Carlo resulting effective atomic number for the calibration materials. |