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.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file metaimageio-1.2.0.tar.gz.

File metadata

  • Download URL: metaimageio-1.2.0.tar.gz
  • Upload date:
  • Size: 8.6 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.0.tar.gz
Algorithm Hash digest
SHA256 193cfd5b410f4933eefe932f9af35290c860e48e4a9fee2cfbe34af3fd6ed839
MD5 59ee60f9f4c1130e672a08379f1c05b5
BLAKE2b-256 75c6641b0930daed444303364a2eaccbe0cc06b887129765c675dc0280f961ce

See more details on using hashes here.

File details

Details for the file metaimageio-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: metaimageio-1.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d899c755ed6a860757a269719e83d557c62e6a832fd285f97451a05fe6ca97bb
MD5 7d407d944bb33083bab546edbb06cf08
BLAKE2b-256 b009c446cce28eb49185a25a720137738e2b1a941da65567fec65c4b55b6e585

See more details on using hashes here.

Supported by

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