mosaic_tiles_render — PRINTPATH npr op

• Data kinds: image2d × pairs → image2d

• Call: import fullseye as fs; fs.ledger.mosaic_tiles_render(image, sites) (implementation को सीधे call करना हो तो import printpath; printpath.mosaic_tiles_render(image, sites), registry से लेना हो तो opsprintpath.get("mosaic_tiles_render"))

उपयोग

हर Voronoi cell को उसके अपने pixel के mean से रंगता है।

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

★Why the mean and not something prettier: for a fixed partition the mean is the L2-optimal constant — no other value lowers the squared error inside the cell. The tile colour is therefore a solution, not a taste, and any alternative can be *shown* to be worse by evaluating the same sum.

Returns an image2d: the mosaic.

Raises ValueError: sites not (N, 2) with N >= 1; sites outside the image; a non-finite or oversized image.

Limits: cells are convex polygons, so this does not imitate the irregular tesserae of real mosaic and never runs a single tile along an edge the way a mosaicist would.

उपयोग की विस्तृत guide

• printpath family guide

संदर्भ (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 करते हैं)

• poc_beats_fringes_and_screens — py -3.11 examples/poc_beats_fringes_and_screens.py

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

stipple_points_from_image · stipple_energy · stroke_tone_error · halftone_screen · engrave_lines · hatch_field · mosaic_tiles_sites · print_layer_defect_map

इसी category के (npr)

halftone_screen · halftone_moire_period · engrave_lines · hatch_field · mosaic_tiles_sites


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

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