vol_bounding_box — 3D domain op

• Data kinds: voxel → primitive

• Call: import fullseye as fs; fs.ledger.vol_bounding_box(domain, margin=0) (implementation को सीधे call करना हो तो import volops; volops.vol_bounding_box(domain, margin=0), registry से लेना हो तो ops3d.get("vol_bounding_box"))

उपयोग

mask के foreground का tight axis-aligned bounding box, voxel indices में।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

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.

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• rle_region_efficiency — py -3.11 examples_3d/rle_region_efficiency.py

• roi_domain_boundary — py -3.11 examples_3d/roi_domain_boundary.py

वे अगले ops जिनसे type जुड़ता है (primitive को input के रूप में लेते हैं)

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

इसी category के (domain)

vol_reduce_domain · vol_crop_domain · vol_uncrop · vol_tiled_map


*Provenance: volops.py — 3D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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