“创建特征”的工作原理

创建特征工具是有关派生自样本(在输入栅格数据或要素样本数据上进行识别)的类的统计描述。该文件由两部分组成:

该工具可创建将用作其他多元分析工具的输入参数的文件。例如,最大似然法分类工具需要特征文件提供类平均值矢量和协方差矩阵才能执行最大似然法分类。

示例

创建特征生成的特征文件均以文件头开始,但文件头会被注释掉。文件头保留用于创建特征文件的输入。类名称为可选项,可通过样本字段输入,也可以使用任何文本编辑器将其添加到生成的特征文件中。

计算协方差选项

下例显示了一个特征文件。输入是名为 redlands 的多波段栅格。样本数据是一个有五个样本类的栅格 redzone5。具有默认启用的设置 (COVARIANCE) 的计算协方差矩阵选项已被保留。

  • 创建特征工具对话框中使用的设置:

    输入栅格波段redlands

    输入栅格数据或要素样本数据redzone5

    样本字段“值”

    输出特征文件z5red.gsg

    计算协方差矩阵开启

下面列出的便是输出特征文件:

# Signatures Produced by ClassSig from Zone-Grid redsamp5 and Stack redlands
# Number of selected grids
/*        3
# Layer-Number        Grid-name
/*        1            redlands3
/*        2            redlands1
/*        3            redlands2

# Type  Number of Classes  Number of Layers  Number of Parametric Layers
  1     5                  3                 3
#  ----------------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  1           654                sand
# Layers   1           2           3
# Means 
         170.4908    155.7569    161.9419
# Covariance
1        292.6546    182.3661    186.2583
2        182.3661    127.8076    139.3009
3        186.2583    139.3009    196.3029
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  2           585                urban
# Layers   1           2           3
# Means 
         104.5009     92.4410     92.0513
# Covariance
1        384.6580    552.1828    389.0496
2        552.1828   1378.6750    863.5595
3        389.0496    863.5595    772.2063
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  3           783                forest
# Layers   1           2           3
# Means
          27.0026    174.3768     72.7931
# Covariance
1        241.0818    -14.6301    293.7806
2        -14.6301    764.2914    221.4054
3        293.7806    221.4054    527.0799
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  4           951                water
# Layers   1           2           3
# Means
           1.1504      0.0515      0.0873
# Covariance
1          7.2753      3.9638      6.4848
2          3.9638      2.5247      4.0702
3          6.4848      4.0702      6.5724
# -----------------------------------------------------------------

# Class ID    Number of Cells     Class Name
  5           969                 agri_field
# Layers   1           2           3
# Means 
          32.4675    232.7781     85.4149
# Covariance
1        423.1004   -684.8693    324.1354
2       -684.8693   1271.6315   -509.0008
3        324.1354   -509.0008    366.1232

仅平均值选项

如果不需要协方差矩阵,则禁用计算协方差矩阵选项 (MEAN_ONLY)。以下特征文件来自上例中的相同数据,但未计算协方差矩阵:

输入栅格波段redlands 输入栅格数据或要素样本数据redzone5 样本字段“值” 输出特征文件z5red.gsg 计算协方差矩阵关闭

下面列出的便是输出特征文件:

# Number of selected grids
/*        3
# Layer-Number        Grid-name
/*        1            redlands3
/*        2            redlands1
/*        3            redlands2

# Type  Number of Classes  Number of Layers  Number of Parametric Layers
  1     5                  3                 3
#  ----------------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  1           654                sand
# Layers   1           2           3
# Means 
         170.4908    155.7569    161.9419
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  2           585                urban
# Layers   1           2           3
# Means 
         104.5009     92.4410     92.0513
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  3           783                forest
# Layers   1           2           3
# Means
          27.0026    174.3768     72.7931
# ---------------------------------------------------------------

# Class ID    Number of Cells    Class Name
  4           951                water
# Layers   1           2           3
# Means
           1.1504      0.0515      0.0873
# -----------------------------------------------------------------

# Class ID    Number of Cells     Class Name
  5           969                 agri_field
# Layers   1           2           3
# Means 
          32.4675    232.7781     85.4149

相关主题

5/10/2014