|
OpenImpala
Image-based parallel transport property solver
|
Loads 3D voxel images from multiple file formats and thresholds into phase data. More...
#include <string>#include <filesystem>#include <AMReX_Box.H>#include <AMReX_BoxArray.H>#include <AMReX_DistributionMapping.H>#include <AMReX_Geometry.H>#include <AMReX_REAL.H>#include <AMReX_iMultiFab.H>Go to the source code of this file.
Classes | |
| struct | OpenImpala::ImageData |
| Result of loading and thresholding a 3D image file. More... | |
Namespaces | |
| namespace | OpenImpala |
Functions | |
| ImageData | OpenImpala::loadImage (const std::filesystem::path &filepath, const std::string &hdf5_dataset, amrex::Real threshold_val, int box_size, int verbose=1) |
| Loads a 3D image from file and thresholds it into a binary phase field. | |
Loads 3D voxel images from multiple file formats and thresholds into phase data.
Consolidates file format detection, reader instantiation, and phase thresholding into a single utility. Supports TIFF, HDF5, and DAT formats (RAW files require RawReader directly due to needing explicit dimensions and data type). The output is always an amrex::iMultiFab containing integer phase IDs, ready for solver consumption.