largest_component — 3D regionprops op

Data kinds: voxelvoxel

Call: import fullseye as fs; fs.ledger.largest_component(vol, connectivity: 'int' = 26) -> 'np.ndarray' (to call the implementation directly, import regionprops3d; regionprops3d.largest_component(vol, connectivity: 'int' = 26) -> 'np.ndarray'; from the registry, ops3d.get("largest_component"))

Usage

Return the bool mask of the largest (most voxels) connected component.

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

前景が無い場合は全 False マスク(vol と同形状)。

補足:

• 内部で `label_components を呼び、bincount` でラベルごとのボクセル数を数えて最大を選ぶ。同数のときは番号の小さいラベル(scipy の走査順で先)が勝つ。

• 入力は 0 以外を前景として `bool` 化する(NaN も前景)。軸順は (z, y, x)。

• 返り値は入力と同形状の bool。前景が無ければ全 False(例外にはしない)。

• Raises `ValueError: 3 次元でない入力、connectivity` が 6/18/26 以外。

• 典型: 閾値処理で出た二値ボリュームからノイズ塊を捨てて主対象だけ残す。複数を残したいなら `filter_by_volume、特徴で選ぶなら vol_select_labels`。

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)

region_props_3dpy -3.11 examples_3d/region_props_3d.py

Ops the type connects to (they accept voxel as input)

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

Same category (regionprops)

label_components · region_props · filter_by_volume · inner_box3 · 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.