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' (implementation को सीधे call करना हो तो import blob2d; blob2d.blob_label(region: 'Any', connectivity: 'int' = 8) -> 'np.ndarray', registry से लेना हो तो opsblob.get("blob_label"))

उपयोग

binary region को connected component में बाँटकर int32 label image (background 0, object 1..n) लौटाता है।

Parameters

region : array_like

2-D। > 0 foreground है (bool या real दोनों चलेंगे। NaN background है)।

connectivity : {4, 8}

तिरछे छूने वाले 2 pixels को जोड़ना है या नहीं। default 8 ndimage.label और

HALCON connection के default से मेल खाता है। 4 करने पर तिरछे छूने वाले blobs अलग-अलग गिने जाते हैं ।

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

उपयोग की विस्तृत guide

• blob_analysis family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• blob_split_tour — py -3.11 examples/blob_split_tour.py

• poc_am_thermal_to_ct — py -3.11 examples/poc_am_thermal_to_ct.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_em_split_merge_score — py -3.11 examples/poc_em_split_merge_score.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_peg_insertion_tactile — py -3.11 examples/poc_peg_insertion_tactile.py

• poc_pipe_wall_loss — py -3.11 examples/poc_pipe_wall_loss.py

• poc_powder_grinding_ae — py -3.11 examples/poc_powder_grinding_ae.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_segmentation_gauntlet — py -3.11 examples/poc_segmentation_gauntlet.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 जिनसे type जुड़ता है (labels2d को input के रूप में लेते हैं)

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

इसी category के (connect)

—


*Provenance: blob2d.py — BLOB operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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