chromatic_aberration — GFX2D post op

データ種: rgbrgb

呼び出し: import gfx2d; gfx2d.chromatic_aberration(rgb, strength=0.003, interp='bilinear') (または opsgfx2d.get("chromatic_aberration"))

使い方

Scale the red and blue channels about the image centre, green fixed.

Lateral chromatic aberration: red is magnified by `1 + strength`, blue by

`1 - strength. strength=0` samples the exact pixel centres and returns

the input to within 1e-15, which the suite checks.

Negative `strength` swaps which channel spreads outward — allowed, since

which way a real lens disperses depends on the glass.

参考(サンプルデータ・文献)

• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。

• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。

• アルゴリズムの正典(著者・年)と用途は上記ファミリ使い方ガイドに記載。

実行できる例(この op を実際に呼ぶ検証済みサンプル)

gfx2d_scenepy -3.11 examples/gfx2d_scene.py

型が繋がる次の op(rgb を入力に取れる)

srgb_to_linear · linear_to_srgb · blend_mode · light_mask · normal_map_decode · bloom · vignette · film_grain

同カテゴリ(post)

bloom · vignette · film_grain · color_lut · color_grade · dither · palette_quantize


*Provenance: gfx2d.py — GFX2D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.