forked from hmeine/qimage2ndarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (55 loc) · 2.38 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
for line in open("qimage2ndarray/__init__.py"):
if line.startswith("__version__"):
exec(line)
setup(name = 'qimage2ndarray',
version = __version__,
description = 'Conversion between QImages and numpy.ndarrays.',
author = "Hans Meine",
author_email = "[email protected]",
url = "https://github.com/hmeine/qimage2ndarray",
download_url = "https://github.com/hmeine/qimage2ndarray/releases",
keywords = ["QImage", "numpy", "ndarray", "image", "convert", "PyQt4", "PyQt5", "PySide"],
install_requires = ['numpy'],
extras_require = dict(PyQt4 = 'PyQt4',
PyQt5 = 'PyQt5',
PySide = 'PySide'),
tests_require = 'nose',
packages = ['qimage2ndarray'],
long_description = """\
qimage2ndarray is a small python extension for quickly converting
between QImages and numpy.ndarrays (in both directions). These are
very common tasks when programming e.g. scientific visualizations in
Python using PyQt4 as the GUI library.
* Supports conversion of scalar and RGB data, with arbitrary dtypes
and memory layout, with and without alpha channels, into QImages
(e.g. for display or saving using Qt).
* qimage2ndarray makes it possible to create ndarrays that are
*views* into a given QImage's memory.
This allows for very efficient data handling and makes it possible
to modify Qt image data in-place (e.g. for brightness/gamma or alpha
mask modifications).
* Masked arrays are also supported and are converted into QImages
with transparent pixels.
* Supports recarrays (and comes with an appropriate dtype) for
convenient access to RGB(A) channels.
* Supports value scaling / normalization to 0..255 for convenient
display of arbitrary NumPy arrays.
* qimage2ndarray is stable and unit-tested.
""",
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]
)