inner_box3 — 3D regionprops op

Data kinds: voxelprimitive

Call: import fullseye as fs; fs.ledger.inner_box3(vol) -> 'dict' (to call the implementation directly, import regionprops3d; regionprops3d.inner_box3(vol) -> 'dict'; from the registry, ops3d.get("inner_box3"))

Usage

The largest axis-aligned box fully inscribed in a binary voxel region (the 3-D counterpart of the 2-D `inner_rectangle1`).

> The detailed description below is the original text — the summary and the headings are translated.

3-D 版)。

厳密解: どの深さ区間 [z0, z1] についても、ボックスはスライス z0..z1 の 論理積

(全スライスで前景のボクセル)の内側に無ければならない。その積の中の最大内接 2-D 長方形

(ヒストグラム法 = `inner_rectangle1` と同じコア)× 区間長 が候補ボックスで、全区間に

ついての最大が厳密な最大内接ボックスになる。O(D^2 * H * W)。

Returns

-------

dict

(depth,row,col) 軸順で `min / max 隅、center (+ cd/cr/cc`)、

全幅 `size、ボクセル数の volume`。

Raises

------

ValueError

非 3-D 入力、または前景ゼロの領域(内接ボックス無し)。

補足:

• `min / max は **両端を含む** ボクセル添字(float 配列)。size = max - min + 1volume = prod(size)center(min + max) / 2 で .5 が付き得る。2-D 側の登録名は r2_inner_rectangle1`。

• 深さ区間ごとに Python ループで最大長方形を探す O(D²·H·W)。積が空になった時点でその z0 の探索は打ち切る。大きなボリュームでは遅い。

• 同体積の候補が複数あるときは先に見つかったもの(z0 が小さく、その中で z1 が小さい)を返す。

• 入力は 0 以外を前景として bool 化する(NaN も前景)。軸順は (depth, row, col)。

• 典型: `largest_component` で対象を 1 つに絞ってから呼ぶ(複数成分が混ざると最大成分のボックスとは限らない)。

Background guides (the physics and conventions behind this op)

measurement_uncertainty — 計測の不確かさと校正の知識 — 「測れている」を主張するために

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

inner_box_inspectionpy -3.11 examples_3d/inner_box_inspection.py

Ops the type connects to (they accept primitive as 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

Same category (regionprops)

label_components · region_props · largest_component · filter_by_volume · vol_label · vol_region_props


*Provenance: regionprops3d.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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