colorspace oprgbimage → labimport fullseye as fs; fs.ledger.rgb_to_lab(rgb, white=(0.95047, 1.0, 1.08883)) (実装を直接呼ぶなら import imgmetrics; imgmetrics.rgb_to_lab(rgb, white=(0.95047, 1.0, 1.08883))、台帳から引くなら opsimgmetrics.get("rgb_to_lab"))sRGB → CIE L*a*b*(D65)。ΔE を測る前段。
xyz_to_lab(rgb_to_xyz(rgb), white) の合成。検証と失敗条件はその 2 つに従う:
rgb: 最後の軸が 3。整数 dtype は dtype の最大値で [0, 1] に正規化、
float は [0, 1] に収まっていることを要求(外れると MetricContractError)。
線形 RGB ではなく ガンマ付きの sRGB を渡すこと。white: Lab の白色点。sRGB の行列は D65 固定なので、通常は既定のまま。L は [0, 100]、白 (1, 1, 1) で
(100, 0, 0) 付近。画像 2 枚の色差なら delta_e_map が変換から色差まで一度にやる。
lab_to_rgb で戻せるが、色域外は切り詰められる。
py -3.11 examples/image_quality_metrics.pypy -3.11 examples/poc_colormap_readability.pypy -3.11 examples/poc_leaf_disease_area.pypy -3.11 examples/poc_solder_fillet_aoi.pylab を入力に取れる)lab_to_rgb · delta_e_2000 · delta_e_76
colorspace)lab_to_rgb · rgb_to_xyz · xyz_to_lab
Provenance: imgmetrics.py — IMGMETRICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.