Skip to main content

pixtreme-core: High-Performance GPU Image Processing Core Library

Project description

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

pip install pixtreme-core

Requires CUDA Toolkit 12.x and compatible NVIDIA GPU.

OpenCV Variants

pixtreme-core uses opencv-python by default. For different environments:

  • Headless environments (no GUI): Replace with opencv-python-headless

    pip uninstall opencv-python
    pip install opencv-python-headless
    
  • Contrib modules needed: Replace with opencv-contrib-python

    pip 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 decoding
  • imwrite(): Efficient image encoding
  • imshow(): 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-Rom
  • affine(): Affine transformations
  • tile_image(), merge_tiles(): Tiling workflow for large images
  • erode(): Morphological erosion

Framework Interoperability

  • to_cupy(), to_numpy(), to_tensor(): Zero-copy conversions via DLPack
  • to_uint8(), to_uint16(), to_float32(): Type conversions with range scaling

License

MIT License - see LICENSE file for details.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixtreme_core-0.6.3.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixtreme_core-0.6.3-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file pixtreme_core-0.6.3.tar.gz.

File metadata

  • Download URL: pixtreme_core-0.6.3.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.18

File hashes

Hashes for pixtreme_core-0.6.3.tar.gz
Algorithm Hash digest
SHA256 6ca864fa896c9ba113946219f59f4ba4315bc6dfb61b8ec52c001dc81dcd1a5d
MD5 0568857d98f15f67b7b4b1a7e8267324
BLAKE2b-256 432887ff54fec26fc9dbe7544698af4d1fa604aa4d5fd8efaa9bdb3e647d9849

See more details on using hashes here.

File details

Details for the file pixtreme_core-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pixtreme_core-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28e63f9625baf4f808b0ae284f7dff3152ad2944d4720da7918b9c6cc9b1ccc3
MD5 8b782f69f52b83fc76b4d252317477a9
BLAKE2b-256 24d3b8ffb49ab407c38e5d06e798c6420655e6b52641157b9c3ab7856a00c0ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page