read_image

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

read_image(path: str | Path, *, modality: str | None = None, subject_id: str | None = None, timepoint: str | None = None) → ImageVolume[source]

Read an image file into a geometry-aware ImageVolume.

Examples using habit.image.read_image

Load from NIfTI files

Load from NIfTI files