tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::IntFeatureDist Class Reference

#include <intfeaturedist.h>

Collaboration diagram for tesseract::IntFeatureDist:

Public Member Functions

 IntFeatureDist ()
 
 ~IntFeatureDist ()
 
void Init (const IntFeatureMap *feature_map)
 
void Set (const GenericVector< int > &indexed_features, int canonical_count, bool value)
 
double FeatureDistance (const GenericVector< int > &features) const
 
double DebugFeatureDistance (const GenericVector< int > &features) const
 

Private Member Functions

void Clear ()
 

Private Attributes

int size_
 
double total_feature_weight_
 
const IntFeatureMapfeature_map_
 
bool * features_
 
bool * features_delta_one_
 
bool * features_delta_two_
 

Constructor & Destructor Documentation

◆ IntFeatureDist()

tesseract::IntFeatureDist::IntFeatureDist ( )

◆ ~IntFeatureDist()

tesseract::IntFeatureDist::~IntFeatureDist ( )

Member Function Documentation

◆ Clear()

void tesseract::IntFeatureDist::Clear ( )
private

◆ DebugFeatureDistance()

double tesseract::IntFeatureDist::DebugFeatureDistance ( const GenericVector< int > &  features) const

◆ FeatureDistance()

double tesseract::IntFeatureDist::FeatureDistance ( const GenericVector< int > &  features) const

◆ Init()

void tesseract::IntFeatureDist::Init ( const IntFeatureMap feature_map)

◆ Set()

void tesseract::IntFeatureDist::Set ( const GenericVector< int > &  indexed_features,
int  canonical_count,
bool  value 
)

Member Data Documentation

◆ feature_map_

const IntFeatureMap* tesseract::IntFeatureDist::feature_map_
private

◆ features_

bool* tesseract::IntFeatureDist::features_
private

◆ features_delta_one_

bool* tesseract::IntFeatureDist::features_delta_one_
private

◆ features_delta_two_

bool* tesseract::IntFeatureDist::features_delta_two_
private

◆ size_

int tesseract::IntFeatureDist::size_
private

◆ total_feature_weight_

double tesseract::IntFeatureDist::total_feature_weight_
private

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