31 #ifndef CUBE_SEARCH_OBJECT_H 32 #define CUBE_SEARCH_OBJECT_H 38 #include "allheaders.h" 54 Box *
CharBox(
int start_pt,
int end_pt);
66 static const int kMaxSegmentCnt = 128;
68 static const bool kUseCroppedChars;
83 int max_seg_per_char_;
111 inline bool IsValidSegmentRange(
int start_pt,
int end_pt) {
112 return (end_pt > start_pt && start_pt >= -1 && start_pt < segment_cnt_ &&
113 end_pt >= 0 && end_pt <= segment_cnt_ &&
114 end_pt <= (start_pt + max_seg_per_char_));
118 bool ComputeSpaceCosts();
122 #endif // CUBE_SEARCH_OBJECT_H
CubeSearchObject(CubeRecoContext *cntxt, CharSamp *samp)
int SpaceCost(int seg_pt)
int NoSpaceCost(int seg_pt)
Box * CharBox(int start_pt, int end_pt)
CharSamp * CharSample(int start_pt, int end_pt)
CharAltList * RecognizeSegment(int start_pt, int end_pt)