Menu

Python, loading images

Navigation
Contents filtering

Loading images

Images can be loaded via the MIA plugins by calling pymia.load_image2d or pymia.load_image3d.
The result is a numpy.array and all meta data is lost. If you are also interested in the meta data nibabel may be of interest to you.

Loading a 2D gray scale image from a file filename can than be simply done by calling:

from pymia import load_image2d
image = load_image2d(filename).

Related

Wiki: Python, filtering
Wiki: Using mia from Python

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.