fullseye

hue_saturation — GFX2D isp op

使い方

Rotate the hue by hue_deg and scale the saturation by saturation, in BT.601 YCbCr: luma is kept, the chroma vector (Cb, Cr) is rotated and scaled. Output clipped to [0, 1].

Ground truth: hue_deg=0, saturation=1 is the identity to 1e-15; rotating by +t then -t returns the input; saturation=0 gives a grey image whose value is the BT.601 luma of the input. A hue rotation is not a channel permutation (120 degrees does not swap R->G->B exactly), because the RGB cube is not a cylinder around the grey axis — said here so nobody tests for it. Raises ValueError: non-finite hue_deg, or saturation < 0.

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

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

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

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

同カテゴリ(isp)

raw_black_level · raw_dead_pixel_mask · raw_dead_pixel_correct · lens_shading_gain · lens_shading_correct · awb_gains · rgb_apply_gains · raw_apply_gains


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

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