The method Save stores the contents of the feature matrix in the structured text file named FName.
Format of the data file: the data values of the feature matrix are stored using keywords starting with a '#' character and followed by zero to two parameters. Each data value, each defintion and each keyword have to be stored in separate lines, the keywords have to start at position 1 of the line:
Keyword |
Explanation |
#featdef NFEAT VERS |
Definition of the features; NFEAT specifies the number of features, VERS the version number of the format. The keyword is followed by 6*NFEAT lines specifying the fields of the feature properties. Each field is defined by its feature index, the field identifier and the associated value (stored as a string). The field GUIElem is not stored at all. |
#featvals NFEAT NOBJ |
The list of the matrix values; NFEAT specifies the number of features, NOBJ the number of objects. All data cells which are not empty (undefined) are stored in the following lines until the '#featend' keyword is encountered. Each cell value is stored as a string preceded by the feature and the object index (separated by blanks) |
#featend |
Indicates the end of the matrix values. |
|