# IMAGEIO
[![Build status](https://ci.appveyor.com/api/projects/status/4wjqg4o5r2q53iwt/branch/master?svg=true)](https://ci.appveyor.com/project/almarklein/imageio/branch/master)
[![Build Status](https://travis-ci.org/imageio/imageio.svg?branch=master)](https://travis-ci.org/imageio/imageio)
[![Coverage Status](https://coveralls.io/repos/imageio/imageio/badge.png?branch=master)](https://coveralls.io/r/imageio/imageio?branch=master)
[![Documentation Status](https://readthedocs.org/projects/imageio/badge/?version=latest)](https://imageio.readthedocs.org)
Website: http://imageio.github.io
<!-- From below ends up on the website Keep this ---- DIVIDER ---- -->
<p class='summary'>
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.
</p>
<h2>Example</h2>
Here's a minimal example of how to use imageio. See the docs for
<a href='http://imageio.readthedocs.org/en/latest/examples.html'>more examples</a>.
<pre>
>>> 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])
</pre>
<h2>API in a nutshell</h2>
As a user, you just have to remember a handfull of functions:
<ul>
<li>imread() and imwrite() - for single images</li>
<li>mimread() and mimwrite() - for image series (animations)</li>
<li>volread() and volwrite() - for volumetric image data</li>
<li>get_reader() and get_writer() - for more control (e.g. streaming)</li>
<li>See the <a href='http://imageio.readthedocs.org/en/latest/userapi.html'>user api</a> for more information</li>
</ul>
<h2>Features</h2>
<ul>
<li>Simple interface via a consise set of functions.</li>
<li>Easy to <a href='http://imageio.readthedocs.org/en/latest/installation.html'>install</a> using conda or pip.</li>
<li>Few dependencies (only Numpy).</li>
<li>Pure Python, runs on Python 2.6+, 3.x, and Pypy</li>
<li>Cross platform, runs on Windows, Linux, OS X (Raspberry Pi planned)</li>
<li>Lots of supported <a href='http://imageio.readthedocs.org/en/latest/formats.html'>formats</a>.</li>
<li>Can read from file names, file objects, zipfiles, http/ftp, and raw bytes.</li>
<li>Easy to extend using plugins.</li>
<li>Code quality is maintained with many tests and continuous integration.</li>
</ul>
<h2>Details</h2>
<p>
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.
</p><p>
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.
</p><p>
We plan to provide a wide range of image formats. Also scientific
formats. Any help in implementing more formats is very welcome!
</p><p>
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).
</p>
<h2>Dependencies</h2>
Minimal requirements:
<ul>
<li>Python 3.x, 2.7 or 2.6</li>
<li>Numpy</li>
<li>Pillow</li>
</ul>
Optional Python packages:
<ul>
<li>SimpleITK (for ITK formats)</li>
<li>astropy (for FITS plugin)</li>
<li>osgeo (for GDAL plugin)</li>
</ul>
Optional libraries and executables that Imageio provides and can be downloaded
with one function call:
<ul>
<li>freeimage (library)</li>
<li>ffmpeg (executable)</li>
<li>avbin (library)</li>
</ul>
<h2>Origin and outlook</h2>
<p>
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.
</p><p>
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.
</p><p>
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.
</p><p>
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!
</p>
没有合适的资源?快使用搜索试试~ 我知道了~
imageio源码深度学习
需积分: 46 12 下载量 55 浏览量
2017-08-23
14:27:13
上传
评论
收藏 3.13MB GZ 举报
温馨提示
共78个文件
py:52个
rst:10个
mp4:2个
imageio-2.2.0.tar.gz 解压后安装。./configure ,阅读readme。
资源推荐
资源详情
资源评论
收起资源包目录
imageio-2.2.0.tar.gz (78个子文件)
imageio-2.2.0
PKG-INFO 2KB
CONTRIBUTORS.txt 903B
docs
.requirements 20B
envvariables.rst 1KB
imageio_ext.py 7KB
sec_reference.rst 190B
conf.py 8KB
sec_developer.rst 157B
make.bat 5KB
installation.rst 740B
sec_gettingstarted.rst 169B
userapi.rst 744B
devapi.rst 551B
releasenotes.rst 11KB
examples.rst 3KB
Makefile 5KB
index.rst 194B
imageio
testing.py 7KB
core
functions.py 17KB
fetching.py 9KB
request.py 19KB
util.py 18KB
format.py 26KB
__init__.py 752B
findlib.py 6KB
plugins
freeimagemulti.py 11KB
gdal.py 2KB
swf.py 12KB
_tifffile.py 227KB
fits.py 5KB
simpleitk.py 4KB
example.py 6KB
avbin.py 16KB
dicom.py 10KB
feisem.py 3KB
freeimage.py 17KB
pillowmulti.py 13KB
_freeimage.py 51KB
__init__.py 4KB
_swf.py 26KB
tifffile.py 9KB
_dicom.py 34KB
ffmpeg.py 37KB
pillow_info.py 36KB
grab.py 3KB
pillow.py 19KB
npz.py 3KB
resources
shipped_resources_go_here 0B
images
newtonscradle.gif 570KB
cockatoo.mp4 712KB
chelsea.zip 216KB
stent.npz 805KB
realshort.mp4 95KB
astronaut.png 773KB
chelsea.png 216KB
__init__.py 1KB
freeze.py 284B
tests
test_dicom.py 6KB
test_avbin.py 5KB
test_tifffile.py 3KB
test_ffmpeg.py 12KB
test_meta.py 5KB
test_format.py 12KB
test_simpleitk.py 1KB
test_swf.py 6KB
test_fits.py 2KB
test_grab.py 3KB
test_pillow.py 11KB
test_freeimage.py 16KB
test_gdal.py 823B
test_freeimage_suite.py 3KB
test_npz.py 2KB
README.md 459B
test_core.py 21KB
test_fei_tiff.py 1KB
LICENSE 1KB
setup.py 7KB
README.md 5KB
共 78 条
- 1
资源评论
JeffFFFst
- 粉丝: 194
- 资源: 47
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功