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.