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.