mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +08:00
Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>).
This commit is contained in:
parent
96f8f853c8
commit
0248c7ff9d
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSERACT_API_BASEAPI_H_
|
#ifndef TESSERACT_API_BASEAPI_H_
|
||||||
#define TESSERACT_API_BASEAPI_H_
|
#define TESSERACT_API_BASEAPI_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
// To avoid collision with other typenames include the ABSOLUTE MINIMUM
|
// To avoid collision with other typenames include the ABSOLUTE MINIMUM
|
||||||
// complexity of includes here. Use forward declarations wherever possible
|
// complexity of includes here. Use forward declarations wherever possible
|
||||||
// and hide includes of complex types in baseapi.cpp.
|
// and hide includes of complex types in baseapi.cpp.
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
// Implementation for non-avx archs.
|
// Implementation for non-avx archs.
|
||||||
|
|
||||||
#include "dotproductavx.h"
|
#include "dotproductavx.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
double DotProductAVX(const double* u, const double* v, int n) {
|
double DotProductAVX(const double* u, const double* v, int n) {
|
||||||
@ -33,7 +33,7 @@ double DotProductAVX(const double* u, const double* v, int n) {
|
|||||||
#else // !defined(__AVX__)
|
#else // !defined(__AVX__)
|
||||||
// Implementation for avx capable archs.
|
// Implementation for avx capable archs.
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include "dotproductavx.h"
|
#include "dotproductavx.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
// This code can't compile with "-msse4.1", so use dummy stubs.
|
// This code can't compile with "-msse4.1", so use dummy stubs.
|
||||||
|
|
||||||
#include "dotproductsse.h"
|
#include "dotproductsse.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
double DotProductSSE(const double* u, const double* v, int n) {
|
double DotProductSSE(const double* u, const double* v, int n) {
|
||||||
@ -39,7 +39,7 @@ int32_t IntDotProductSSE(const int8_t* u, const int8_t* v, int n) {
|
|||||||
|
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#include <smmintrin.h>
|
#include <smmintrin.h>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include "dotproductsse.h"
|
#include "dotproductsse.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef TESSERACT_ARCH_INTSIMDMATRIX_H_
|
#ifndef TESSERACT_ARCH_INTSIMDMATRIX_H_
|
||||||
#define TESSERACT_ARCH_INTSIMDMATRIX_H_
|
#define TESSERACT_ARCH_INTSIMDMATRIX_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#ifdef __AVX2__
|
#ifdef __AVX2__
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "intsimdmatrixsse.h"
|
#include "intsimdmatrixsse.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "dotproductsse.h"
|
#include "dotproductsse.h"
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
// tesseract from the ui.
|
// tesseract from the ui.
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#else
|
#else
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "tessvars.h"
|
#include "tessvars.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSVARS_H
|
#ifndef TESSVARS_H
|
||||||
#define TESSVARS_H
|
#define TESSVARS_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|
||||||
extern FILE *debug_fp; // write debug stuff here
|
extern FILE *debug_fp; // write debug stuff here
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "blamer.h"
|
#include "blamer.h"
|
||||||
#include "errcode.h"
|
#include "errcode.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#ifndef TESSERACT_CCSTRUCT_BLAMER_H_
|
#ifndef TESSERACT_CCSTRUCT_BLAMER_H_
|
||||||
#define TESSERACT_CCSTRUCT_BLAMER_H_
|
#define TESSERACT_CCSTRUCT_BLAMER_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "boxword.h"
|
#include "boxword.h"
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_BOXREAD_H_
|
#ifndef TESSERACT_CCUTIL_BOXREAD_H_
|
||||||
#define TESSERACT_CCUTIL_BOXREAD_H_
|
#define TESSERACT_CCUTIL_BOXREAD_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
#include "strngs.h"
|
#include "strngs.h"
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#ifndef TESSERACT_CCSTRUCT_MATRIX_H_
|
#ifndef TESSERACT_CCSTRUCT_MATRIX_H_
|
||||||
#define TESSERACT_CCSTRUCT_MATRIX_H_
|
#define TESSERACT_CCSTRUCT_MATRIX_H_
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "kdpair.h"
|
#include "kdpair.h"
|
||||||
#include "points.h"
|
#include "points.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "normalis.h"
|
#include "normalis.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "blobs.h"
|
#include "blobs.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef NORMALIS_H
|
#ifndef NORMALIS_H
|
||||||
#define NORMALIS_H
|
#define NORMALIS_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "ocrblock.h"
|
#include "ocrblock.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <memory> // std::unique_ptr
|
#include <memory> // std::unique_ptr
|
||||||
#include "blckerr.h"
|
#include "blckerr.h"
|
||||||
#include "stepblob.h"
|
#include "stepblob.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "ocrpara.h"
|
#include "ocrpara.h"
|
||||||
#include "host.h" // For NearlyEqual()
|
#include "host.h" // For NearlyEqual()
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef OCRROW_H
|
#ifndef OCRROW_H
|
||||||
#define OCRROW_H
|
#define OCRROW_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "quspline.h"
|
#include "quspline.h"
|
||||||
#include "werd.h"
|
#include "werd.h"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "pdblock.h"
|
#include "pdblock.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <memory> // std::unique_ptr
|
#include <memory> // std::unique_ptr
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "blckerr.h"
|
#include "blckerr.h"
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
#include "polyblk.h"
|
#include "polyblk.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <memory> // std::unique_ptr
|
#include <memory> // std::unique_ptr
|
||||||
#include "elst.h"
|
#include "elst.h"
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "quadlsq.h"
|
#include "quadlsq.h"
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef RECT_H
|
#ifndef RECT_H
|
||||||
#define RECT_H
|
#define RECT_H
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "points.h"
|
#include "points.h"
|
||||||
#include "ndminx.h"
|
#include "ndminx.h"
|
||||||
#include "scrollview.h"
|
#include "scrollview.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSERACT_CCSTRUCT_STATISTC_H_
|
#ifndef TESSERACT_CCSTRUCT_STATISTC_H_
|
||||||
#define TESSERACT_CCSTRUCT_STATISTC_H_
|
#define TESSERACT_CCSTRUCT_STATISTC_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "kdpair.h"
|
#include "kdpair.h"
|
||||||
#include "scrollview.h"
|
#include "scrollview.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#ifndef VECFUNCS_H
|
#ifndef VECFUNCS_H
|
||||||
#define VECFUNCS_H
|
#define VECFUNCS_H
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
struct EDGEPT;
|
struct EDGEPT;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "ambigs.h"
|
#include "ambigs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "universalambigs.h"
|
#include "universalambigs.h"
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_BITVECTOR_H_
|
#ifndef TESSERACT_CCUTIL_BITVECTOR_H_
|
||||||
#define TESSERACT_CCUTIL_BITVECTOR_H_
|
#define TESSERACT_CCUTIL_BITVECTOR_H_
|
||||||
|
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "clst.h"
|
#include "clst.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef CLST_H
|
#ifndef CLST_H
|
||||||
#define CLST_H
|
#define CLST_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
#include "lsterr.h"
|
#include "lsterr.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "elst.h"
|
#include "elst.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef ELST_H
|
#ifndef ELST_H
|
||||||
#define ELST_H
|
#define ELST_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
#include "lsterr.h"
|
#include "lsterr.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "elst2.h"
|
#include "elst2.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef ELST2_H
|
#ifndef ELST2_H
|
||||||
#define ELST2_H
|
#define ELST2_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
#include "lsterr.h"
|
#include "lsterr.h"
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_GENERICVECTOR_H_
|
#ifndef TESSERACT_CCUTIL_GENERICVECTOR_H_
|
||||||
#define TESSERACT_CCUTIL_GENERICVECTOR_H_
|
#define TESSERACT_CCUTIL_GENERICVECTOR_H_
|
||||||
|
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "tesscallback.h"
|
#include "tesscallback.h"
|
||||||
#include "errcode.h"
|
#include "errcode.h"
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
#define TESSERACT_CCUTIL_HELPERS_H_
|
#define TESSERACT_CCUTIL_HELPERS_H_
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_INDEXMAPBIDI_H_
|
#ifndef TESSERACT_CCUTIL_INDEXMAPBIDI_H_
|
||||||
#define TESSERACT_CCUTIL_INDEXMAPBIDI_H_
|
#define TESSERACT_CCUTIL_INDEXMAPBIDI_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_QRSEQUENCE_H_
|
#ifndef TESSERACT_CCUTIL_QRSEQUENCE_H_
|
||||||
#define TESSERACT_CCUTIL_QRSEQUENCE_H_
|
#define TESSERACT_CCUTIL_QRSEQUENCE_H_
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
class QRSequenceGenerator {
|
class QRSequenceGenerator {
|
||||||
public:
|
public:
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
#include "config_auto.h"
|
#include "config_auto.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_SCANUTILS_H_
|
#ifndef TESSERACT_CCUTIL_SCANUTILS_H_
|
||||||
#define TESSERACT_CCUTIL_SCANUTILS_H_
|
#define TESSERACT_CCUTIL_SCANUTILS_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef SERIALIS_H
|
#ifndef SERIALIS_H
|
||||||
#define SERIALIS_H
|
#define SERIALIS_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
|
||||||
template <typename T> class GenericVector;
|
template <typename T> class GenericVector;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef TESSERACT_CCUTIL_SORTHELPER_H_
|
#ifndef TESSERACT_CCUTIL_SORTHELPER_H_
|
||||||
#define TESSERACT_CCUTIL_SORTHELPER_H_
|
#define TESSERACT_CCUTIL_SORTHELPER_H_
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
|
|
||||||
// Generic class to provide functions based on a <value,count> pair.
|
// Generic class to provide functions based on a <value,count> pair.
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef STRNGS_H
|
#ifndef STRNGS_H
|
||||||
#define STRNGS_H
|
#define STRNGS_H
|
||||||
|
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include "memry.h"
|
#include "memry.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "tessdatamanager.h"
|
#include "tessdatamanager.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
#include "unicharset.h"
|
#include "unicharset.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
#include "oldlist.h"
|
#include "oldlist.h"
|
||||||
#include "intproto.h"
|
#include "intproto.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -55,10 +55,10 @@
|
|||||||
#include "unicharset.h"
|
#include "unicharset.h"
|
||||||
#include "werd.h"
|
#include "werd.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#define HOTELLING 1 // If true use Hotelling's test to decide where to split.
|
#define HOTELLING 1 // If true use Hotelling's test to decide where to split.
|
||||||
#define FTABLE_X 10 // Size of FTable.
|
#define FTABLE_X 10 // Size of FTable.
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include "emalloc.h"
|
#include "emalloc.h"
|
||||||
#include "scanutils.h"
|
#include "scanutils.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
using tesseract::TFile;
|
using tesseract::TFile;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#define TESSERACT_CLASSIFY_CLUSTTOOL_H_
|
#define TESSERACT_CLASSIFY_CLUSTTOOL_H_
|
||||||
|
|
||||||
//--------------------------Include Files---------------------------------------
|
//--------------------------Include Files---------------------------------------
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "cluster.h"
|
#include "cluster.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "serialis.h"
|
#include "serialis.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
#include "cutoffs.h"
|
#include "cutoffs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
#include "efio.h"
|
#include "efio.h"
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include "scanutils.h"
|
#include "scanutils.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
/** define errors triggered by this module */
|
/** define errors triggered by this module */
|
||||||
#define ILLEGAL_NUM_SETS 3001
|
#define ILLEGAL_NUM_SETS 3001
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
Include Files and Type Defines
|
Include Files and Type Defines
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------**/
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
/* define data structure to hold 2D points or vectors using floating point */
|
/* define data structure to hold 2D points or vectors using floating point */
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "blobs.h"
|
#include "blobs.h"
|
||||||
#include "intproto.h"
|
#include "intproto.h"
|
||||||
#include "normalis.h"
|
#include "normalis.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
class DENORM;
|
class DENORM;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
#include "shapetable.h"
|
#include "shapetable.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
using tesseract::ScoredFont;
|
using tesseract::ScoredFont;
|
||||||
using tesseract::UnicharRating;
|
using tesseract::UnicharRating;
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
Include Files and Type Defines
|
Include Files and Type Defines
|
||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include "kdtree.h"
|
#include "kdtree.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "emalloc.h"
|
#include "emalloc.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#define Magnitude(X) ((X) < 0 ? -(X) : (X))
|
#define Magnitude(X) ((X) < 0 ? -(X) : (X))
|
||||||
#define NodeFound(N,K,D) (( (N)->Key == (K) ) && ( (N)->Data == (D) ))
|
#define NodeFound(N,K,D) (( (N)->Key == (K) ) && ( (N)->Data == (D) ))
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mastertrainer.h"
|
#include "mastertrainer.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "boxread.h"
|
#include "boxread.h"
|
||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "mfdefs.h"
|
#include "mfdefs.h"
|
||||||
#include "mfx.h"
|
#include "mfx.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Global Data Definitions and Declarations
|
Global Data Definitions and Declarations
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------**/
|
||||||
#include "mfdefs.h"
|
#include "mfdefs.h"
|
||||||
#include "emalloc.h"
|
#include "emalloc.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
#include "params.h"
|
#include "params.h"
|
||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "normalis.h"
|
#include "normalis.h"
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Variables
|
Variables
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
#include "normmatch.h"
|
#include "normmatch.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
#include "clusttool.h"
|
#include "clusttool.h"
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include "scanutils.h"
|
#include "scanutils.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------**/
|
||||||
#include "blobs.h"
|
#include "blobs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
class DENORM;
|
class DENORM;
|
||||||
struct INT_FX_RESULT_STRUCT;
|
struct INT_FX_RESULT_STRUCT;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "mfoutline.h"
|
#include "mfoutline.h"
|
||||||
#include "ocrfeatures.h"
|
#include "ocrfeatures.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
#include "params.h"
|
#include "params.h"
|
||||||
#include "trainingsample.h"
|
#include "trainingsample.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
Variables
|
Variables
|
||||||
|
@ -35,8 +35,8 @@
|
|||||||
#include "classify.h"
|
#include "classify.h"
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#define PROTO_INCREMENT 32
|
#define PROTO_INCREMENT 32
|
||||||
#define CONFIG_INCREMENT 16
|
#define CONFIG_INCREMENT 16
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
#include "bitvec.h"
|
#include "bitvec.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "emalloc.h"
|
#include "emalloc.h"
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
|
@ -42,7 +42,7 @@ Import original HP distribution
|
|||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
#include "callcpp.h"
|
#include "callcpp.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#define RESET_COUNT 2000
|
#define RESET_COUNT 2000
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ Import original HP distribution
|
|||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
I n c l u d e s
|
I n c l u d e s
|
||||||
----------------------------------------------------------------------*/
|
----------------------------------------------------------------------*/
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This routine prints the specified error message to stderr.
|
* This routine prints the specified error message to stderr.
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
#include "efio.h"
|
#include "efio.h"
|
||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#define MAXERRORMESSAGE 256
|
#define MAXERRORMESSAGE 256
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
/**----------------------------------------------------------------------------
|
/**----------------------------------------------------------------------------
|
||||||
Include Files and Type Defines
|
Include Files and Type Defines
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------**/
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#define FOPENERROR 3000
|
#define FOPENERROR 3000
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
#include "emalloc.h"
|
#include "emalloc.h"
|
||||||
#include "danerror.h"
|
#include "danerror.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "unicharset.h"
|
#include "unicharset.h"
|
||||||
#include "strngs.h"
|
#include "strngs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#include "oldlist.h"
|
#include "oldlist.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "structures.h"
|
#include "structures.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
----------------------------------------------------------------------*/
|
----------------------------------------------------------------------*/
|
||||||
#include "structures.h"
|
#include "structures.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "dict.h"
|
#include "dict.h"
|
||||||
#include "unicodes.h"
|
#include "unicodes.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Include Files and Type Defines
|
Include Files and Type Defines
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------**/
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "unichar.h"
|
#include "unichar.h"
|
||||||
|
|
||||||
/* define the maximum number of classes defined for any matcher
|
/* define the maximum number of classes defined for any matcher
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "stopper.h"
|
#include "stopper.h"
|
||||||
#include "ambigs.h"
|
#include "ambigs.h"
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
#include "networkscratch.h"
|
#include "networkscratch.h"
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#if !defined(__GNUC__) && defined(_MSC_VER)
|
#if !defined(__GNUC__) && defined(_MSC_VER)
|
||||||
#include <intrin.h> // _BitScanReverse
|
#include <intrin.h> // _BitScanReverse
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
// This base class needs to know about all its sub-classes because of the
|
// This base class needs to know about all its sub-classes because of the
|
||||||
// factory deserializing method: CreateFromFile.
|
// factory deserializing method: CreateFromFile.
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef TESSERACT_LSTM_NETWORK_H_
|
#ifndef TESSERACT_LSTM_NETWORK_H_
|
||||||
#define TESSERACT_LSTM_NETWORK_H_
|
#define TESSERACT_LSTM_NETWORK_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
#ifndef TESSERACT_LSTM_NETWORKIO_H_
|
#ifndef TESSERACT_LSTM_NETWORKIO_H_
|
||||||
#define TESSERACT_LSTM_NETWORKIO_H_
|
#define TESSERACT_LSTM_NETWORKIO_H_
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "reversed.h"
|
#include "reversed.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "networkscratch.h"
|
#include "networkscratch.h"
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <OpenCL/cl.h>
|
#include <OpenCL/cl.h>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#if ON_APPLE
|
#if ON_APPLE
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CALLOC LEPT_CALLOC
|
#define CALLOC LEPT_CALLOC
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#ifndef TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
#ifndef TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
||||||
#define TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
#define TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "pix.h"
|
#include "pix.h"
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include "baselinedetect.h"
|
#include "baselinedetect.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "blobbox.h"
|
#include "blobbox.h"
|
||||||
#include "detlinefit.h"
|
#include "detlinefit.h"
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "errcode.h"
|
#include "errcode.h"
|
||||||
#include "drawtord.h"
|
#include "drawtord.h"
|
||||||
#include "blkocc.h"
|
#include "blkocc.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "strokewidth.h"
|
#include "strokewidth.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "blobbox.h"
|
#include "blobbox.h"
|
||||||
#include "colpartition.h"
|
#include "colpartition.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tablefind.h"
|
#include "tablefind.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "boxchar.h"
|
#include "boxchar.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// but doesn't have to be the same as the training data.
|
// but doesn't have to be the same as the training data.
|
||||||
// Author: Ray Smith
|
// Author: Ray Smith
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#ifdef GOOGLE_TESSERACT
|
#ifdef GOOGLE_TESSERACT
|
||||||
#include "base/commandlineflags.h"
|
#include "base/commandlineflags.h"
|
||||||
#endif // GOOGLE_TESSERACT
|
#endif // GOOGLE_TESSERACT
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
#include "clusttool.h"
|
#include "clusttool.h"
|
||||||
#include "cluster.h"
|
#include "cluster.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "unichar.h"
|
#include "unichar.h"
|
||||||
#include "commontraining.h"
|
#include "commontraining.h"
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#ifndef GOOGLE_TESSERACT
|
#ifndef GOOGLE_TESSERACT
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "tprintf.h"
|
#include "tprintf.h"
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include "commontraining.h"
|
#include "commontraining.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include "allheaders.h"
|
#include "allheaders.h"
|
||||||
#include "ccutil.h"
|
#include "ccutil.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "degradeimage.h"
|
#include "degradeimage.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "allheaders.h" // from leptonica
|
#include "allheaders.h" // from leptonica
|
||||||
#include "genericvector.h"
|
#include "genericvector.h"
|
||||||
#include "helpers.h" // For TRand.
|
#include "helpers.h" // For TRand.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user