Diffusion

Diffusion-weighted MRI encodings, in FSL’s .bvec/.bval format, and NIfTI images bundled with them (available as the encoding attribute).

class fileformats.medimage.DwiEncoding[source]

Bases: object

class fileformats.medimage.Bval(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: BinaryFile

class fileformats.medimage.Bvec(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: WithAdjacentFiles, DwiEncoding, BinaryFile

FSL-style diffusion encoding, in two separate files

class fileformats.medimage.NiftiBvec(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: WithBvec, Nifti1

class fileformats.medimage.NiftiGzBvec(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: WithBvec, NiftiGz

class fileformats.medimage.NiftiXBvec(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: WithBvec, NiftiX

class fileformats.medimage.NiftiGzXBvec(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]

Bases: WithBvec, NiftiGzX