Halcom 发表于 2018-5-11 22:03:15

产生二维矩阵

产生二维矩阵
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:=[,,,,]





LJN 发表于 2020-8-21 22:18:52

:lol:lol:lol:lol:lol
页: [1]
查看完整版本: 产生二维矩阵