Skip to main content

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.

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.3.tar.gz (9.3 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.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rawpipe-0.19.3.tar.gz
  • Upload date:
  • Size: 9.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rawpipe-0.19.3.tar.gz
Algorithm Hash digest
SHA256 733d899e2c9a09e1e81fd95c28c6e19642d8749a90058aeada206d2f6542b13f
MD5 92b260bd71dbc1fda5484e71dc1ece21
BLAKE2b-256 071a16fdfbe547ea6a5b13e7bcd45471dc753f8855e1b451642024b57b781cc5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rawpipe-0.19.3-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rawpipe-0.19.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d32b52bdea96c52d42e5b3a2486e520b235c1a3f9b5023f6489b1af5636e8b5
MD5 a8d844c5ecfad7779e6e7d4bb38e8763
BLAKE2b-256 cb83602a01afa994c4655b052f89a951cec3306155e17cbc0cab4274c0d9a6a3

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.19.3 This release

2 files

0.19.2

2 files

0.19.1

2 files

0.19.0

2 files

0.18.0

2 files

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.10

2 files

0.9.9

2 files

0.9.7

2 files

0.9.6

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page