|
Tesseract
3.02
|
#include <feature_bmp.h>
Public Member Functions | |
| FeatureBmp (TuningParams *params) | |
| virtual | ~FeatureBmp () |
| virtual CharSamp * | ComputeFeatureBitmap (CharSamp *samp) |
| virtual bool | ComputeFeatures (CharSamp *samp, float *features) |
| virtual int | FeatureCnt () |
Protected Attributes | |
| int | conv_grid_size_ |
Definition at line 33 of file feature_bmp.h.
| tesseract::FeatureBmp::FeatureBmp | ( | TuningParams * | params | ) | [explicit] |
Definition at line 31 of file feature_bmp.cpp.
:FeatureBase(params) { conv_grid_size_ = params->ConvGridSize(); }
| tesseract::FeatureBmp::~FeatureBmp | ( | ) | [virtual] |
Definition at line 36 of file feature_bmp.cpp.
{
}
Implements tesseract::FeatureBase.
Definition at line 41 of file feature_bmp.cpp.
{
return char_samp->Scale(conv_grid_size_, conv_grid_size_);
}
| bool tesseract::FeatureBmp::ComputeFeatures | ( | CharSamp * | samp, |
| float * | features | ||
| ) | [virtual] |
Implements tesseract::FeatureBase.
Definition at line 46 of file feature_bmp.cpp.
{
return char_samp->ComputeFeatures(conv_grid_size_, features);
}
| virtual int tesseract::FeatureBmp::FeatureCnt | ( | ) | [inline, virtual] |
Implements tesseract::FeatureBase.
Definition at line 43 of file feature_bmp.h.
{
return 5 + (conv_grid_size_ * conv_grid_size_);
}
int tesseract::FeatureBmp::conv_grid_size_ [protected] |
Definition at line 49 of file feature_bmp.h.