mosaic_tiles_render — PRINTPATH npr op

• Datenarten: image2d × pairs → image2d

• Aufruf: import fullseye as fs; fs.ledger.mosaic_tiles_render(image, sites) (die Implementierung direkt: import printpath; printpath.mosaic_tiles_render(image, sites); aus dem Register: opsprintpath.get("mosaic_tiles_render"))

Verwendung

Färbt jede Voronoi-Zelle mit dem Mittelwert der ihr gehörenden Pixel.

> Die ausführliche Beschreibung unten ist der Originaltext — Zusammenfassung und Überschriften sind übersetzt.

★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.

Ausführlicher Anwendungsleitfaden

• Leitfaden zur Familie printpath

Referenzen (Beispieldaten, Literatur)

• Katalog der Beispieldaten (Download-URLs / Lizenzen) — 2-D nutzt skimage.data (BSD/Public Domain) plus synthetische Bilder, 3-D nennt Download-URLs echter Datenquellen (Stanford, PDS, …).

• Herkunft und Literatur der Operatoren — die Quellen der Forschung/Verfahren, auf denen diese Operatorfamilie beruht.

• Der kanonische Algorithmus (Autor, Jahr) und seine Anwendungen stehen im Familienleitfaden oben.

Ausführbare Beispiele (verifizierte Samples, die diesen Operator wirklich aufrufen)

• poc_beats_fringes_and_screens — py -3.11 examples/poc_beats_fringes_and_screens.py

Typkompatible Folge-Operatoren (nehmen image2d als Eingabe)

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

Gleiche Kategorie (npr)

halftone_screen · halftone_moire_period · engrave_lines · hatch_field · mosaic_tiles_sites


*Provenance: printpath.py — PRINTPATH Operator-Registry. Diese Notiz wird von tools/opdocs.py md erzeugt (nicht von Hand bearbeiten).*

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