Welcome to imread’s documentation!¶
Imread is a very simple library, with a small number of functions:
imread()Reads an image file
imread_multi()Reads all the images in a multi-image file (TIFF and STK)
imread_from_blob()Reads an image from a
bytesobject in memoryimsave()Writes an image file
imsave_multi()Writes several images into a single file (TIFF only)
detect_format()Detects the format of a file or blob from its magic number (PNG and JPEG only)
supports_format()Checks whether a format is supported
imload, imload_multi, imload_from_blob, imwrite and
imwrite_multi are aliases. The imread.ijrois module reads
ImageJ regions of interest (see Formats Supported). All of
them are documented in the API Reference.
It is meant to be used with a computer vision & image processing package, such as:
This grew out of frustration at current image loading solutions in Python, in either my packages [mahotas] or packages from others [scikit-image, for example].
The relationship with NumPy is very contained, so this could easily be repurposed to load images in other frameworks, or even in other programming languages.
Citation¶
This package is an offshoot of mahotas. As it does not currently have its own publication, you are asked to cite the parent package. If you use mahotas-imread in a scientific publication, please cite:
Luis Pedro Coelho Mahotas: Open source software for scriptable computer vision in Journal of Open Research Software, vol 1, 2013. [DOI]
In BibTeX format:
@article{mahotas,
author = {Luis Pedro Coelho},
title = {Mahotas: Open source software for scriptable computer vision},
journal = {Journal of Open Research Software},
year = {2013},
doi = {10.5334/jors.ac},
month = {July},
volume = {1}
}
Installation¶
The recommended way to install imread is with pixi:
pixi add imread
Binary wheels are also available with pip install imread. See
How To Install Mahotas-imread for all the options, including building from source.
Contents:
- IMREAD
- How To Install Mahotas-imread
- Formats Supported
- API Reference
- Using imread outside of Python
- History
- Version 0.7.7+
- Version 0.7.6 (2024-08-02)
- Version 0.7.5 (2023-11-22)
- Version 0.7.4 (2020-04-14)
- Version 0.7.3 (2020-04-09)
- Version 0.7.2 (2020-03-24)
- Version 0.7.1 (2019-05-09)
- Version 0.7.0 (2018-09-30)
- Version 0.6.1 (2018-02-15)
- Version 0.6 (2016-09-21)
- Version 0.5.1 (2014-11-06)
- Version 0.5 (2014-10-16)
- Version 0.4 (2014-07-21)
- Version 0.3.2 (2013-10-06)
- Version 0.3.1 (2013-08-20)
- Version 0.3.0 (2013-07-29)
- Version 0.2.6 (2013-06-19)
- Version 0.2.5 (2012-10-29)
- Version 0.2.4 (2012-06-26)
- Version 0.2.3 (2012-06-08)
- Version 0.2.2 (2012-06-05)
- Version 0.2.1 (2012-04-11)
- Version 0.2 (2012-03-19)
- Version 0.1 (2012-02-28)
Bug Reports¶
Please report any bugs either on GitHub or by email to luis@luispedro.org.
If you have a test case where you are not sure whether imread is behaving correctly, you can discuss it on the pythonvision mailing list.
If at all possible, include a small image as a test case.