All Projects → imageio → Imageio

imageio / Imageio

Licence: bsd-2-clause
Python library for reading and writing image data

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Imageio

bluelight
a browser-based DICOM viewer
Stars: ✭ 35 (-95.86%)
Mutual labels:  dicom
Weasis
Weasis is a DICOM viewer available as a desktop application or as a web-based application.
Stars: ✭ 311 (-63.24%)
Mutual labels:  dicom
Ctk
A set of common support code for medical imaging, surgical navigation, and related purposes.
Stars: ✭ 498 (-41.13%)
Mutual labels:  dicom
DicomViewer
Dicom images viewer, built special for medical online testing platform
Stars: ✭ 13 (-98.46%)
Mutual labels:  dicom
Osirix
OsiriX DICOM Viewer
Stars: ✭ 284 (-66.43%)
Mutual labels:  dicom
Dcmtk
Official DCMTK Github Mirror
Stars: ✭ 361 (-57.33%)
Mutual labels:  dicom
neurdicom
RESTful PACS server with plugins
Stars: ✭ 97 (-88.53%)
Mutual labels:  dicom
Dicom
⚡High Performance DICOM Medical Image Parser in Go.
Stars: ✭ 643 (-24%)
Mutual labels:  dicom
Pynetdicom
A Python implementation of the DICOM networking protocol
Stars: ✭ 289 (-65.84%)
Mutual labels:  dicom
Cornerstonetools
A framework for tools built on top of Cornerstone.
Stars: ✭ 411 (-51.42%)
Mutual labels:  dicom
weasis-dicom-tools
Basic dicom API
Stars: ✭ 19 (-97.75%)
Mutual labels:  dicom
fmjpeg2koj
JPEG2000 codec for DCMTK using openjpeg
Stars: ✭ 32 (-96.22%)
Mutual labels:  dicom
Mitk
The Medical Imaging Interaction Toolkit.
Stars: ✭ 360 (-57.45%)
Mutual labels:  dicom
pymedphys
A community effort to develop an open standard library for Medical Physics in Python. Building quality transparent software together via peer review and open source distribution. Open code is better science.
Stars: ✭ 179 (-78.84%)
Mutual labels:  dicom
Dicomparser
JavaScript parser for DICOM Part 10 data
Stars: ✭ 515 (-39.13%)
Mutual labels:  dicom
DICOMClient
DICOM utilities for anonymizing, viewing and uploading to a PACS
Stars: ✭ 40 (-95.27%)
Mutual labels:  dicom
Medpy
Medical image processing in Python
Stars: ✭ 321 (-62.06%)
Mutual labels:  dicom
Fo Dicom
Fellow Oak DICOM for .NET, .NET Core, Universal Windows, Android, iOS, Mono and Unity
Stars: ✭ 674 (-20.33%)
Mutual labels:  dicom
Ami
AMI Medical Imaging (AMI) JS ToolKit
Stars: ✭ 569 (-32.74%)
Mutual labels:  dicom
Dcm2niix
dcm2nii DICOM to NIfTI converter: compiled versions available from NITRC
Stars: ✭ 364 (-56.97%)
Mutual labels:  dicom

IMAGEIO

PyPI Version Supported Python Versions CI codecov Documentation Status PyPi Download stats DOI

Website: https://imageio.github.io

Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images, video, volumetric data, and scientific formats. It is cross-platform, runs on Python 3.5+, and is easy to install.

Professional support is available via Tidelift and xs:code.

Example

Here's a minimal example of how to use imageio. See the docs for more examples.
import imageio
im = imageio.imread('imageio:chelsea.png')  # read a standard image
im.shape  # im is a NumPy array
>> (300, 451, 3)
imageio.imwrite('~/chelsea-gray.jpg', im[:, :, 0])

API in a nutshell

As a user, you just have to remember a handful of functions:
  • imread() and imwrite() - for single images
  • mimread() and mimwrite() - for image series (animations)
  • volread() and volwrite() - for volumetric image data
  • get_reader() and get_writer() - for more control (e.g. streaming or compression)
  • See the user api for more information

Features

  • Simple interface via a concise set of functions
  • Easy to install using Conda or pip
  • Few dependencies (only NumPy and Pillow)
  • Pure Python, runs on Python 3.5+, and PyPy
  • Cross platform, runs on Windows, Linux, macOS
  • Lots of supported formats
  • Can read from file names, file objects, zipfiles, http/ftp, and raw bytes
  • Easy to extend using plugins
  • Code quality is maintained with many tests and continuous integration

Dependencies

Minimal requirements:

  • Python 3.5+
  • NumPy
  • Pillow

Optional Python packages:

  • imageio-ffmpeg (for working with video files)
  • itk or SimpleITK (for ITK formats)
  • astropy (for FITS plugin)
  • osgeo (for GDAL plugin)
  • imageio-flif (for working with FLIF image files)

Still on an earlier version of Python? Imageio version 2.6.x supports Python 2.7 and 3.4.

Citing imageio

If you use imageio for scientific work, we would appreciate a citation. We have a DOI!

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

imageio for enterprise

Available as part of the Tidelift Subscription.

The maintainers of imageio and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Details

Imageio has a relatively simple core that provides a common interface to different file formats. This core takes care of reading from different sources (like http), and exposes a simple API for the plugins to access the raw data. All file formats are implemented in plugins. Additional plugins can easily be registered.

Imageio provides a wide range of image formats, including scientific formats. Any help with implementing more formats is very welcome!

The codebase adheres to (a subset of) the PEP8 style guides. We strive for maximum test coverage (100% for the core, >95% for each plugin).

Contributing

Install imageio in edit mode, with dev tools:

```bash pip install -e .[dev,docs] ```

Most developer command are done via invoke.

# Check all available commands
invoke -l
# Reformat code (using Black)
invoke format
# Check for style errors
invoke lint
# Run unit tests
invoke test --unit
# Check test coverage (re-runs tests)
invoke test --cover
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].