FeatureSet method: write

FeatureSet method: write

Syntax: <feature set> write <filename> <feature1> [<feature2> [...]] [-flags value]

Example: fs write file.feat A B C -bm 2

One or more FMatrix features can be merged together and written to a file. All features must have the same length (number of frames). If the feature file is written with a header (default) it contains the total number of coefficients and frames and if there was more than one feature stored information how to select it (see 'read' method).

Optional flags:

-h <b>
If <b> is not 0 the feature file is written with a header (default).
-bm <m = 1, 2 or 4>
The coefficients can be stored in different formats. If <m> is 4 they are stored as floats in the file. With <m> = 1 coefficients ranging from 0.0 to 1.0 can be stored in one byte (floatbytes). Coefficients with other values will be truncated. Using <m> = 2 (scaled vectors) coefficients with arbitrary range can be stored as bytes because additional scaling values are stored for every 'channel'. Note that there is a quantization error for the formats 1 and 2.
Related commands: read one or more features from a file.


maier@ira.uka.de