measure op• 数据种类:labels2d → table
• 调用: import fullseye as fs; fs.ledger.blob_features(labels: 'Any', spacing: 'float' = 1.0) -> 'dict'(要直接调用实现,import blob2d; blob2d.blob_features(labels: 'Any', spacing: 'float' = 1.0) -> 'dict';从台账取用则 opsblob.get("blob_features"))
将每个物体的形状特征量以每个键 1 个数组的形式返回。
labels : array_like
blob_label 的输出(整数,背景 0)。
spacing : float
1 个像素的大小[单位/px]。长度乘以它,面积乘以它的 2 次方。
默认 1.0 = 保持像素单位。
dict
n(物体数)、spacing、units(项目 → 单位的对应),以及
长度为 n 的数组 19 个(FEATURE_KEYS)。即使物体为 0 个,
也会备齐所有键并以空数组返回(调用方无需分支)。
• angle 是矩阵坐标系中的倾角(+列 → +行 为正 = 屏幕上为顺时针)。
• major / minor 是具有相同 2 阶矩的椭圆的轴长(4 sqrt(lambda))。并非像素排列的外接范围,因此对于正方形会比边长略长 —— 这符合定义,不是误差。
• circularity 为 4 pi A / P^2。HALCON 的 circularity 是「面积 / 以最远点为半径的圆的面积」,是另一回事,因此对照数值时请确认定义。
• touches_border 为 True 的物体,面积和周长都会小掉被截断的部分。请在计数前舍弃,或让真值一侧也按相同约定计数。
>>> import numpy as np
>>> m = np.zeros((20, 20), bool); m[4:14, 4:9] = True
>>> f = blob_features(blob_label(m))
>>> int(f["n"]), float(f["area"][0])
(1, 50.0)
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• 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_fresco_craquelure — py -3.11 examples/poc_fresco_craquelure.py
• poc_gear_tooth_metrology — py -3.11 examples/poc_gear_tooth_metrology.py
• poc_leaf_disease_area — py -3.11 examples/poc_leaf_disease_area.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_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_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
table 作为输入)—
measure)—
*Provenance: blob2d.py — BLOB 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.