Skip to main content

A collection of camera raw processing algorithms.

Project description

rawpipe

CI

A collection of reference ISP algorithms, sufficient for producing a reasonably good looking image from raw sensor data. Each algorithm takes in a frame in RGB or raw format and returns a modified copy of the frame. The frame is expected to be a NumPy float array with either 2 or 3 dimensions, depending on the function. Some of the algorithms can be applied in different orders (demosaicing before or after linearization, for example), but the reference ordering is as shown below.

Example:

import rawpipe
...
raw = rawpipe.linearize(raw, blacklevel=64, whitelevel=1023)
rgb = rawpipe.wb(rgb, [1.5, 2.0], "RGGB")
rgb = rawpipe.demosaic(raw, "RGGB", downsample=True)
rgb = rawpipe.downsample(rgb, iterations=1)
rgb = rawpipe.lsc(rgb, my_vignetting_map)
rgb = rawpipe.lsc(rgb, my_color_shading_map)
rgb = rawpipe.ccm(rgb, my_3x3_color_matrix)
rgb = rawpipe.resize(rgb, 400, 300)
rgb = rawpipe.gamut(rgb, "ACES")
rgb = rawpipe.tonemap(rgb, "Reinhard")
rgb = rawpipe.chroma_denoise(rgb)
rgb = rawpipe.saturate(rgb, lambda x: x ** 0.75)
rgb = rawpipe.gamma(rgb, "sRGB")
rgb = rawpipe.quantize8(rgb)

Installing on Linux:

pip install rawpipe

Installing development dependencies:

uv sync --extra dev

Documentation:

pydoc rawpipe

Building & installing from source:

make install

Running tests locally:

uv run pytest

Building distributions locally:

uv build

Releasing to PyPI:

Publishing is handled by GitHub Actions with PyPI Trusted Publishing.

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

rawpipe-0.19.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

rawpipe-0.19.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file rawpipe-0.19.1.tar.gz.

File metadata

  • Download URL: rawpipe-0.19.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rawpipe-0.19.1.tar.gz
Algorithm Hash digest
SHA256 0a72cd378127c98d224eb4d69259584d1045367d66c34068e1cf32b375403cdb
MD5 d1e9296f2ec5745d6134e3e3b7acd225
BLAKE2b-256 702a272a5006a503a6b8805ddb2838e27abe46f76e4b6fa946496a43e848b3e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawpipe-0.19.1.tar.gz:

Publisher: publish.yml on toaarnio/rawpipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rawpipe-0.19.1-py3-none-any.whl.

File metadata

  • Download URL: rawpipe-0.19.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rawpipe-0.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f64560d8c9aa78d26d09c72470fd48234eec8b32ee530d8ad0ebe0a1f4b5df83
MD5 1b3788f938027fb4eb1964a25881c62b
BLAKE2b-256 a2365af9959986ae5168240ff29e20517abdbef51a477ed58e094ed192a3dc5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawpipe-0.19.1-py3-none-any.whl:

Publisher: publish.yml on toaarnio/rawpipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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