tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
ScratchEvidence Struct Reference

#include <intmatcher.h>

Public Member Functions

void Clear (const INT_CLASS class_template)
 
void ClearFeatureEvidence (const INT_CLASS class_template)
 
void NormalizeSums (INT_CLASS ClassTemplate, int16_t NumFeatures, int32_t used_features)
 
void UpdateSumOfProtoEvidences (INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask, int16_t NumFeatures)
 

Public Attributes

uint8_t feature_evidence_ [64]
 
int sum_feature_evidence_ [64]
 
uint8_t proto_evidence_ [512][24]
 

Member Function Documentation

◆ Clear()

void ScratchEvidence::Clear ( const INT_CLASS  class_template)

◆ ClearFeatureEvidence()

void ScratchEvidence::ClearFeatureEvidence ( const INT_CLASS  class_template)

◆ NormalizeSums()

void ScratchEvidence::NormalizeSums ( INT_CLASS  ClassTemplate,
int16_t  NumFeatures,
int32_t  used_features 
)

Normalize Sum of Proto and Feature Evidence by dividing by the sum of the Feature Lengths and the Proto Lengths for each configuration.

◆ UpdateSumOfProtoEvidences()

void ScratchEvidence::UpdateSumOfProtoEvidences ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ConfigMask,
int16_t  NumFeatures 
)

Add sum of Proto Evidences into Sum Of Feature Evidence Array

Member Data Documentation

◆ feature_evidence_

uint8_t ScratchEvidence::feature_evidence_[64]

◆ proto_evidence_

uint8_t ScratchEvidence::proto_evidence_[512][24]

◆ sum_feature_evidence_

int ScratchEvidence::sum_feature_evidence_[64]

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