产生二维矩阵
- 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 :=[Energy, Correlation, Homogeneity, Contrast, Value2, Value3, Value4]
-
- tuple_gen_const(7, i-1, Row)
- tuple_gen_sequence(0, 6, 1, Col)
- set_value_matrix(trainFeatures, Row, Col, feature)
-
复制代码 当前也可以采用【【】,【】】来赋值:
xx:=[[0.0114546, 0.957696, 0.513102, 12.3213, 90604.0, 1300.0, 330.0],[0.0117975, 0.957877, 0.518485, 12.0891, 81900.0, 1268.0, 380.0],[0.0114471, 0.957728, 0.513252, 12.3067, 89127.0, 1270.0, 330.0],[0.011948, 0.989275, 0.590823, 4.35103, 87944.0, 1177.0, 355.0],[0.0142903, 0.986448, 0.562263, 6.8399, 87870.0, 1262.0, 330.0]]
|