colorspace op• Data kinds: lab → rgbimage
• Call: import fullseye as fs; fs.ledger.lab_to_rgb(lab, white=(0.95047, 1.0, 1.08883)) (implementation को सीधे call करना हो तो import imgmetrics; imgmetrics.lab_to_rgb(lab, white=(0.95047, 1.0, 1.08883)), registry से लेना हो तो opsimgmetrics.get("lab_to_rgb"))
CIE L*a*b* → sRGB [0, 1]। gamut से बाहर के रंग clip हो जाते हैं, इसलिए rgb_to_lab के साथ round trip केवल gamut के अंदर मेल खाता है (test से तय)।
प्रक्रिया: fy = (L + 16) / 116, fx = fy + a / 500, fz = fy - b / 200 को xyz_to_lab के inverse function से XYZ में वापस लाया जाता है (white से गुणा), फिर XYZ→linear RGB का inverse matrix लगाया जाता है और उसके बाद sRGB transfer function। transfer function से पहले linear RGB को [0, 1] में चुपचाप clip किया जाता है -- "gamut से बाहर के रंग काटे जाते हैं" का असली रूप यही है, और कोई exception नहीं आता।
• lab: कोई भी shape जिसकी आख़िरी axis 3 हो।
• white: वही white point दें जो rgb_to_lab में इस्तेमाल हुआ था (जाँच नहीं होती)।
• return value: input जैसे ही shape का float64, [0, 1] range का gamma वाला sRGB। 8 bit के लिए caller 255 से गुणा करके round करे।
• विफलता (MetricContractError): आख़िरी axis 3 नहीं है।
• image_difference_metrics family guide
• colorimetry — Colorimetry और spectra — रंग केवल spectrum × illuminant × observer से तय होता है
• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।
• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।
• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।
• image_quality_metrics — py -3.11 examples/image_quality_metrics.py
rgbimage को input के रूप में लेते हैं)rgb_to_lab · rgb_to_xyz · delta_e_map · luma_limited_u8 · rank_data · tid2013_index · fsimc · fsim_pair
colorspace)rgb_to_lab · rgb_to_xyz · xyz_to_lab
*Provenance: imgmetrics.py — IMGMETRICS operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.