/home/rays/src/opensrc/tesseract-ocr/ccstruct/blobbox.h File Reference

#include "clst.h"
#include "elst2.h"
#include "werd.h"
#include "ocrblock.h"
#include "statistc.h"

Go to the source code of this file.

Classes

class  BLOBNBOX
class  TO_ROW
class  TO_BLOCK

Namespaces

namespace  tesseract

Enumerations

enum  PITCH_TYPE {
  PITCH_DUNNO, PITCH_DEF_FIXED, PITCH_MAYBE_FIXED, PITCH_DEF_PROP,
  PITCH_MAYBE_PROP, PITCH_CORR_FIXED, PITCH_CORR_PROP
}
enum  TabType {
  TT_NONE, TT_DELETED, TT_MAYBE_RAGGED, TT_MAYBE_ALIGNED,
  TT_CONFIRMED, TT_VLINE
}
enum  BlobRegionType {
  BRT_NOISE, BRT_HLINE, BRT_VLINE, BRT_RECTIMAGE,
  BRT_POLYIMAGE, BRT_UNKNOWN, BRT_VERT_TEXT, BRT_TEXT,
  BRT_COUNT
}
enum  BlobNeighbourDir {
  BND_LEFT, BND_BELOW, BND_RIGHT, BND_ABOVE,
  BND_COUNT
}
enum  BlobSpecialTextType {
  BSTT_NONE, BSTT_ITALIC, BSTT_DIGIT, BSTT_MATH,
  BSTT_UNCLEAR, BSTT_SKIP, BSTT_COUNT
}
enum  BlobTextFlowType {
  BTFT_NONE, BTFT_NONTEXT, BTFT_NEIGHBOURS, BTFT_CHAIN,
  BTFT_STRONG_CHAIN, BTFT_TEXT_ON_IMAGE, BTFT_LEADER, BTFT_COUNT
}

Functions

BlobNeighbourDir DirOtherWay (BlobNeighbourDir dir)
bool DominatesInMerge (BlobTextFlowType type1, BlobTextFlowType type2)
void find_cblob_limits (C_BLOB *blob, float leftx, float rightx, FCOORD rotation, float &ymin, float &ymax)
void find_cblob_vlimits (C_BLOB *blob, float leftx, float rightx, float &ymin, float &ymax)
void find_cblob_hlimits (C_BLOB *blob, float bottomy, float topy, float &xmin, float &xymax)
C_BLOBcrotate_cblob (C_BLOB *blob, FCOORD rotation)
TBOX box_next (BLOBNBOX_IT *it)
TBOX box_next_pre_chopped (BLOBNBOX_IT *it)
void vertical_cblob_projection (C_BLOB *blob, STATS *stats)
void vertical_coutline_projection (C_OUTLINE *outline, STATS *stats)
void plot_blob_list (ScrollView *win, BLOBNBOX_LIST *list, ScrollView::Color body_colour, ScrollView::Color child_colour)

Variables

double textord_error_weight = 3

Enumeration Type Documentation

Enumerator:
BND_LEFT 
BND_BELOW 
BND_RIGHT 
BND_ABOVE 
BND_COUNT 
Enumerator:
BRT_NOISE 
BRT_HLINE 
BRT_VLINE 
BRT_RECTIMAGE 
BRT_POLYIMAGE 
BRT_UNKNOWN 
BRT_VERT_TEXT 
BRT_TEXT 
BRT_COUNT 
Enumerator:
BSTT_NONE 
BSTT_ITALIC 
BSTT_DIGIT 
BSTT_MATH 
BSTT_UNCLEAR 
BSTT_SKIP 
BSTT_COUNT 
Enumerator:
BTFT_NONE 
BTFT_NONTEXT 
BTFT_NEIGHBOURS 
BTFT_CHAIN 
BTFT_STRONG_CHAIN 
BTFT_TEXT_ON_IMAGE 
BTFT_LEADER 
BTFT_COUNT 
enum PITCH_TYPE
Enumerator:
PITCH_DUNNO 
PITCH_DEF_FIXED 
PITCH_MAYBE_FIXED 
PITCH_DEF_PROP 
PITCH_MAYBE_PROP 
PITCH_CORR_FIXED 
PITCH_CORR_PROP 
enum TabType
Enumerator:
TT_NONE 
TT_DELETED 
TT_MAYBE_RAGGED 
TT_MAYBE_ALIGNED 
TT_CONFIRMED 
TT_VLINE 

Function Documentation

TBOX box_next ( BLOBNBOX_IT *  it  ) 
TBOX box_next_pre_chopped ( BLOBNBOX_IT *  it  ) 
C_BLOB* crotate_cblob ( C_BLOB blob,
FCOORD  rotation 
)
BlobNeighbourDir DirOtherWay ( BlobNeighbourDir  dir  )  [inline]
bool DominatesInMerge ( BlobTextFlowType  type1,
BlobTextFlowType  type2 
) [inline]
void find_cblob_hlimits ( C_BLOB blob,
float  bottomy,
float  topy,
float &  xmin,
float &  xymax 
)
void find_cblob_limits ( C_BLOB blob,
float  leftx,
float  rightx,
FCOORD  rotation,
float &  ymin,
float &  ymax 
)
void find_cblob_vlimits ( C_BLOB blob,
float  leftx,
float  rightx,
float &  ymin,
float &  ymax 
)
void plot_blob_list ( ScrollView win,
BLOBNBOX_LIST *  list,
ScrollView::Color  body_colour,
ScrollView::Color  child_colour 
)
void vertical_cblob_projection ( C_BLOB blob,
STATS stats 
)
void vertical_coutline_projection ( C_OUTLINE outline,
STATS stats 
)

Variable Documentation

"Weighting for error in believability"

Generated on Thu Feb 2 08:19:21 2012 for Tesseract by  doxygen 1.6.3