Tesseract 3.02

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
polyaprx.h
Go to the documentation of this file.
1 /**********************************************************************
2 * File: polyaprx.h (Formerly polygon.h)
3 * Description: Code for polygonal approximation from old edgeprog.
4 * Author: Ray Smith
5 * Created: Thu Nov 25 11:42:04 GMT 1993
6 *
7 * (C) Copyright 1993, Hewlett-Packard Ltd.
8 ** Licensed under the Apache License, Version 2.0 (the "License");
9 ** you may not use this file except in compliance with the License.
10 ** You may obtain a copy of the License at
11 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 *
18 **********************************************************************/
19
20 #ifndef POLYAPRX_H
21 #define POLYAPRX_H
22
23 #include "blobs.h"
24 #include "coutln.h"
25
26 // convert a chain-coded input to the old OUTLINE approximation
27 TESSLINE* ApproximateOutline(C_OUTLINE *c_outline);
28 EDGEPT *edgesteps_to_edgepts ( //convert outline
29 C_OUTLINE * c_outline, //input
30 EDGEPT edgepts[] //output is array
31 );
32 void fix2( //polygonal approx
33 EDGEPT *start, /*loop to approimate */
34 int area);
35 EDGEPT *poly2( //second poly
36 EDGEPT *startpt, /*start of loop */
37 int area /*area of blob box */
38 );
39 void cutline( //recursive refine
40 EDGEPT *first, /*ends of line */
41 EDGEPT *last,
42 int area /*area of object */
43 );
44 #endif