srgb_to_linear — GFX2D colorspace op

• Data kinds: rgb → rgb

• Call: import fullseye as fs; fs.ledger.srgb_to_linear(img) (implementation को सीधे call करना हो तो import gfx2d; gfx2d.srgb_to_linear(img), registry से लेना हो तो opsgfx2d.get("srgb_to_linear"))

उपयोग

sRGB-encoded मान से linear light (IEC 61966-2-1)।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

An alpha channel, if present, is not transformed — coverage is already linear. Accepts (H, W), (H, W, 1|3|4).

Use this before anything that adds or scales light (radial_light, light_mask, normal_map_shade, bloom) if the input came out of an image file. Skipping it does not raise: it makes highlights bloom too early and shadows too dark, by the amount quoted in the module docstring.

संदर्भ (sample data, साहित्य)

• 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 में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• gfx2d_scene — py -3.11 examples/gfx2d_scene.py

• poc_leaf_disease_area — py -3.11 examples/poc_leaf_disease_area.py

वे अगले ops जिनसे type जुड़ता है (rgb को input के रूप में लेते हैं)

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

इसी category के (colorspace)

linear_to_srgb


*Provenance: gfx2d.py — GFX2D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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