vol_bounding_box — 3D domain op

数据种类:voxelprimitive

调用: import fullseye as fs; fs.ledger.vol_bounding_box(domain, margin=0)(要直接调用实现,import volops; volops.vol_bounding_box(domain, margin=0);从台账取用则 ops3d.get("vol_bounding_box"))

用法

掩码前景的紧致轴对齐包围盒,以体素索引给出。

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

Returns `(z0, y0, x0, z1, y1, x1)` with exclusive upper bounds, i.e.

`vol[z0:z1, y0:y1, x0:x1]` is the smallest sub-volume containing every

foreground voxel. *margin* (an int `>= 0`) grows the box by that many

voxels per side, clipped to the volume — headroom for operators with a

spatial footprint (a Gaussian of sigma s needs ~`3*s` voxels of context).

A non-`{0, 1} input is thresholded at > 0.5`.

An empty mask raises `ValueError` (fail-closed): there is no box, and

silently returning the full volume would defeat the point of cropping.

参考(示例数据・文献)

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

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

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

rle_region_efficiencypy -3.11 examples_3d/rle_region_efficiency.py

roi_domain_boundarypy -3.11 examples_3d/roi_domain_boundary.py

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

fuse_to_voxel · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line · distance_line_line · distance_segment_segment

同类别(domain)

vol_reduce_domain · vol_crop_domain · vol_uncrop · vol_tiled_map


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

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