设置首页收藏本站
开启左侧

select_shape_xld 算子说明

[复制链接]
绝地武士 发表于 2025-6-30 16:01:13 | 显示全部楼层 |阅读模式
功能:
使用形状特征选择等值线或多边形。

签名:
  1. select_shape_xld(XLD : SelectedXLD : Features, Operation, Min, Max : )
复制代码


说明:根据contours轮廓或polygons多边形的形状特征选择对应图形输出到SelectedXLD;
Features属性特征可以有多组,通过Operation自由组合,and表示同时满足,or表示其中一组满足即可。
参数min和max可设置为“Min”或“Max ”,表示对下限或者上限作开区域(无需手动输入最小值或者最大值,如99999999这样的)。
公式:
微信截图_20250630152210.jpg

可用特征值:
  1. 'area': 轮廓的面积 (参考 area_center_xld)

  2. 'area_points': 轮廓点的面积 (参考 area_center_points_xld)

  3. 'row': 重心的行索引值 (参考 area_center_xld)

  4. 'column': 重心的列索引值 (参考 area_center_xld)

  5. 'row_points': 轮廓点重心的行索引值 (参考 area_center_points_xld)

  6. 'column_points':轮廓点重心的列索引值 (参考 area_center_points_xld)

  7. 'width': 轮廓的宽度 (参考 height_width_ratio_xld)

  8. 'height': 轮廓的高度 (参考 height_width_ratio_xld)

  9. 'ratio': 轮廓的高度和宽度之比 (参考 height_width_ratio_xld)

  10. 'row1': 左上角的行坐标 (参考 smallest_rectangle1_xld)

  11. 'column1': 左上角的列坐标 (参考 smallest_rectangle1_xld)

  12. 'row2': 右下角的行坐标(参考 smallest_rectangle1_xld)

  13. 'column2': 右下角的列坐标 (参考  smallest_rectangle1_xld)

  14. 'circularity': 接近圆形的程度 (参考 circularity_xld)

  15. 'compactness': 密度 (参考 compactness_xld)

  16. 'rectangularity':  接近矩形的程度(参考 rectangularity_xld)

  17. 'contlength': 轮廓总长度 (参考 length_xld)

  18. 'convexity': 轮廓的凸性 (参考 convexity_xld)

  19. 'ra': 等效椭圆的长半径 (参考 elliptic_axis_xld)

  20. 'rb': 等效椭圆的小半径 (参考 elliptic_axis_xld)

  21. 'phi': 等效椭圆的方向/角度 (参考 elliptic_axis_xld)

  22. 'ra_points': 轮廓点的等效椭圆的长半径 (参考 elliptic_axis_points_xld)

  23. 'rb_points': 轮廓点的等效椭圆的小半径 (参考 elliptic_axis_points_xld)

  24. 'phi_points': 轮廓点的等效椭圆的方向/角度 (参考 elliptic_axis_points_xld)

  25. 'anisometry:' 非对称(参考 eccentricity_xld)

  26. 'anisometry_points:' 轮廓点的非对称 (参考 eccentricity_points_xld)

  27. 'bulkiness:' 庞大(参考 eccentricity_xld)

  28. 'struct_factor:' 结构因子 (参考 eccentricity_xld)

  29. 'outer_radius': 最小封闭圆的半径 (参考 smallest_circle_xld)

  30. 'max_diameter': 轮廓的最大直径 (参考 diameter_xld)

  31. 'orientation': 轮廓的方向/角度 (参考 orientation_xld)

  32. 'orientation_points': 轮廓点的方向/角度 (参考 orientation_points_xld)

  33. 'rect2_phi': 最小近似矩形的方向 (参考 smallest_rectangle2_xld)

  34. 'rect2_len1':
  35. 最小近似矩形的1/2长度 (参考 smallest_rectangle2_xld)

  36. 'rect2_len2':
  37. 最小近似矩形的1/2宽度 (参考 smallest_rectangle2_xld)

  38. 'moments_m11', 'moments_m20', 'moments_m02': 轮廓的几何矩 (参考 moments_region_2nd)

  39. 'moments_m11_points', 'moments_m20_points', 'moments_m02_points': 轮廓点的几何矩 (参考 moments_points_xld)
复制代码
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
雾里看花 发表于 2025-7-2 18:05:57 | 显示全部楼层
感谢分享
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表