File tree 23 files changed +189
-201
lines changed
23 files changed +189
-201
lines changed Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: fixxht.cpp (Formerly fixxht.c)
3
3
* Description: Improve x_ht and look out for case inconsistencies
4
- * Author: Phil Cheatle
5
- * Created: Thu Aug 5 14:11:08 BST 1993
4
+ * Author: Phil Cheatle
5
+ * Created: Thu Aug 5 14:11:08 BST 1993
6
6
*
7
7
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: tessvars.cpp (Formerly tessvars.c)
3
3
* Description: Variables and other globals for tessedit.
4
- * Author: Ray Smith
5
- * Created: Mon Apr 13 13:13:23 BST 1992
4
+ * Author: Ray Smith
5
+ * Created: Mon Apr 13 13:13:23 BST 1992
6
6
*
7
7
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* File: tessvars.h (Formerly tessvars.h)
3
3
* Description: Variables and other globals for tessedit.
4
- * Author: Ray Smith
5
- * Created: Mon Apr 13 13:13:23 BST 1992
4
+ * Author: Ray Smith
5
+ * Created: Mon Apr 13 13:13:23 BST 1992
6
6
*
7
7
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef TESSVARS_H
21
- #define TESSVARS_H
20
+ #ifndef TESSVARS_H
21
+ #define TESSVARS_H
22
22
23
23
#include <cstdio>
24
24
25
-
26
25
extern FILE * debug_fp ; // write debug stuff here
26
+
27
27
#endif
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
- * File: crakedge.h (Formerly: crkedge.h)
2
+ * File: crakedge.h (Formerly: crkedge.h)
3
3
* Description: Structures for the Crack following edge detector.
4
- * Author: Ray Smith
5
- * Created: Fri Mar 22 16:06:38 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Fri Mar 22 16:06:38 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef CRAKEDGE_H
21
- #define CRAKEDGE_H
20
+ #ifndef CRAKEDGE_H
21
+ #define CRAKEDGE_H
22
22
23
- #include " points.h"
24
- #include " mod128.h"
23
+ #include " points.h"
24
+ #include " mod128.h"
25
25
26
26
class CRACKEDGE {
27
27
public:
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: linlsq.cpp (Formerly llsq.c)
3
3
* Description: Linear Least squares fitting code.
4
- * Author: Ray Smith
5
- * Created: Thu Sep 12 08:44:51 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Thu Sep 12 08:44:51 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #include < stdio.h>
21
- #include < math.h>
22
- #include " errcode.h"
23
- #include " linlsq.h"
20
+ #include < stdio.h>
21
+ #include < math.h>
22
+ #include " errcode.h"
23
+ #include " linlsq.h"
24
24
25
25
const ERRCODE EMPTY_LLSQ = " Can't delete from an empty LLSQ" ;
26
26
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: ocrblock.h (Formerly block.h)
3
3
* Description: Page block class definition.
4
- * Author: Ray Smith
5
- * Created: Thu Mar 14 17:32:01 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Thu Mar 14 17:32:01 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef OCRBLOCK_H
21
- #define OCRBLOCK_H
20
+ #ifndef OCRBLOCK_H
21
+ #define OCRBLOCK_H
22
22
23
- #include " ocrpara.h"
24
- #include " ocrrow.h"
25
- #include " pdblock.h"
23
+ #include " ocrpara.h"
24
+ #include " ocrrow.h"
25
+ #include " pdblock.h"
26
26
27
27
class BLOCK ; // forward decl
28
28
@@ -208,7 +208,7 @@ class BLOCK:public ELIST_LINK
208
208
FCOORD re_rotation_; // < How to transform coords back to image.
209
209
FCOORD classify_rotation_; // < Apply this before classifying.
210
210
FCOORD skew_; // < Direction of true horizontal.
211
- ICOORD median_size_; // < Median size of blobs.
211
+ ICOORD median_size_; // < Median size of blobs.
212
212
};
213
213
214
214
int decreasing_top_order (const void *row1, const void *row2);
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: ocrrow.cpp (Formerly row.c)
3
3
* Description: Code for the ROW class.
4
- * Author: Ray Smith
5
- * Created: Tue Oct 08 15:58:04 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Tue Oct 08 15:58:04 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #include " ocrrow.h"
21
- #include " blobbox.h"
20
+ #include " ocrrow.h"
21
+ #include " blobbox.h"
22
22
23
23
// Include automatically generated configuration file if running autoconf.
24
24
#ifdef HAVE_CONFIG_H
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: points.cpp (Formerly coords.c)
3
3
* Description: Member functions for coordinate classes.
4
- * Author: Ray Smith
5
- * Created: Fri Mar 15 08:58:17 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Fri Mar 15 08:58:17 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* File: polyaprx.h (Formerly polygon.h)
3
3
* Description: Code for polygonal approximation from old edgeprog.
4
- * Author: Ray Smith
5
- * Created: Thu Nov 25 11:42:04 GMT 1993
4
+ * Author: Ray Smith
5
+ * Created: Thu Nov 25 11:42:04 GMT 1993
6
6
*
7
7
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef POLYAPRX_H
21
- #define POLYAPRX_H
20
+ #ifndef POLYAPRX_H
21
+ #define POLYAPRX_H
22
22
23
- #include "blobs.h"
24
- #include "coutln.h"
23
+ #include "blobs.h"
24
+ #include "coutln.h"
25
25
26
26
// convert a chain-coded input to the old OUTLINE approximation
27
27
TESSLINE * ApproximateOutline (bool allow_detailed_fx , C_OUTLINE * c_outline );
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: polyblk.h (Formerly poly_block.h)
3
3
* Description: Polygonal blocks
4
- * Author: Sheelagh Lloyd?
5
- * Created:
6
4
*
7
5
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
6
** Licensed under the Apache License, Version 2.0 (the "License");
16
14
** limitations under the License.
17
15
*
18
16
**********************************************************************/
19
- #ifndef POLYBLK_H
20
- #define POLYBLK_H
17
+
18
+ #ifndef POLYBLK_H
19
+ #define POLYBLK_H
21
20
22
21
#include " publictypes.h"
23
22
#include " elst.h"
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ enum OcrEngineMode {
278
278
// command-line configs, or if not specified
279
279
// in any of the above should be set to the
280
280
// default OEM_TESSERACT_ONLY.
281
- OEM_COUNT // Number of OEMs
281
+ OEM_COUNT // Number of OEMs
282
282
};
283
283
284
284
} // namespace tesseract.
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: quadlsq.cpp (Formerly qlsq.c)
3
3
* Description: Code for least squares approximation of quadratics.
4
- * Author: Ray Smith
5
- * Created: Wed Oct 6 15:14:23 BST 1993
4
+ * Author: Ray Smith
5
+ * Created: Wed Oct 6 15:14:23 BST 1993
6
6
*
7
7
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: quadlsq.h (Formerly qlsq.h)
3
3
* Description: Code for least squares approximation of quadratics.
4
- * Author: Ray Smith
5
- * Created: Wed Oct 6 15:14:23 BST 1993
4
+ * Author: Ray Smith
5
+ * Created: Wed Oct 6 15:14:23 BST 1993
6
6
*
7
7
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef QUADLSQ_H
21
- #define QUADLSQ_H
20
+ #ifndef QUADLSQ_H
21
+ #define QUADLSQ_H
22
22
23
- #include " points.h"
23
+ #include " points.h"
24
24
25
25
class QLSQ
26
26
{
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: quadratc.h (Formerly quadrtic.h)
3
3
* Description: Code for the QUAD_COEFFS class.
4
- * Author: Ray Smith
5
- * Created: Tue Oct 08 17:24:40 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Tue Oct 08 17:24:40 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef QUADRATC_H
21
- #define QUADRATC_H
20
+ #ifndef QUADRATC_H
21
+ #define QUADRATC_H
22
22
23
- #include " points.h"
23
+ #include " points.h"
24
24
25
25
class QUAD_COEFFS
26
26
{
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: rejctmap.cpp (Formerly rejmap.c)
3
3
* Description: REJ and REJMAP class functions.
4
- * Author: Phil Cheatle
5
- * Created: Thu Jun 9 13:46:38 BST 1994
4
+ * Author: Phil Cheatle
5
+ * Created: Thu Jun 9 13:46:38 BST 1994
6
6
*
7
7
* (C) Copyright 1994, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #include " host.h"
21
- #include " rejctmap.h"
22
- #include " params.h"
20
+ #include " host.h"
21
+ #include " rejctmap.h"
22
+ #include " params.h"
23
23
24
24
bool REJ::perm_rejected () { // Is char perm reject?
25
25
return (flag (R_TESS_FAILURE) ||
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: statistc.h (Formerly stats.h)
3
3
* Description: Class description for STATS class.
4
- * Author: Ray Smith
5
- * Created: Mon Feb 04 16:19:07 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Mon Feb 04 16:19:07 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: stepblob.cpp (Formerly cblob.c)
3
3
* Description: Code for C_BLOB class.
4
- * Author: Ray Smith
5
- * Created: Tue Oct 08 10:41:13 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Tue Oct 08 10:41:13 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: stepblob.h (Formerly cblob.h)
3
3
* Description: Code for C_BLOB class.
4
- * Author: Ray Smith
5
- * Created: Tue Oct 08 10:41:13 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Tue Oct 08 10:41:13 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef STEPBLOB_H
21
- #define STEPBLOB_H
20
+ #ifndef STEPBLOB_H
21
+ #define STEPBLOB_H
22
22
23
- #include " coutln.h"
24
- #include " rect.h"
23
+ #include " coutln.h"
24
+ #include " rect.h"
25
25
26
26
class C_BLOB ;
27
27
struct Pix ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ struct EDGEPT;
41
41
42
42
#define point_diff (p ,p1 ,p2 ) \
43
43
((p).x = (p1).x - (p2).x, \
44
- (p).y = (p1).y - (p2).y)
44
+ (p).y = (p1).y - (p2).y)
45
45
46
46
/**********************************************************************
47
47
* CROSS
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: bits16.h (Formerly bits8.h)
3
3
* Description: Code for 8 bit field class.
4
- * Author: Phil Cheatle
5
- * Created: Thu Oct 17 10:10:05 BST 1991
4
+ * Author: Phil Cheatle
5
+ * Created: Thu Oct 17 10:10:05 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #ifndef BITS16_H
21
- #define BITS16_H
20
+ #ifndef BITS16_H
21
+ #define BITS16_H
22
22
23
23
#include " host.h"
24
24
You can’t perform that action at this time.
0 commit comments