Hello Mat

 找回密码
 立即注册
查看: 5306|回复: 0

Region特征

[复制链接]

1323

主题

1551

帖子

0

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22647
发表于 2019-7-22 22:24:05 | 显示全部楼层 |阅读模式

Region特征:
  1. count_obj (Regions, Number)
  2. for J := 1 to Number by 1
  3.     select_obj (Regions, Region, J)
  4.     get_features (Region, Features)
  5.     add_sample_class_mlp (MLPHandle, Features, Class)
  6. endfor
复制代码
get_features函数如下:
  1. select_obj (Region, SingleRegion, 1)
  2. circularity (SingleRegion, Circularity)
  3. roundness (SingleRegion, Distance, Sigma, Roundness, Sides)
  4. moments_region_central_invar (SingleRegion, PSI1, PSI2, PSI3, PSI4)
  5. Features := [Circularity,Roundness,PSI1,PSI2,PSI3,PSI4]
复制代码





算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-11-22 17:17 , Processed in 0.206438 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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