13#ifndef TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
14#define TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
16#include <allheaders.h>
97 return pageseg_split_strategy_ != ocr_split_strategy_;
104 segmentation_block_list_ = block_list;
110 global_xheight_ = xheight;
114 perform_close_ = perform;
121 return splitted_image_;
134 return ocr_split_strategy_;
138 ocr_split_strategy_ = strategy;
142 return pageseg_split_strategy_;
146 pageseg_split_strategy_ = strategy;
150 return segmentation_block_list_;
161 static void PerformClose(
Image pix,
int xheight_estimate);
166 int GetXheightForCC(Box *cc_bbox);
175 void SplitWordShiroRekha(
SplitStrategy split_strategy,
Image pix,
int xheight,
int word_left,
176 int word_top, Boxa *regions_to_clear);
180 Box *GetBoxForTBOX(
const TBOX &tbox)
const;
184 static void GetShiroRekhaYExtents(
Image word_pix,
int *shirorekha_top,
int *shirorekha_bottom,
185 int *shirorekha_ylevel);
188 Image splitted_image_;
194 BLOCK_LIST *segmentation_block_list_;
bool devanagari_split_debugimage
BOOL_VAR_H(wordrec_display_splits)
INT_VAR_H(editor_image_xpos)
int devanagari_split_debuglevel
int GetHistogramMaximum(int *count) const
void ConstructHorizontalCountHist(Image pix)
void ConstructVerticalCountHist(Image pix)
virtual ~ShiroRekhaSplitter()
void set_pageseg_split_strategy(SplitStrategy strategy)
void set_orig_pix(Image pix)
void set_global_xheight(int xheight)
bool HasDifferentSplitStrategies() const
void set_perform_close(bool perform)
void RefreshSegmentationWithNewBlobs(C_BLOB_LIST *new_blobs)
bool Split(bool split_for_pageseg, DebugPixa *pixa_debug)
void set_segmentation_block_list(BLOCK_LIST *block_list)
static const int kUnspecifiedXheight
static int GetModeHeight(Image pix)
SplitStrategy pageseg_split_strategy() const
SplitStrategy ocr_split_strategy() const
void set_ocr_split_strategy(SplitStrategy strategy)
BLOCK_LIST * segmentation_block_list()