stroke op• 数据种类:image2d → pairs
• 调用: import fullseye as fs; fs.ledger.stipple_points_from_image(image, n_points, iterations=30, gamma=1.0, floor=0.02, seed=0, metric='euclidean')(要直接调用实现,import printpath; printpath.stipple_points_from_image(image, n_points, iterations=30, gamma=1.0, floor=0.02, seed=0, metric='euclidean');从台账取用则 opsprintpath.get("stipple_points_from_image"))
> 该算子的说明尚无译文,以下照原文给出。
濃淡を点の密度に写す(重みつき Lloyd = 重心ボロノイ)。→ `pairs`
暗いところに点が密に集まる。返るのは `(n_points, 2)` の (row, col)。
引数:
image: 明るさ `[0, 1]` の 2-D(または色。輝度に落とす)。
n_points: 点の数。
iterations: Lloyd の反復回数。
gamma: 重みを `darkness ** gamma` にする(1 = 暗さそのまま)。
floor: 重みの下限。0 にしない —— 真っ白な領域の重みが厳密に 0 だと
そこへ入った点が動けず(重心が 0/0)、位置が入力に依らなくなる。
seed: 初期配置の乱数。
metric: いまは `"euclidean"` のみ。
返り値のほかに、収束の様子は :func:stipple_points_from_image を
`iterations` を変えて呼び比べれば測れる(Lloyd のエネルギーは単調減少する)。
★真っ白な画像でも点は等間隔に散る(密度が一定なら重心ボロノイは均等)。
そこが「濃淡を読めている」ことの対照群になる。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者・年份)与用途见上面的族使用指南。
• poc_one_stroke_epicycles — py -3.11 examples/poc_one_stroke_epicycles.py
pairs 作为输入)stipple_energy · stroke_tour_closed · mst_length · stroke_resample_closed · stroke_tone_error · mosaic_tiles_render
stroke)stipple_energy · stroke_tour_closed · mst_length · stroke_resample_closed · stroke_tone_error
*Provenance: printpath.py — PRINTPATH 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.