fullseye

mosaic_tiles_render — PRINTPATH npr op

使い方

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.

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(image2d を入力に取れる)

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.