blob_label — BLOB connect op

• Data kinds: mask → labels2d

• Call: import fullseye as fs; fs.ledger.blob_label(region: 'Any', connectivity: 'int' = 8) -> 'np.ndarray' (to call the implementation directly, import blob2d; blob2d.blob_label(region: 'Any', connectivity: 'int' = 8) -> 'np.ndarray'; from the registry, opsblob.get("blob_label"))

Usage

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

二値領域を連結成分に分け、`int32` のラベル画像(背景 0、物体 1..n)を返す。

Parameters

----------

region : array_like

2-D。`> 0` が前景(bool でも実数でもよい。NaN は背景)。

connectivity : {4, 8}

斜めに触れる 2 画素をつなぐか。既定 8 は `ndimage.label` と

HALCON `connection` の既定に一致する。**4 にすると斜めに接した塊が

別々に数えられる**。

Returns

-------

numpy.ndarray

`(H, W) の int32`。番号は 1 から連番で歯抜けが無い。

Examples

--------

>>> import numpy as np

>>> m = np.zeros((6, 9), bool); m[1:4, 1:4] = True; m[1:4, 5:8] = True

>>> int(blob_label(m).max())

2

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)

• blob_split_tour — py -3.11 examples/blob_split_tour.py

• poc_bone_trabecular_thickness — py -3.11 examples/poc_bone_trabecular_thickness.py

• poc_bump_coplanarity — py -3.11 examples/poc_bump_coplanarity.py

• poc_fresco_craquelure — py -3.11 examples/poc_fresco_craquelure.py

• poc_gear_tooth_metrology — py -3.11 examples/poc_gear_tooth_metrology.py

• poc_gravitational_lens_invariants — py -3.11 examples/poc_gravitational_lens_invariants.py

• poc_leaf_disease_area — py -3.11 examples/poc_leaf_disease_area.py

• poc_machine_condition_fusion — py -3.11 examples/poc_machine_condition_fusion.py

• poc_metal_grain_size — py -3.11 examples/poc_metal_grain_size.py

• poc_nuclei_ploidy — py -3.11 examples/poc_nuclei_ploidy.py

• poc_particle_sizing — py -3.11 examples/poc_particle_sizing.py

• poc_particle_tracking — py -3.11 examples/poc_particle_tracking.py

• poc_pipe_wall_loss — py -3.11 examples/poc_pipe_wall_loss.py

• poc_print_warpage_risk — py -3.11 examples/poc_print_warpage_risk.py

• poc_pv_thermal_survey — py -3.11 examples/poc_pv_thermal_survey.py

• poc_real_coin_metrology — py -3.11 examples/poc_real_coin_metrology.py

• poc_rotation_invariance_audit — py -3.11 examples/poc_rotation_invariance_audit.py

• poc_sea_ice_concentration — py -3.11 examples/poc_sea_ice_concentration.py

• poc_solar_el_inspection — py -3.11 examples/poc_solar_el_inspection.py

• poc_solder_fillet_aoi — py -3.11 examples/poc_solder_fillet_aoi.py

• poc_timelapse_growth — py -3.11 examples/poc_timelapse_growth.py

• poc_traffic_counting — py -3.11 examples/poc_traffic_counting.py

• poc_vessel_network — py -3.11 examples/poc_vessel_network.py

• poc_weld_radiograph_porosity — py -3.11 examples/poc_weld_radiograph_porosity.py

• poc_wound_area_tracking — py -3.11 examples/poc_wound_area_tracking.py

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

blob_features · blob_select · blob_select_largest · blob_split · blob_region · blob_boundaries · blob_overlay

Same category (connect)

—


*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.