Coder Social home page Coder Social logo

sofia-samaniego / imageio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imageio/imageio

0.0 0.0 0.0 1.86 MB

Main reposiory of imageio

Home Page: http://imageio.github.io

License: BSD 2-Clause "Simplified" License

Python 99.18% PowerShell 0.82%

imageio's Introduction

IMAGEIO

Build status Build Status Coverage Status Documentation Status

Website: http://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 2.x and 3.x, and is easy to install.

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 handfull 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)
  • See the user api for more information

Features

  • Simple interface via a consise set of functions.
  • Easy to install using conda or pip.
  • Few dependencies (only Numpy).
  • Pure Python, runs on Python 2.6+, 3.x, and Pypy
  • Cross platform, runs on Windows, Linux, OS X (Raspberry Pi planned)
  • 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.

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.

Some plugins rely on external libraries (e.g. ffmpeg). Imageio provides a way to download these with one function call, and prompts the user to do so when needed. The download is cached in your appdata directory, this keeps imageio light and scalable.

We plan to provide a wide range of image formats. Also scientific formats. Any help in 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).

Dependencies

Minimal requirements:

  • Python 3.x, 2.7 or 2.6
  • Numpy
  • Pillow

Optional Python packages:

  • SimpleITK (for ITK formats)
  • astropy (for FITS plugin)
  • osgeo (for GDAL plugin)

Optional libraries and executables that Imageio provides and can be downloaded with one function call:

  • freeimage (library)
  • ffmpeg (executable)
  • avbin (library)

Origin and outlook

Imageio was based out of the frustration that many libraries that needed to read or write image data produced their own functionality for IO. PIL did not meet the needs very well, and libraries like scikit-image need to be able to deal with scientific formats. I felt there was a need for a good image io library, which is an easy dependency, easy to maintain, and scalable to exotic file formats.

Imageio started out as component of the scikit-image project, through which it was able to support a lot of common formats. We created a simple but powerful core, a clean user API, and a proper plugin system.

The purpose of imageio is to support reading and writing of image data. We're not processing images, you should use scikit-image for that. Imageio should be easy to install and be lightweight. Imageio's plugin system makes it possible to scale the number of supported formats and still keep a low footprint.

It is impossible for one person to implement and maintain a wide variety of formats. My hope is to form a group of developers, who each maintain one or more plugins. In that way, the burder of each developer is low, and together we can make imageio into a really useful library!

imageio's People

Contributors

almarklein avatar blink1073 avatar kuchi avatar paulmueller avatar jni avatar organicirradiation avatar arashrai avatar tdsmith avatar ghisvail avatar jackwalker64 avatar jnises avatar rreilink avatar dennisvang avatar fkohlgrueber avatar niklasrosenstein avatar zulko avatar levskaya avatar anntzer avatar jusjusjus avatar peterqlee avatar who8mylunch avatar nad2000 avatar zshipko avatar gordon-n-stevenson avatar kappataumu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.