Tesseract  3.02
tesseract-ocr/wordrec/gradechop.cpp File Reference
#include "gradechop.h"
#include "wordrec.h"
#include "olutil.h"
#include "chop.h"
#include "ndminx.h"
#include <math.h>

Go to the source code of this file.

Namespaces

namespace  tesseract

Defines

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

Define Documentation

#define CENTER_GRADE_CAP   25.0

Definition at line 38 of file gradechop.cpp.

#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) \

Definition at line 49 of file gradechop.cpp.