tesseract-doxygen/ccstruct/polyaprx.cpp File Reference

#include "mfcpch.h"
#include <stdio.h>
#include "polyaprx.h"
#include "tessclas.h"
#include "poutline.h"
#include "coutln.h"
#include "varable.h"
#include "tprintf.h"

Defines

#define FASTEDGELENGTH   256
#define EXTERN
#define CONVEX   1
#define CONCAVE   2
#define FIXED   4
#define ONHULL   8
#define RUNLENGTH   1
#define DIR   2
#define CORRECTION   3
#define FLAGS   0
#define fixed_dist   20
#define approx_dist   15
#define point_diff(p, p1, p2)   (p).x = (p1).x - (p2).x ; (p).y = (p1).y - (p2).y
#define CROSS(a, b)   ((a).x * (b).y - (a).y * (b).x)
#define LENGTH(a)   ((a).x * (a).x + (a).y * (a).y)
#define DISTANCE(a, b)

Functions

OUTLINEtesspoly_outline (C_OUTLINE *c_outline, float)
EDGEPTedgesteps_to_edgepts (C_OUTLINE *c_outline, EDGEPT edgepts[])
void fix2 (EDGEPT *start, int area)
EDGEPTpoly2 (EDGEPT *startpt, int area)
void cutline (EDGEPT *first, EDGEPT *last, int area)

Variables

EXTERN bool poly_debug = FALSE
EXTERN bool poly_wide_objects_better = TRUE

Define Documentation

#define approx_dist   15
#define CONCAVE   2
#define CONVEX   1
#define CORRECTION   3
#define CROSS ( a,
 )     ((a).x * (b).y - (a).y * (b).x)
#define DIR   2
#define DISTANCE ( a,
 ) 
Value:
(((b).x-(a).x) * ((b).x-(a).x) \
                        + ((b).y-(a).y) * ((b).y-(a).y))
#define EXTERN
#define FASTEDGELENGTH   256
#define FIXED   4
#define fixed_dist   20
#define FLAGS   0
#define LENGTH (  )     ((a).x * (a).x + (a).y * (a).y)
#define ONHULL   8
#define point_diff ( p,
p1,
p2   )     (p).x = (p1).x - (p2).x ; (p).y = (p1).y - (p2).y
#define RUNLENGTH   1

Function Documentation

void cutline ( EDGEPT first,
EDGEPT last,
int  area 
)
EDGEPT* edgesteps_to_edgepts ( C_OUTLINE c_outline,
EDGEPT  edgepts[] 
)
void fix2 ( EDGEPT start,
int  area 
)
EDGEPT* poly2 ( EDGEPT startpt,
int  area 
)
OUTLINE* tesspoly_outline ( C_OUTLINE c_outline,
float   
)

Variable Documentation

EXTERN bool poly_debug = FALSE

"Debug old poly"

"More accurate approx on wide things"

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