Support for reading and writing images in MetaIO file format.
Project description
MetaImageIO
Support for reading and writing images in MetaIO file format.
Getting started in Python
Install using pip install metaimageio
or conda install -c conda-forge metaimageio
.
import metaimageio
image, meta = metaimageio.read('/path/to/input.mha')
metaimageio.write('/path/to/output.mha', image, ElementSpacing=meta['ElementSpacing'])
Add to imageio plugins.
import imageio
metaimageio.imageio()
image = imageio.imread('/path/to/input.mha')
meta = image.meta
Getting started in MATLAB
Install using the Add-On Manager.
[image, meta] = metaimageio.read('/path/to/input.mha');
metaimageio.write('/path/to/output.mha', image, 'ElementSpacing', meta.ElementSpacing);
Add to image file format registry.
metaimageio.imformats();
image = imread('/path/to/input.mha');
meta = imfinfo('/path/to/input.mha');
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
metaimageio-1.1.4.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for metaimageio-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbab24cf967396d5d34a94e79d761f257b9e1d84642c9469c5dd8266919f8269 |
|
MD5 | a78a0641e168495e5e3f39960911bd97 |
|
BLAKE2b-256 | a681e030c5f88af1903435bdbf81b05a10fee17ef00cf3b77836ff5a679ed845 |