npr opimage2d × pairs → image2dimport fullseye as fs; fs.ledger.mosaic_tiles_render(image, sites) (実装を直接呼ぶなら import printpath; printpath.mosaic_tiles_render(image, sites)、台帳から引くなら opsprintpath.get("mosaic_tiles_render"))Paint each Voronoi cell with the mean of the pixels it owns.
★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.
py -3.11 examples/poc_beats_fringes_and_screens.pyimage2d を入力に取れる)stipple_points_from_image · stipple_energy · stroke_tone_error · halftone_screen · engrave_lines · hatch_field · mosaic_tiles_sites · print_layer_defect_map
npr)halftone_screen · halftone_moire_period · engrave_lines · hatch_field · mosaic_tiles_sites
Provenance: printpath.py — PRINTPATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.