tesseract-doxygen/wordrec/gradechop.cpp File Reference

#include "gradechop.h"
#include "olutil.h"
#include "chop.h"
#include "ndminx.h"
#include <math.h>

Defines

#define CENTER_GRADE_CAP   25.0
#define find_bounds_loop(point1, point2, x_min, x_max)

Functions

PRIORITY full_split_priority (SPLIT *split, inT16 xmin, inT16 xmax)
PRIORITY grade_center_of_blob (register BOUNDS_RECT rect)
PRIORITY grade_overlap (register BOUNDS_RECT rect)
PRIORITY grade_split_length (register SPLIT *split)
PRIORITY grade_sharpness (register SPLIT *split)
PRIORITY grade_width_change (register BOUNDS_RECT rect)
void set_outline_bounds (register EDGEPT *point1, register EDGEPT *point2, BOUNDS_RECT rect)

Define Documentation

#define CENTER_GRADE_CAP   25.0
#define find_bounds_loop ( point1,
point2,
x_min,
x_max   ) 
Value:
x_min = point2->pos.x;                               \
        x_max = point2->pos.x;                               \
                                                                                                                                                \
        this_point = point1;                                 \
        do {                                                 \
                x_min = MIN (this_point->pos.x, x_min);           \
                x_max = MAX (this_point->pos.x, x_max);           \
                this_point = this_point->next;                    \
        }                                                    \
        while (this_point != point2 && this_point != point1) \

Function Documentation

PRIORITY full_split_priority ( SPLIT split,
inT16  xmin,
inT16  xmax 
)
PRIORITY grade_center_of_blob ( register BOUNDS_RECT  rect  ) 
PRIORITY grade_overlap ( register BOUNDS_RECT  rect  ) 
PRIORITY grade_sharpness ( register SPLIT split  ) 
PRIORITY grade_split_length ( register SPLIT split  ) 
PRIORITY grade_width_change ( register BOUNDS_RECT  rect  ) 
void set_outline_bounds ( register EDGEPT point1,
register EDGEPT point2,
BOUNDS_RECT  rect 
)
Generated on Sun Jul 18 17:10:52 2010 for Tesseract by  doxygen 1.6.3