tesseract-doxygen/wordrec/chop.h File Reference

#include "oldheap.h"
#include "seam.h"

Go to the source code of this file.

Defines

#define MAX_NUM_POINTS   50

Typedefs

typedef HEAPPOINT_GROUP
typedef HEAPSPLIT_GROUP

Variables

int chop_debug = 0
bool chop_enable = 1
bool chop_vertical_creep = 0
int chop_split_length = 10000
int chop_same_distance = 2
int chop_min_outline_points = 6
int chop_inside_angle = -50
int chop_min_outline_area = 2000
double chop_split_dist_knob = 0.5
double chop_overlap_knob = 0.9
double chop_center_knob = 0.15
double chop_sharpness_knob = 0.06
double chop_width_change_knob = 5.0
double chop_ok_split = 100.0
double chop_good_split = 50.0
int chop_x_y_weight = 3

point_bend_angle

Measure the angle of bend at this edge point. The argument should be of type EDGEPT.



#define point_bend_angle(point)   (angle_change ((point)->prev, (point), (point)->next))
PRIORITY point_priority (EDGEPT *point)
void add_point_to_list (POINT_GROUP point_list, EDGEPT *point)
int angle_change (EDGEPT *point1, EDGEPT *point2, EDGEPT *point3)
int is_little_chunk (EDGEPT *point1, EDGEPT *point2)
int is_small_area (EDGEPT *point1, EDGEPT *point2)
EDGEPTpick_close_point (EDGEPT *critical_point, EDGEPT *vertical_point, int *best_dist)
void prioritize_points (TESSLINE *outline, POINT_GROUP points)
void new_min_point (EDGEPT *local_min, POINT_GROUP points)
void new_max_point (EDGEPT *local_max, POINT_GROUP points)
void vertical_projection_point (EDGEPT *split_point, EDGEPT *target_point, EDGEPT **best_point)

Define Documentation

#define MAX_NUM_POINTS   50
#define point_bend_angle ( point   )     (angle_change ((point)->prev, (point), (point)->next))

Typedef Documentation

typedef HEAP* POINT_GROUP
typedef HEAP* SPLIT_GROUP

Function Documentation

void add_point_to_list ( POINT_GROUP  point_list,
EDGEPT point 
)
int angle_change ( EDGEPT point1,
EDGEPT point2,
EDGEPT point3 
)
int is_little_chunk ( EDGEPT point1,
EDGEPT point2 
)
int is_small_area ( EDGEPT point1,
EDGEPT point2 
)
void new_max_point ( EDGEPT local_max,
POINT_GROUP  points 
)
void new_min_point ( EDGEPT local_min,
POINT_GROUP  points 
)
EDGEPT* pick_close_point ( EDGEPT critical_point,
EDGEPT vertical_point,
int *  best_dist 
)
PRIORITY point_priority ( EDGEPT point  ) 
void prioritize_points ( TESSLINE outline,
POINT_GROUP  points 
)
void vertical_projection_point ( EDGEPT split_point,
EDGEPT target_point,
EDGEPT **  best_point 
)

Variable Documentation

double chop_center_knob = 0.15

"Split center adjustment"

int chop_debug = 0

"Chop debug"

"Chop enable"

double chop_good_split = 50.0

"Good split limit"

int chop_inside_angle = -50

"Min Inside Angle Bend"

"Min Outline Area"

"Min Number of Points on Outline"

double chop_ok_split = 100.0

"OK split limit"

double chop_overlap_knob = 0.9

"Split overlap adjustment"

"Same distance"

double chop_sharpness_knob = 0.06

"Split sharpness adjustment"

double chop_split_dist_knob = 0.5

"Split length adjustment"

int chop_split_length = 10000

"Split Length"

"Vertical creep"

double chop_width_change_knob = 5.0

"Width change adjustment"

int chop_x_y_weight = 3

"X / Y length weight"

Generated on Sun Jul 18 17:10:52 2010 for Tesseract by  doxygen 1.6.3