20 #ifndef TESSERACT_CCMAIN_EQUATIONDETECT_H_    21 #define TESSERACT_CCMAIN_EQUATIONDETECT_H_    31 class BLOB_CHOICE_LIST;
    40 class ColPartitionGrid;
    41 class ColPartitionSet;
    46                  const char* equ_language);
   125       const float foreground_density_th,
   153                         const float math_density_low,
   174                                    const int textPartsLineSpacing);
   178   bool IsInline(
const bool search_bottom,
   179                 const int textPartsLineSpacing,
   200                            const TBOX& part_box) 
const;
   278 #endif  // TESSERACT_CCMAIN_EQUATIONDETECT_H_ 
EquationDetect(const char *equ_datapath, const char *equ_language)
 
ColPartitionGrid * part_grid_
 
void GetOutputTiffName(const char *name, STRING *image_name) const
 
bool CheckSeedFgDensity(const float density_th, ColPartition *part)
 
void IdentifyBlobsToSkip(ColPartition *part)
 
bool IsMathBlockSatellite(ColPartition *part, GenericVector< ColPartition *> *math_blocks)
 
float ComputeForegroundDensity(const TBOX &tbox)
 
GenericVector< ColPartition * > cp_seeds_
 
bool IsNearMathNeighbor(const int y_gap, const ColPartition *neighbor) const
 
void ProcessMathBlockSatelliteParts()
 
BlobSpecialTextType EstimateTypeForUnichar(const UNICHARSET &unicharset, const UNICHAR_ID id) const
 
void SetResolution(const int resolution)
 
ColPartitionSet ** best_columns_
 
int CountAlignment(const GenericVector< int > &sorted_vec, const int val) const
 
bool IsNearSmallNeighbor(const TBOX &seed_box, const TBOX &part_box) const
 
void PaintColParts(const STRING &outfile) const
 
int LabelSpecialText(TO_BLOCK *to_block)
 
bool CheckSeedBlobsCount(ColPartition *part)
 
bool ExpandSeed(ColPartition *seed)
 
void PrintSpecialBlobsDensity(const ColPartition *part) const
 
int EstimateTextPartLineSpacing()
 
void SplitCPHorLite(ColPartition *part, GenericVector< TBOX > *splitted_boxes)
 
void ExpandSeedHorizontal(const bool search_left, ColPartition *seed, GenericVector< ColPartition *> *parts_to_merge)
 
bool CheckSeedNeighborDensity(const ColPartition *part) const
 
void IdentifyInlinePartsVertical(const bool top_to_bottom, const int textPartsLineSpacing)
 
int FindEquationParts(ColPartitionGrid *part_grid, ColPartitionSet **best_columns)
 
IndentType IsIndented(ColPartition *part)
 
void SearchByOverlap(ColPartition *seed, GenericVector< ColPartition *> *parts_overlap)
 
bool IsInline(const bool search_bottom, const int textPartsLineSpacing, ColPartition *part)
 
void PaintSpecialTexts(const STRING &outfile) const
 
void SplitCPHor(ColPartition *part, GenericVector< ColPartition *> *parts_splitted)
 
void ComputeCPsSuperBBox()
 
void MergePartsByLocation()
 
bool CheckSeedDensity(const float math_density_high, const float math_density_low, const ColPartition *part) const
 
void IdentifyInlineParts()
 
ColPartition * SearchNNVertical(const bool search_bottom, const ColPartition *part)
 
void IdentifySpecialText()
 
void InsertPartAfterAbsorb(ColPartition *part)
 
void ExpandSeedVertical(const bool search_bottom, ColPartition *seed, GenericVector< ColPartition *> *parts_to_merge)
 
void SetLangTesseract(Tesseract *lang_tesseract)
 
void IdentifyInlinePartsHorizontal()
 
bool CheckForSeed2(const GenericVector< int > &indented_texts_left, const float foreground_density_th, ColPartition *part)
 
Tesseract * lang_tesseract_