morphogen.io.metaimage¶
MetaImage (.mhd header + .raw data), read by ITK, ParaView, Fiji and 3D Slicer.
MetaImage gives the position of the centre of the first voxel (Offset).
- morphogen.io.metaimage.write_mhd(path, image: VoxelImage, *, compress: bool = False) Path[source]¶
A voxel image written as a MetaImage header (.mhd) and its raw data (.raw, or .zraw compressed with zlib if
compress), read by ITK, ParaView and 3D Slicer.
- morphogen.io.metaimage.read_mhd(path) VoxelImage[source]¶
A voxel image read from a MetaImage header (.mhd) and its raw data (.raw, or .zraw compressed with zlib).