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

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-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

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 array
  • 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.8.7.tar.gz (43.6 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.8.7-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixtreme_core-0.8.7.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pixtreme_core-0.8.7.tar.gz
Algorithm Hash digest
SHA256 b55e6004acef842f6b2c370ea4cb94eb421ba8d56fa95d3c370a76f91f1413d3
MD5 606e4de35b3e02c2a7b8001bbe425f07
BLAKE2b-256 d2ac26f960b6dc31de7765488968358df1d2aa8d987dc3c47ef3a01be9e33db5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixtreme_core-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pixtreme_core-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4b13b23cb1e75db290957dc94b02d148b9a5dd1b17085d869429a5868fab469f
MD5 4d008cf5c2cf51139068f8a6a370e134
BLAKE2b-256 4c8a5442b20c564c599f29db01b5a372dd8e6373eb5ca01ddaa9b45045be02ff

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