产生二维矩阵
产生二维矩阵create_matrix(5,7,0, trainFeatures)
* 特征求解
* 灰度共生矩阵
cooc_feature_image(RegionAffineTrans, Image, 6, 0, Energy, Correlation, Homogeneity, Contrast)
intersection(RegionAffineTrans, RegionIntersection, RegionIntersection2)
* 面积
region_features(RegionIntersection2, 'area', Value2)
* 宽度
region_features(RegionIntersection2, 'width', Value3)
* 高度
region_features(RegionIntersection2, 'height', Value4)
* 总特征
feature :=
tuple_gen_const(7, i-1, Row)
tuple_gen_sequence(0, 6, 1, Col)
set_value_matrix(trainFeatures, Row, Col, feature)
当前也可以采用【【】,【】】来赋值:
xx:=[,,,,]
:lol:lol:lol:lol:lol
页:
[1]