comparison transform/FeatureExtractionModelTransformer.h @ 441:288f45533041

* Add region model and layer; improve assignment of model types to feature extraction transforms with duration
author Chris Cannam
date Thu, 18 Sep 2008 16:08:14 +0000
parents 370aa9714ef5
children a70dcfed59c1
comparison
equal deleted inserted replaced
440:5746c559af15 441:288f45533041
49 49
50 void getFrames(int channelCount, long startFrame, long size, 50 void getFrames(int channelCount, long startFrame, long size,
51 float **buffer); 51 float **buffer);
52 52
53 // just casts 53 // just casts
54
54 DenseTimeValueModel *getConformingInput(); 55 DenseTimeValueModel *getConformingInput();
56
57 template <typename ModelClass> bool isOutput() {
58 return dynamic_cast<ModelClass *>(m_output) != 0;
59 }
60
55 template <typename ModelClass> ModelClass *getConformingOutput() { 61 template <typename ModelClass> ModelClass *getConformingOutput() {
56 ModelClass *mc = dynamic_cast<ModelClass *>(m_output); 62 ModelClass *mc = dynamic_cast<ModelClass *>(m_output);
57 if (!mc) { 63 if (!mc) {
58 std::cerr << "FeatureExtractionModelTransformer::getOutput: Output model not conformable" << std::endl; 64 std::cerr << "FeatureExtractionModelTransformer::getOutput: Output model not conformable" << std::endl;
59 } 65 }