#include <FeatureFileReaderHTK.h>
List of all members.
Public Member Functions |
| | FeatureFileReaderHTK (const FileName &f, const Config &c, LabelServer *ls=NULL, BigEndian=BIGENDIAN_AUTO, BufferUsage=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) |
| virtual | ~FeatureFileReaderHTK () |
| virtual unsigned long | getFeatureCount () |
| virtual unsigned long | getVectSize () |
| virtual const FeatureFlags & | getFeatureFlags () |
| virtual real_t | getSampleRate () |
| virtual String | getClassName () const |
Static Public Member Functions |
| static FeatureFileReaderHTK & | create (const FileName &, const Config &, LabelServer *=NULL, BigEndian=BIGENDIAN_AUTO, BufferUsage=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) |
Private Member Functions |
| void | readParams () |
| bool | readHeader () |
| virtual unsigned long | getHeaderLength () |
| bool | operator== (const FeatureFileReaderHTK &) const |
| bool | operator!= (const FeatureFileReaderHTK &) const |
| const FeatureFileReaderHTK & | operator= (const FeatureFileReaderHTK &) |
| | FeatureFileReaderHTK (const FeatureFileReaderHTK &) |
Private Attributes |
| bool | _paramDefined |
Friends |
| class | TestFeatureFileReaderHTK |
Detailed Description
Convenient class for reading features from a HTK file The file is opened only after calling one of the methods readFeature, get FeatureCount, getVectSize, getFeatureFlags
- Author:
- Frederic Wils frederic.wils@lia.univ-avignon.fr
- Version:
- 1.0
- Date:
- 2003
Definition at line 86 of file FeatureFileReaderHTK.h.
Constructor & Destructor Documentation
Creates a reader for a HTK feature file.
- Parameters:
-
| f | a file to read. No path is required. It uses the parameter "featureFilesPath" of the configuration. |
| c | the configuration to use |
| ls | address of a label server. can be NULL. |
| be | big endian ? Can be BIGENDIAN_AUTO, BIGENDIAN_TRUE or BIGENDIAN_FALSE |
| virtual alize::FeatureFileReaderHTK::~FeatureFileReaderHTK |
( |
) |
[virtual] |
Member Function Documentation
See constructor with same parameters
| virtual String alize::FeatureFileReaderHTK::getClassName |
( |
) |
const [virtual] |
| virtual unsigned long alize::FeatureFileReaderHTK::getFeatureCount |
( |
) |
[virtual] |
Returns the number of features in the file
- Returns:
- the number of features in the file
- Exceptions:
-
Implements alize::FeatureInputStream.
| virtual const FeatureFlags& alize::FeatureFileReaderHTK::getFeatureFlags |
( |
) |
[virtual] |
Returns the feature flags of this file
- Returns:
- the feature flags of this file
- Exceptions:
-
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderHTK::getHeaderLength |
( |
) |
[private, virtual] |
| virtual real_t alize::FeatureFileReaderHTK::getSampleRate |
( |
) |
[virtual] |
| virtual unsigned long alize::FeatureFileReaderHTK::getVectSize |
( |
) |
[virtual] |
Returns the size of the vector inside the features of this file
- Returns:
- the size of the vector inside the features of this file
- Exceptions:
-
Implements alize::FeatureInputStream.
| bool alize::FeatureFileReaderHTK::readHeader |
( |
) |
[private] |
| void alize::FeatureFileReaderHTK::readParams |
( |
) |
[private] |
Friends And Related Function Documentation
friend class TestFeatureFileReaderHTK [friend] |
Member Data Documentation
The documentation for this class was generated from the following file: