probe op• 資料種類:voxel → pairs
• 呼叫: import fullseye as fs; fs.ledger.vol_profile_line(vol, p0, p1, n=None, spacing=None, order=1)(要直接呼叫實作,import volprobe; volprobe.vol_profile_line(vol, p0, p1, n=None, spacing=None, order=1);從台帳取用則 ops3d.get("vol_profile_line"))
• 經台帳呼叫的回傳值: fullseye.ledger.vol_profile_line(...) 只回傳**宣告的 out 型別 pairs 的值**(底層函式還會回傳輔助資訊)。需要被捨棄的部分時,請用 fullseye.ledger.vol_profile_line.raw(...),或直接呼叫 volprobe.vol_profile_line。
沿直線探針 `p0 -> p1` 的灰階剖面。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
The segment between the two `(z, y, x)` voxel-space points (fractional
coordinates allowed) is sampled at `n` evenly-spaced positions with
spline interpolation of the given `order (scipy.ndimage.map_coordinates`;
1 = trilinear, the default). `n` defaults to one sample per unit of
*index-space* length (~1 voxel-step resolution regardless of spacing).
Parameters
----------
vol : (D, H, W) array — the volume (float64, finite; fail-closed otherwise).
p0, p1 : (z, y, x) — probe start / end, inside the volume on every axis.
n : int, optional — sample count (>= 2). Default `ceil(index_length) + 1`.
spacing : (sz, sy, sx) or volio.VolumeMeta, optional — voxel size in mm.
order : int in [0, 5] — interpolation spline order (1 = trilinear).
Returns
-------
(t_mm, values) : two float64 arrays of length `n. t_mm[i]` is the
*physical* distance of sample `i from p0` — the cumulative Euclidean
norm of the differences of the physical sample coordinates
(`index * spacing`), exact under anisotropic spacing; in plain voxel
units when `spacing is None. values[i]` is the interpolated gray
value.
Raises `ValueError` on a malformed volume, an endpoint outside the
volume, coincident endpoints (`p0 == p1: no probe direction), n < 2`
or an invalid `order / spacing`.
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• wall_thickness_probe — py -3.11 examples_3d/wall_thickness_probe.py
pairs 作為輸入)probe)vol_edge_probe · vol_wall_thickness
*Provenance: volprobe.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.