NIfTI¶
NIfTI images, optionally gzipped and with a BIDS
JSON side-car (the X variants, available as the json_file attribute).
- class fileformats.medimage.Nifti(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
MedicalImage,BinaryFile
- class fileformats.medimage.Nifti1(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
WithMagicNumber,Nifti
- class fileformats.medimage.Nifti2(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
WithMagicNumber,Nifti
- class fileformats.medimage.NiftiGz(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
Nifti,BaseGzip