Tesseract 3.01
/data/source/tesseract-ocr/ccstruct/polyaprx.cpp File Reference
#include "mfcpch.h"
#include <stdio.h>
#include "polyaprx.h"
#include "params.h"
#include "tprintf.h"

Defines

#define FASTEDGELENGTH   256
#define EXTERN
#define FIXED   4
#define RUNLENGTH   1
#define DIR   2
#define FLAGS   0
#define fixed_dist   20
#define approx_dist   15

Functions

TESSLINEApproximateOutline (C_OUTLINE *c_outline)
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
const int par1 = 4500 / (approx_dist * approx_dist)
const int par2 = 6750 / (approx_dist * approx_dist)

Define Documentation

#define approx_dist   15
#define DIR   2
#define EXTERN
#define FASTEDGELENGTH   256
#define FIXED   4
#define fixed_dist   20
#define FLAGS   0
#define RUNLENGTH   1

Function Documentation

TESSLINE* ApproximateOutline ( C_OUTLINE c_outline)
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 
)

Variable Documentation

const int par1 = 4500 / (approx_dist * approx_dist)
const int par2 = 6750 / (approx_dist * approx_dist)
EXTERN bool poly_debug = FALSE

"Debug old poly"

EXTERN bool poly_wide_objects_better = TRUE

"More accurate approx on wide things"

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines