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

#include <intfeaturemap.h>

Collaboration diagram for tesseract::IntFeatureMap:

Public Member Functions

 IntFeatureMap ()
 
 ~IntFeatureMap ()
 
int sparse_size () const
 
int compact_size () const
 
const IntFeatureSpacefeature_space () const
 
const IndexMapBiDifeature_map () const
 
int IndexFeature (const INT_FEATURE_STRUCT &f) const
 
int MapFeature (const INT_FEATURE_STRUCT &f) const
 
int MapIndexFeature (int index_feature) const
 
INT_FEATURE_STRUCT InverseIndexFeature (int index_feature) const
 
INT_FEATURE_STRUCT InverseMapFeature (int map_feature) const
 
void DeleteMapFeature (int map_feature)
 
bool IsMapFeatureDeleted (int map_feature) const
 
void Init (const IntFeatureSpace &feature_space)
 
int OffsetFeature (int index_feature, int dir) const
 
int FindNZFeatureMapping (SampleIterator *it)
 
int FinalizeMapping (SampleIterator *it)
 
void IndexAndSortFeatures (const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
 
int MapIndexedFeatures (const GenericVector< int > &index_features, GenericVector< int > *map_features) const
 
void DebugMapFeatures (const GenericVector< int > &map_features) const
 

Private Member Functions

void Clear ()
 
int ComputeOffsetFeature (int index_feature, int dir) const
 
 IntFeatureMap (const IntFeatureMap &)
 
void operator= (const IntFeatureMap &)
 

Private Attributes

bool mapping_changed_
 
int compact_size_
 
IntFeatureSpace feature_space_
 
IndexMapBiDi feature_map_
 
int * offset_plus_ [kNumOffsetMaps]
 
int * offset_minus_ [kNumOffsetMaps]
 

Constructor & Destructor Documentation

◆ IntFeatureMap() [1/2]

tesseract::IntFeatureMap::IntFeatureMap ( )

◆ ~IntFeatureMap()

tesseract::IntFeatureMap::~IntFeatureMap ( )

◆ IntFeatureMap() [2/2]

tesseract::IntFeatureMap::IntFeatureMap ( const IntFeatureMap )
private

Member Function Documentation

◆ Clear()

void tesseract::IntFeatureMap::Clear ( )
private

◆ compact_size()

int tesseract::IntFeatureMap::compact_size ( ) const
inline

◆ ComputeOffsetFeature()

int tesseract::IntFeatureMap::ComputeOffsetFeature ( int  index_feature,
int  dir 
) const
private

◆ DebugMapFeatures()

void tesseract::IntFeatureMap::DebugMapFeatures ( const GenericVector< int > &  map_features) const

◆ DeleteMapFeature()

void tesseract::IntFeatureMap::DeleteMapFeature ( int  map_feature)

◆ feature_map()

const IndexMapBiDi& tesseract::IntFeatureMap::feature_map ( ) const
inline

◆ feature_space()

const IntFeatureSpace& tesseract::IntFeatureMap::feature_space ( ) const
inline

◆ FinalizeMapping()

int tesseract::IntFeatureMap::FinalizeMapping ( SampleIterator it)

◆ FindNZFeatureMapping()

int tesseract::IntFeatureMap::FindNZFeatureMapping ( SampleIterator it)

◆ IndexAndSortFeatures()

void tesseract::IntFeatureMap::IndexAndSortFeatures ( const INT_FEATURE_STRUCT features,
int  num_features,
GenericVector< int > *  sorted_features 
) const
inline

◆ IndexFeature()

int tesseract::IntFeatureMap::IndexFeature ( const INT_FEATURE_STRUCT f) const

◆ Init()

void tesseract::IntFeatureMap::Init ( const IntFeatureSpace feature_space)

◆ InverseIndexFeature()

INT_FEATURE_STRUCT tesseract::IntFeatureMap::InverseIndexFeature ( int  index_feature) const

◆ InverseMapFeature()

INT_FEATURE_STRUCT tesseract::IntFeatureMap::InverseMapFeature ( int  map_feature) const

◆ IsMapFeatureDeleted()

bool tesseract::IntFeatureMap::IsMapFeatureDeleted ( int  map_feature) const

◆ MapFeature()

int tesseract::IntFeatureMap::MapFeature ( const INT_FEATURE_STRUCT f) const

◆ MapIndexedFeatures()

int tesseract::IntFeatureMap::MapIndexedFeatures ( const GenericVector< int > &  index_features,
GenericVector< int > *  map_features 
) const
inline

◆ MapIndexFeature()

int tesseract::IntFeatureMap::MapIndexFeature ( int  index_feature) const

◆ OffsetFeature()

int tesseract::IntFeatureMap::OffsetFeature ( int  index_feature,
int  dir 
) const

◆ operator=()

void tesseract::IntFeatureMap::operator= ( const IntFeatureMap )
private

◆ sparse_size()

int tesseract::IntFeatureMap::sparse_size ( ) const
inline

Member Data Documentation

◆ compact_size_

int tesseract::IntFeatureMap::compact_size_
private

◆ feature_map_

IndexMapBiDi tesseract::IntFeatureMap::feature_map_
private

◆ feature_space_

IntFeatureSpace tesseract::IntFeatureMap::feature_space_
private

◆ mapping_changed_

bool tesseract::IntFeatureMap::mapping_changed_
private

◆ offset_minus_

int* tesseract::IntFeatureMap::offset_minus_[kNumOffsetMaps]
private

◆ offset_plus_

int* tesseract::IntFeatureMap::offset_plus_[kNumOffsetMaps]
private

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