Data (mialab.data package)#

Provides data representation.

Structure (mialab.data.structure module)#

The data structure module holds model classes.

class mialab.data.structure.BrainImage(id_: str, path: str, images: dict, transformation: SimpleITK.Transform)[source]#

Represents a brain image.

__init__(id_: str, path: str, images: dict, transformation: SimpleITK.Transform)[source]#

Initializes a new instance of the BrainImage class.

Parameters:
  • id (str) – An identifier.

  • path (str) – Full path to the image directory.

  • images (dict) – The images, where the key is a BrainImageTypes and the value is a SimpleITK image.

class mialab.data.structure.BrainImageTypes(value)[source]#

Represents human readable image types.

BrainMask = 4#

The brain mask image.

GroundTruth = 3#

The ground truth image.

RegistrationTransform = 5#

The registration transformation

T1w = 1#

The T1-weighted image.

T2w = 2#

The T2-weighted image.