Skip to main content

Support for reading and writing images in MetaIO file format.

Project description


Support for reading and writing images in MetaIO file format.

license build pypi conda-forge matlab-file-exchange

Getting started in Python

Install using pip install metaimageio or conda install -c conda-forge metaimageio.

import metaimageio
image, meta ='/path/to/input.mha')
metaimageio.write('/path/to/output.mha', image, ElementSpacing=meta['ElementSpacing'])

Add to imageio plugins.

import imageio
image = imageio.imread('/path/to/input.mha')
meta = image.meta

Getting started in MATLAB

Install using the Add-On Manager.

[image, meta] ='/path/to/input.mha');
metaimageio.write('/path/to/output.mha', image, 'ElementSpacing', meta.ElementSpacing);

Add to image file format registry.

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)

Uploaded source

Built Distribution

metaimageio-1.1.4-py3-none-any.whl (9.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page