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
Install using pip install metaimageio
or conda install -c conda-forge metaimageio
.
Use in Python
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
Use in MATLAB
[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
Release history Release notifications | RSS feed
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.0.0.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for metaimageio-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5676a7c3af8a3f140566b9a23988d450be15b22ba82bc60633bebeb71e82faf8 |
|
MD5 | b73e02775ce4dd6caa4e8a24bbd5c5e3 |
|
BLAKE2b-256 | 1a9b586a0d8ddd1479fcb61691e86018c4985eaa47f7fb6784292d0ad183ea81 |