curve op• 資料種類:points → measurement
• 呼叫: import fullseye as fs; fs.ledger.arc_length(curve)(要直接呼叫實作,import curve3d; curve3d.arc_length(curve);從台帳取用則 ops3d.get("arc_length"))
• 經台帳呼叫的回傳值: fullseye.ledger.arc_length(...) 只回傳宣告的 out 型別 measurement 的值(底層函式還會回傳輔助資訊)。需要被捨棄的部分時,請用 fullseye.ledger.arc_length.raw(...),或直接呼叫 curve3d.arc_length。
• 底層回傳: (cumulative, total) → 全長 float
曲線的累積弧長與總長。→ (cumulative (N,), total float)。
將有序點列 curve (N,3) 依 index 順序視為折線,對相鄰點間的歐幾里得距離進行累加。cumulative[0]=0,cumulative[i] = 從開頭到第 i 個點的折線長度, total = cumulative[-1]。單位與座標相同。
• 輸入僅轉換為 float,沒有形狀檢驗(行數不是 3 時計算也會通過)。
• N=1 時 cumulative=[0.0]、total=0.0。即使是封閉曲線也不計算終點→起點的區間(需要封閉時,先把首點複製到末尾再傳入)。
• 重複點(距離為 0 的區間)直接以 0 累加,因此 cumulative 單調不減但不是嚴格遞增。
resample_uniform 以此累積弧長為參數進行線性內插。曲率的弧長積分等與 curvature_torsion 組合時所用的 ds 取自這些差分。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• space_curve — py -3.11 examples_3d/space_curve.py
• torus_knot_curve — py -3.11 examples_3d/torus_knot_curve.py
measurement 作為輸入)vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle
curve)curvature_torsion · frenet_frame · resample_uniform · fit_spline_curve
*Provenance: curve3d.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.