Tesseract  3.02
tesseract::FeatureBmp Class Reference

#include <feature_bmp.h>

Inheritance diagram for tesseract::FeatureBmp:
tesseract::FeatureBase

List of all members.

Public Member Functions

 FeatureBmp (TuningParams *params)
virtual ~FeatureBmp ()
virtual CharSampComputeFeatureBitmap (CharSamp *samp)
virtual bool ComputeFeatures (CharSamp *samp, float *features)
virtual int FeatureCnt ()

Protected Attributes

int conv_grid_size_

Detailed Description

Definition at line 33 of file feature_bmp.h.


Constructor & Destructor Documentation

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.

                        {
}

Member Function Documentation

CharSamp * tesseract::FeatureBmp::ComputeFeatureBitmap ( CharSamp samp) [virtual]

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_);
  }

Member Data Documentation

Definition at line 49 of file feature_bmp.h.


The documentation for this class was generated from the following files: