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.
Release files for qimage2ndarray 1.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qimage2ndarray-1.10.0.tar.gz | 200.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qimage2ndarray-1.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 213.0 kB
Release files / qimage2ndarray-1.10.0.tar.gz
| Download URL | qimage2ndarray-1.10.0.tar.gz |
|---|---|
| Size | 200.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3725102446dc8a696b2ec775b1d2af43b13af6a7f9ebee8a37115bb9543a2c58
|
|
BLAKE2b-256 checksum How to use checksums |
c5c59c5630bcda3e2dd8445dd5c663e938451967c84d7f8707816ca9f00824db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / qimage2ndarray-1.10.0-py3-none-any.whl
| Download URL | qimage2ndarray-1.10.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c1c2a4ef2f72a7943392ee76305da87831274b9a10f00ccf624a54cb335ec6d
|
|
BLAKE2b-256 checksum How to use checksums |
9d79d3ce0ec91c3c761e04d0210d5544073ba3d38a4d6538e2ba58b45e33275c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|