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.
Raw data
{
"_id": null,
"home_page": "https://github.com/hmeine/qimage2ndarray",
"name": "qimage2ndarray",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "QImage,numpy,ndarray,image,convert,PyQt4,PyQt5,PyQt6,PySide,PySide6",
"author": "Hans Meine",
"author_email": "hans_meine@gmx.net",
"download_url": "https://files.pythonhosted.org/packages/c5/c5/9c5630bcda3e2dd8445dd5c663e938451967c84d7f8707816ca9f00824db/qimage2ndarray-1.10.0.tar.gz",
"platform": null,
"description": "qimage2ndarray is a small python extension for quickly converting\nbetween QImages and numpy.ndarrays (in both directions). These are\nvery common tasks when programming e.g. scientific visualizations in\nPython using PyQt4 as the GUI library.\n\n* Supports conversion of scalar and RGB data, with arbitrary dtypes\n and memory layout, with and without alpha channels, into QImages\n (e.g. for display or saving using Qt).\n\n* qimage2ndarray makes it possible to create ndarrays that are\n *views* into a given QImage's memory.\n\n This allows for very efficient data handling and makes it possible\n to modify Qt image data in-place (e.g. for brightness/gamma or alpha\n mask modifications).\n\n* Masked arrays are also supported and are converted into QImages\n with transparent pixels.\n\n* Supports recarrays (and comes with an appropriate dtype) for\n convenient access to RGB(A) channels.\n\n* Supports value scaling / normalization to 0..255 for convenient\n display of arbitrary NumPy arrays.\n\n* qimage2ndarray is stable and unit-tested.\n",
"bugtrack_url": null,
"license": "",
"summary": "Conversion between QImages and numpy.ndarrays.",
"version": "1.10.0",
"split_keywords": [
"qimage",
"numpy",
"ndarray",
"image",
"convert",
"pyqt4",
"pyqt5",
"pyqt6",
"pyside",
"pyside6"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9d79d3ce0ec91c3c761e04d0210d5544073ba3d38a4d6538e2ba58b45e33275c",
"md5": "c0a87f16ec286a5c1a9b35ed2b636ce6",
"sha256": "4c1c2a4ef2f72a7943392ee76305da87831274b9a10f00ccf624a54cb335ec6d"
},
"downloads": -1,
"filename": "qimage2ndarray-1.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c0a87f16ec286a5c1a9b35ed2b636ce6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 12590,
"upload_time": "2023-01-28T16:16:54",
"upload_time_iso_8601": "2023-01-28T16:16:54.996248Z",
"url": "https://files.pythonhosted.org/packages/9d/79/d3ce0ec91c3c761e04d0210d5544073ba3d38a4d6538e2ba58b45e33275c/qimage2ndarray-1.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c5c59c5630bcda3e2dd8445dd5c663e938451967c84d7f8707816ca9f00824db",
"md5": "cd156b09299c971b5171e9d3ee4b26bf",
"sha256": "3725102446dc8a696b2ec775b1d2af43b13af6a7f9ebee8a37115bb9543a2c58"
},
"downloads": -1,
"filename": "qimage2ndarray-1.10.0.tar.gz",
"has_sig": false,
"md5_digest": "cd156b09299c971b5171e9d3ee4b26bf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 200439,
"upload_time": "2023-01-28T16:16:59",
"upload_time_iso_8601": "2023-01-28T16:16:59.369719Z",
"url": "https://files.pythonhosted.org/packages/c5/c5/9c5630bcda3e2dd8445dd5c663e938451967c84d7f8707816ca9f00824db/qimage2ndarray-1.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-28 16:16:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hmeine",
"github_project": "qimage2ndarray",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"requirements": [],
"lcname": "qimage2ndarray"
}