pixtreme-core
High-Performance GPU Image Processing Core Library
Overview
pixtreme-core provides the fundamental building blocks for GPU-accelerated image processing:
- I/O: Hardware-accelerated image reading/writing via NVIDIA nvimgcodec
- Color: Color space conversions (BGR, RGB, HSV, YCbCr, LUT operations)
- Transform: Geometric transformations (resize, affine, tiling) with 11 interpolation methods
- Utils: Framework interoperability (NumPy, CuPy, PyTorch) via DLPack
All operations work directly on GPU memory using CuPy arrays for maximum performance.
Installation
Requirements:
- Python >= 3.12
- CUDA Toolkit 12.x
- NVIDIA GPU with compute capability >= 6.0
pip install pixtreme-core
OpenCV Variants
pixtreme-core uses opencv-python by default. For different environments:
-
Headless environments (no GUI): Replace with
opencv-python-headlesspip uninstall opencv-python pip install opencv-python-headless
-
Contrib modules needed: Replace with
opencv-contrib-pythonpip uninstall opencv-python pip install opencv-contrib-python
All variants provide the same cv2 module and are compatible with pixtreme.
Quick Start
import pixtreme_core as px
# Read image (returns CuPy array on GPU)
img = px.imread("input.jpg")
# Resize with auto-selected interpolation
img = px.resize(img, (512, 512))
# Convert color space
img = px.bgr_to_rgb(img)
# Write image
px.imwrite("output.jpg", img)
Features
Image I/O
imread(): Hardware-accelerated JPEG/PNG decodingimwrite(): Efficient image encodingimshow(): Display with matplotlib
Color Conversions
- BGR ↔ RGB, HSV, YCbCr, Grayscale
- 3D LUT operations with trilinear/tetrahedral interpolation
- Video format support (UYVY422, YUV420p, YUV422p10le)
- Legal/full range YCbCr conversion
Geometric Transforms
resize(): 11 interpolation methods including Lanczos, Mitchell, Catmull-Romaffine(): Affine transformationstile_image(),merge_tiles(): Tiling workflow for large images
Framework Interoperability
to_cupy(),to_tensor(): GPU-to-GPU conversions via DLPack (no host round-trip)to_numpy(): Copy an image to a host NumPy arrayto_uint8(),to_uint16(),to_float32(): Type conversions with range scaling
License
MIT License - see LICENSE file for details.
Links
- Repository: https://github.com/sync-dev-org/pixtreme
- Documentation: https://github.com/sync-dev-org/pixtreme/blob/main/README.md
Metadata
Release files for pixtreme-core 0.9.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 | Provenance | |
|---|---|---|---|---|
| pixtreme_core-0.9.0.tar.gz | 59.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pixtreme_core-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 105.8 kB
Release files / pixtreme_core-0.9.0.tar.gz
| Download URL | pixtreme_core-0.9.0.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c26b5c380cda20017e9033f249f4e456dc80db6809f1c168c4c176c7008132e
|
|
BLAKE2b-256 checksum How to use checksums |
954649af9a67b686716fc3596596ba735e6a585a5aac6502c881c895dab0236f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / pixtreme_core-0.9.0-py3-none-any.whl
| Download URL | pixtreme_core-0.9.0-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76cec041e457b9da9a84f804f14dfc8bc3a70819137fcd2e03b6072a83036e3f
|
|
BLAKE2b-256 checksum How to use checksums |
882da503ce90638947f48b4db46d747698bf2d1569020c2d27c6dacedd4b0b26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Security for pixtreme-core 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.