Instantly share code, notes, and snippets.
For more, see https://pypi.org/project/pyimagej/
Sorry, something went wrong.
For NIFTI specifically, there are much easier ways:
import nibabel as nib
img = nib.load(filename)
data = img.get_fdata()
But the above notebook should work for nearly all the Bio-Formats-supported formats, including ones without convenient Python libraries.