mbircone.utils

Functions:

hdf5_write(image, filename[, ...])

This function writes a reconstructed image to an HDF5 file containing the 3D reconstructed volume along with optional descriptions of the source data, and units.

mbircone.utils.hdf5_write(image, filename, recon_description='', alu_description='', delta_pixel_image=1.0)[source]

This function writes a reconstructed image to an HDF5 file containing the 3D reconstructed volume along with optional descriptions of the source data, and units.

Parameters:
  • image (float, ndarray) – 3D reconstructed image to be saved.

  • filename (string) – Path to save the HDF5 file. Example: <path_to_directory>/recon.h5.

  • recon_description (string, optional) – description of CT source data.

  • alu_description (string, optional) – description of arbitrary length units (ALU). Example: “1 ALU = 5 mm”.

  • delta_pixel_image (float, optional) – Image pixel spacing in ALU.