All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
feature_hybrid.h
Go to the documentation of this file.
1 /**********************************************************************
2  * File: feature_chebyshev.h
3  * Description: Declaration of the Chebyshev coefficients Feature Class
4  * Author: Ahmad Abdulkader
5  * Created: 2008
6  *
7  * (C) Copyright 2008, Google Inc.
8  ** Licensed under the Apache License, Version 2.0 (the "License");
9  ** you may not use this file except in compliance with the License.
10  ** You may obtain a copy of the License at
11  ** http://www.apache.org/licenses/LICENSE-2.0
12  ** Unless required by applicable law or agreed to in writing, software
13  ** distributed under the License is distributed on an "AS IS" BASIS,
14  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ** See the License for the specific language governing permissions and
16  ** limitations under the License.
17  *
18  **********************************************************************/
19 
20 // The FeatureHybrid class implements a Bitmap feature extractor class. It
21 // inherits from the FeatureBase class
22 // This class describes the a hybrid feature vector composed by combining
23 // the bitmap and the chebyshev feature vectors
24 
25 #ifndef FEATURE_HYBRID_H
26 #define FEATURE_HYBRID_H
27 
28 #include "char_samp.h"
29 #include "feature_bmp.h"
30 #include "feature_chebyshev.h"
31 
32 namespace tesseract {
33 class FeatureHybrid : public FeatureBase {
34  public:
35  explicit FeatureHybrid(TuningParams *params);
36  virtual ~FeatureHybrid();
37  // Render a visualization of the features to a CharSamp.
38  // This is mainly used by visual-debuggers
39  virtual CharSamp *ComputeFeatureBitmap(CharSamp *samp);
40  // Compute the features for a given CharSamp
41  virtual bool ComputeFeatures(CharSamp *samp, float *features);
42  // Returns the count of features
43  virtual int FeatureCnt() {
45  return 0;
46  }
48  }
49 
50  protected:
53 };
54 }
55 
56 #endif // FEATURE_HYBRID_H
virtual bool ComputeFeatures(CharSamp *samp, float *features)
FeatureHybrid(TuningParams *params)
virtual CharSamp * ComputeFeatureBitmap(CharSamp *samp)
FeatureChebyshev * feature_chebyshev_
virtual int FeatureCnt()
Definition: feature_bmp.h:43
#define NULL
Definition: host.h:144