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
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.2.2.tar.gz
(8.8 kB
view details)
Built Distribution
File details
Details for the file metaimageio-1.2.2.tar.gz
.
File metadata
- Download URL: metaimageio-1.2.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95190b356df0600548d2ca2c61d80fe21fc65cddb01dadb25e4cfb747a185c93 |
|
MD5 | 996e95d90790b334dd615b0c3c501905 |
|
BLAKE2b-256 | d35dd4aeae5d06f10dfc69f69b0321280d6ccbf12ac2e190b32dadfc7fab7530 |
File details
Details for the file metaimageio-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: metaimageio-1.2.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d867c47079f903d6fe4ae883282271e6f896874b9113780c280fd5d0686909 |
|
MD5 | a7b78debef477b7bcf550b7ff6099472 |
|
BLAKE2b-256 | c0daccf8c99134a0743a272d35ea41121a28674f5b29e5f06bdb644524c35b2f |