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