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.2.tar.gz (8.6 MB 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.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rawpipe-0.19.2.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rawpipe-0.19.2.tar.gz
Algorithm Hash digest
SHA256 d86fa743a2c6b1bd20e4d7dba06dfb722b4bf8d2634a2b0362b51e3c53ef062d
MD5 bba771a17e5c6bb39b3a6fb5b263d35f
BLAKE2b-256 3fd9befde42463134fd6c770144f6205a67f75406741d534860fbdeffa50fb4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawpipe-0.19.2.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.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rawpipe-0.19.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdcdc2e00437d50b56c0ef581fadc248fa245f38e5668332d3b9aafe64f1f2ff
MD5 f70284dc0f9eb4ce8887f39b4316fabf
BLAKE2b-256 db31591f04222e888964d42bee9af051e9e00cebb787c100ba7d41609bebe93b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawpipe-0.19.2-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