post op• Data kinds: rgb → rgb
• Call: import fullseye as fs; fs.ledger.palette_quantize(rgb, colors=None, scheme='okabe_ito') (implementation को सीधे call करना हो तो import gfx2d; gfx2d.palette_quantize(rgb, colors=None, scheme='okabe_ito'), registry से लेना हो तो opsgfx2d.get("palette_quantize"))
हर pixel को Euclidean RGB में सबसे निकट palette रंग पर map करता है।
> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।
colors is an (K, 3) array or a list of palette role names; the default is the whole Okabe–Ito set plus black and white, so the result stays legible under a colour vision deficiency.
The search is exhaustive, so the assignment is optimal for this metric and each pixel's error equals its distance to the nearest palette entry — there is no approximation to bound. The suite checks optimality by brute force and checks that an image whose colours already lie in the palette comes back unchanged, bit for bit.
Euclidean distance in (possibly sRGB-encoded) RGB is not perceptual distance. That is a documented choice, not an oversight: a perceptual metric needs a colour-appearance model this module does not own, and quantising in an unstated space would be worse than quantising in a stated one.
• 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 में दिए गए हैं।
• gfx2d_scene — py -3.11 examples/gfx2d_scene.py
rgb को input के रूप में लेते हैं)srgb_to_linear · linear_to_srgb · blend_mode · light_mask · normal_map_decode · bloom · vignette · chromatic_aberration
post)bloom · vignette · chromatic_aberration · film_grain · color_lut · color_grade · dither
*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.