Debian Codegraph @

docs/reference/index.rst

raw
1 API Reference
2 =============
3
4 ImageIO's API follows the usual idea of choosing sensible defaults for the
5 average user, but giving you fine grained control where you need it. As
6 such the API is split into two parts: The Core API, which covers standard
7 use-cases, and a plugin/backend specific API, which allows you to take full
8 advantage of a backend and its unique features.
9
10 Core APIs
11 ^^^^^^^^^
12
13 The core API is ImageIOs public frontend. It provides convenient (and powerful)
14 access to the growing number of individual plugins on top of which ImageIO is
15 built. Currently the following APIs exist:
16
17 .. toctree::
18 :maxdepth: 1
19
20 Core API v3 (narrative docs) <core_v3>
21 Core API v2 (narrative docs) <userapi>
22
23 .. rubric:: Core API v3
24 .. note::
25 To use this API import it using::
26
27 import imageio.v3 as iio
28 .. note::
29 Check the narrative documentation to build intuition for how to use this API.
30 You can find them here: :doc:`narrative v3 API docs <core_v3>`.
31
32 .. autosummary::
33
34 imageio.v3.imread
35 imageio.v3.imiter
36 imageio.v3.improps
37 imageio.v3.immeta
38 imageio.v3.imwrite
39 imageio.v3.imopen
40
41 .. rubric:: Core API v2
42 .. warning::
43 This API exists for backwards compatibility. It is a wrapper around calls to
44 the v3 API and new code should use the v3 API directly.
45
46 .. note::
47 To use this API import it using::
48
49 import imageio.v2 as iio
50
51 .. note::
52 Check the narrative documentation to build intuition for how to use this API.
53 You can find them here: :doc:`narrative v2 API docs <userapi>`.
54
55 .. autosummary::
56
57 imageio.v2.imread
58 imageio.v2.mimread
59 imageio.v2.volread
60 imageio.v2.mvolread
61 imageio.v2.imwrite
62 imageio.v2.mimwrite
63 imageio.v2.volwrite
64 imageio.v2.mvolwrite
65 imageio.v2.get_reader
66 imageio.v2.get_writer
67
68
69 .. _supported_backends:
70
71 Plugins & Backend Libraries
72 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
73
74 Sometimes, you need to do more than just "load an image, done". Sometimes you
75 need to use a very specific feature of a very specific backend. ImageIO allows
76 you to do so by allowing its plugins to extend the core API. Typically this is
77 done in the form of additional keyword arguments (``kwarg``) or plugin-specific
78 methods. Below you can find a list of available plugins and which arguments they
79 support.
80
81 .. autosummary::
82 :toctree: ../_autosummary/
83 :template: plugin.rst
84
85 imageio.plugins.bsdf
86 imageio.plugins.dicom
87 imageio.plugins.feisem
88 imageio.plugins.ffmpeg
89 imageio.plugins.fits
90 imageio.plugins.freeimage
91 imageio.plugins.gdal
92 imageio.plugins.lytro
93 imageio.plugins.npz
94 imageio.plugins.opencv
95 imageio.plugins.pillow
96 imageio.plugins.pillow_legacy
97 imageio.plugins.pyav
98 imageio.plugins.rawpy
99 imageio.plugins.simpleitk
100 imageio.plugins.spe
101 imageio.plugins.swf
102 imageio.plugins.tifffile
103 imageio.plugins.tifffile_v3