fullseye

vol_select_labels — VOLCOLOR select op

使い方

3-D の特徴で成分をふるいにかける(2-D のブロブ選別の 3-D 版)。

(labels_out, kept_ids) を返す。落ちた成分のボクセルは 0(背景)になる。

props は :func:vol_label_shape_stats か :func:volops.vol_region_props の 返り値。None なら :func:vol_label_shape_stats をその場で呼ぶ。

条件(すべて省略可・与えたものは AND):min_volume max_volume min_voxels max_voxels min_sphericity max_sphericity min_elongation max_elongation min_isotropy max_isotropy min_equivalent_diameter max_equivalent_diameter。加えて exclude_border=Trueボリューム端に接する成分を落とす(CT の視野で 切れている粒子を計測から外す標準手順)、keep=[...] で残す id を直接指定。

必要なキーが props に無ければ ValueError。たとえば min_sphericity を :func:vol_label_shape_stats の結果に対して指定すると、sphericity は そちらが出さない量なので拒否する ―― 欠けたキーを既定値で埋めると「条件を 書いたのに一件も落ちない」フィルタが黙って出来上がる。

relabel:

Returns (labels_out int32 (D, H, W), kept_ids np.ndarray int64). Raises ValueError for an unknown criterion, a criterion whose key is absent from props, a props that does not cover the labels present, or a keep containing a label that is not in the volume.

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(labels を入力に取れる)

vol_colorize_labels · vol_label_overlay · vol_label_shape_stats · vol_label_legend · vol_labels_to_meshes · vol_label_volume_render

同カテゴリ(select)


Provenance: volcolor.py — VOLCOLOR operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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