stroke_resample_closed — PRINTPATH stroke op

• 数据种类:pairs → pairs

• 调用: import fullseye as fs; fs.ledger.stroke_resample_closed(points, n_points, allow_shortening=False)(要直接调用实现,import printpath; printpath.stroke_resample_closed(points, n_points, allow_shortening=False);从台账取用则 opsprintpath.get("stroke_resample_closed"))

用法

> 该算子的说明尚无译文,以下照原文给出。

閉じた線を等弧長に打ち直す。→ `pairs`

フーリエへ渡す前段。★媒介変数の取り方で係数が変わる(実測で最大 47 倍)ので、

ここは弧長で等間隔と明示する。弧長の間隔は機械精度で一定(実測 cv 1e-14)。

★ただし打ち直すと線は短くなる: 標本と標本を結ぶのは弦なので、折れ点で角を

切る。実測(300 頂点の巡回路): 標本 4000 で長さ 99.1 %、1024 で 96.9 %、

300(頂点と同数)で 89.3 %、100 で 72.8 %、50 で 57.7 %。長さが変われば

濃淡の再現も壊れるので、入力の頂点数より少ない標本は既定で拒否する

(意図してならば `allow_shortening=True`)。

详细使用指南

• printpath 族使用指南

参考(示例数据・文献)

• 示例数据目录(下载 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_tone_error · mosaic_tiles_render

同类别(stroke)

stipple_points_from_image · stipple_energy · stroke_tour_closed · mst_length · stroke_tone_error


*Provenance: printpath.py — PRINTPATH 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

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