pymerlin.dataIO.create_image
- pymerlin.dataIO.create_image(img_array, spacing, corners=None, max_image_value=None, dtype=None)[source]
Create an ITK image object from array
Will take magnitude of the data. Does not impose any geometry.
- Parameters
img_array (array) – 3D image array
spacing (list) – Voxel size (dx,dy,dz)
corners (list, optional) – Not implemented. Defaults to None.
max_image_value (float, optional) – Rescale data to max value. Defaults to None.
dtype (itk.dtype, optional) – ITK data type for casting. Defaults to None.
- Returns
ITK Image object
- Return type
itk.Image