Skip to main content

Support for reading and writing images in MetaIO file format.

Project description

MetaImageIO

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 = 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.2.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

metaimageio-1.2.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for metaimageio-1.2.2.tar.gz
Algorithm Hash digest
SHA256 95190b356df0600548d2ca2c61d80fe21fc65cddb01dadb25e4cfb747a185c93
MD5 996e95d90790b334dd615b0c3c501905
BLAKE2b-256 d35dd4aeae5d06f10dfc69f69b0321280d6ccbf12ac2e190b32dadfc7fab7530

See more details on using hashes here.

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

Hashes for metaimageio-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55d867c47079f903d6fe4ae883282271e6f896874b9113780c280fd5d0686909
MD5 a7b78debef477b7bcf550b7ff6099472
BLAKE2b-256 c0daccf8c99134a0743a272d35ea41121a28674f5b29e5f06bdb644524c35b2f

See more details on using hashes here.

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