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.