blob_select — BLOB select op

Data kinds: labels2dlabels2d

Call: import blob2d; blob2d.blob_select(labels: 'Any', feature: 'str', vmin: 'Optional[float]' = None, vmax: 'Optional[float]' = None, spacing: 'float' = 1.0) -> 'np.ndarray' (or opsblob.get("blob_select"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

特徴量が `[vmin, vmax]` に入る物体だけ残す(番号は 1 から振り直す)。

Parameters

----------

labels : array_like

:func:blob_label の出力。

feature : str

:data:FEATURE_KEYS のどれか。知らない鍵は候補を並べて拒否する

vmin, vmax : float or None

両端(含む)。`None は片側を開ける。両方 None` は

「何も選んでいない」ので拒否する —— 全部通す意図なら呼ばなければよい。

spacing : float

:func:blob_features と同じ意味。`areaperimeter` を

物理単位で切るときに要る。

Returns

-------

numpy.ndarray

`int32` のラベル画像。残った物体は 1..k の連番になる

(元の番号は残さない)。元の番号が要るなら

`blob_features(labels)["label"]` を先に取っておくこと。

Detailed usage guide

blob_analysis family guide

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.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

poc_particle_sizingpy -3.11 examples/poc_particle_sizing.py

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

blob_features · blob_select_largest · blob_split · blob_region · blob_boundaries · blob_overlay

Same category (select)

blob_select_largest


*Provenance: blob2d.py — BLOB 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.