vol_boundary_points — 3D boundary op

数据种类:voxelpoints

调用: import fullseye as fs; fs.ledger.vol_boundary_points(vol_binary, spacing=None, connectivity=6, origin=(0, 0, 0))(要直接调用实现,import volops; volops.vol_boundary_points(vol_binary, spacing=None, connectivity=6, origin=(0, 0, 0));从台账取用则 ops3d.get("vol_boundary_points"))

用法

把边界壳作为 `(z, y, x) 顺序的 (N, 3)` 点云。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

The bridge from the voxel world to the point-cloud world at minimal memory:

only the *surface* voxels of the mask become points (inner boundary, see

:func:vol_boundary), so a solid object of a million voxels typically

yields a few tens of thousands of points — ready for `fit_sphere3` /

`smallest_box3 / register_fpfh` and friends without ever materialising

the full grid as points.

Coordinates are `(index + origin) * spacing` per axis: pass *spacing*

`(sz, sy, sx) (or a :class:volio.VolumeMeta`) for physical millimetre

coordinates, and pass the offset returned by :func:vol_crop_domain as

*origin* so points from a cropped volume land in the uncropped frame

(*origin* is in voxel units — it is added to the index *before* the

spacing multiply; it must be finite, and may be fractional for a subvoxel

shift). An empty mask returns an empty `(0, 3)` array (a valid question

with a valid empty answer — unlike a crop, which needs a box to exist).

Returns an `(N, 3)` float64 array, rows ordered z-major (deterministic).

参考(示例数据・文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

可运行的示例(实际调用该算子并已验证的样例)

roi_domain_boundarypy -3.11 examples_3d/roi_domain_boundary.py

类型可衔接的下一个算子(可接受 points 作为输入)

points_to_voxel · gaussians_to_voxel · estimate_point_normals · to_points · match_points_ncc · match_pca · moment_axes · icp_point2point_3d

同类别(boundary)

vol_boundary


*Provenance: volops.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.