Tesseract 3.01
/data/source/tesseract-ocr/ccstruct/blobbox.cpp File Reference
#include "mfcpch.h"
#include "blobbox.h"
#include "helpers.h"

Defines

#define PROJECTION_MARGIN   10
#define EXTERN

Functions

 ELISTIZE (BLOBNBOX) ELIST2IZE(TO_ROW) ELISTIZE(TO_BLOCK) const double kCosSmallAngle=0.866
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 &xmax)
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

const double kDefiniteAspectRatio = 2.0
const double kComplexShapePerimeterRatio = 1.5

Define Documentation

#define EXTERN
#define PROJECTION_MARGIN   10

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 
)
ELISTIZE ( BLOBNBOX  ) const [pure virtual]
void find_cblob_hlimits ( C_BLOB blob,
float  bottomy,
float  topy,
float &  xmin,
float &  xmax 
)
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

const double kComplexShapePerimeterRatio = 1.5
const double kDefiniteAspectRatio = 2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines