tesseract-doxygen/wordrec/olutil.h File Reference

#include "tessclas.h"
#include "general.h"

Go to the source code of this file.

Defines

#define is_inside_angle(pt)   (angle_change ((pt)->prev, (pt), (pt)->next) < chop_inside_angle)
#define point_in_outline(p, o)
#define same_outline_bounds(outline, other_outline)
#define weighted_edgept_dist(p1, p2, chop_x_y_weight)

Functions

void check_outline_mem ()
void correct_blob_order (TBLOB *blob1, TBLOB *blob2)
void eliminate_duplicate_outlines (TBLOB *blob)
void setup_outline (TESSLINE *outline)
void setup_blob_outlines (TBLOB *blob)

Define Documentation

#define is_inside_angle ( pt   )     (angle_change ((pt)->prev, (pt), (pt)->next) < chop_inside_angle)
#define point_in_outline ( p,
 ) 
Value:
((p)->pos.x >= (o)->topleft.x  &&   \
        (p)->pos.y <= (o)->topleft.y  &&   \
        (p)->pos.x <= (o)->botright.x &&   \
        (p)->pos.y >= (o)->botright.y)     \
#define same_outline_bounds ( outline,
other_outline   ) 
Value:
(outline->topleft.x  == other_outline->topleft.x  && \
        outline->topleft.y  == other_outline->topleft.y  && \
        outline->botright.x == other_outline->botright.x && \
        outline->botright.y == other_outline->botright.y)   \
#define weighted_edgept_dist ( p1,
p2,
chop_x_y_weight   ) 
Value:
(((p1)->pos.x - (p2)->pos.x) *                \
        ((p1)->pos.x - (p2)->pos.x) * chop_x_y_weight +  \
        ((p1)->pos.y - (p2)->pos.y) *               \
        ((p1)->pos.y - (p2)->pos.y))

Function Documentation

void check_outline_mem (  ) 
void correct_blob_order ( TBLOB blob1,
TBLOB blob2 
)
void eliminate_duplicate_outlines ( TBLOB blob  ) 
void setup_blob_outlines ( TBLOB blob  ) 
void setup_outline ( TESSLINE outline  ) 
Generated on Sun Jul 18 17:10:52 2010 for Tesseract by  doxygen 1.6.3