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 as mio
image, meta = mio.read('/path/to/input.mha')
mio.write('/path/to/output.mha', image, ElementSpacing=meta['ElementSpacing'])
(Highly optional) Add to imageio plugins.
import imageio.v2 as iio
mio.imageio.add_format()
image = iio.imread('/path/to/input.mha', format='MetaImageIO')
meta = image.meta
import imageio.v3 as iio
from metaimageio.imageio import MetaImageIOPlugin
image = iio.imread('/path/to/input.mha', plugin=MetaImageIOPlugin)
meta = iio.immeta('/path/to/input.mha', plugin=MetaImageIOPlugin)
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);
(Optional) Add to image file format registry.
metaimageio.imformats();
image = imread('/path/to/input.mha');
meta = imfinfo('/path/to/input.mha');
Releasing a new version
- Update
project.versioninpyproject.tomlandCHANGELOGwith commit message "Release vX.X.X". - Add tag vX.X.X with message "Release vX.X.X".
- Push the tag and create a new release on metaimageio.
- Merge the auto-generated pull request on metaimageio-feedstock.
Metadata
Release files for metaimageio 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metaimageio-1.3.2.tar.gz | 10.5 kB | Without provenance | Details for metaimageio-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metaimageio-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for metaimageio-1.3.2-py3-none-any.whl |
Total release size: 22.8 kB
Release files / metaimageio-1.3.2.tar.gz
| Download URL | metaimageio-1.3.2.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fddd289c1c18326b3fabf678688c973f12fde4134fd9efcda28b167e68a4c342
|
|
BLAKE2b-256 checksum How to use checksums |
9abaf1c88ee5973127104189451bf1535f3370e63cea327219b94c65c2605507
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / metaimageio-1.3.2-py3-none-any.whl
| Download URL | metaimageio-1.3.2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7dba2c3d35538f0891d397a766bd816f0658d161ee9b096cd0bd83aab88a6d56
|
|
BLAKE2b-256 checksum How to use checksums |
891d7b1e462f1d92722e5bd20d963eba5af5aaeee3b4eefc0c7f008b2b2c9f91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Security for metaimageio 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.