-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2448 from stweil/pi
Remove local definition of M_PI
- Loading branch information
Showing
18 changed files
with
55 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/****************************************************************************** | ||
** Filename: intfx.c | ||
** Purpose: Integer character normalization & feature extraction | ||
** Author: Robert Moss, [email protected] (Ray Smith) | ||
** History: Tue May 21 15:51:57 MDT 1991, RWM, Created. | ||
** Tue Feb 28 10:42:00 PST 2012, vastly rewritten to allow | ||
greyscale fx and non-linear | ||
normalization. | ||
** Filename: intfx.c | ||
** Purpose: Integer character normalization & feature extraction | ||
** Author: Robert Moss, [email protected] (Ray Smith) | ||
** | ||
** (c) Copyright Hewlett-Packard Company, 1988. | ||
** (c) Copyright Hewlett-Packard Company, 1988. | ||
** Licensed under the Apache License, Version 2.0 (the "License"); | ||
** you may not use this file except in compliance with the License. | ||
** You may obtain a copy of the License at | ||
|
@@ -21,7 +17,10 @@ | |
/**---------------------------------------------------------------------------- | ||
Include Files and Type Defines | ||
----------------------------------------------------------------------------**/ | ||
|
||
#define _USE_MATH_DEFINES // for M_PI | ||
#include "intfx.h" | ||
#include <cmath> // for M_PI | ||
#include "allheaders.h" | ||
#include "ccutil.h" | ||
#include "classify.h" | ||
|
@@ -49,7 +48,7 @@ tesseract::CCUtilMutex atan_table_mutex; | |
/**---------------------------------------------------------------------------- | ||
Public Code | ||
----------------------------------------------------------------------------**/ | ||
/*---------------------------------------------------------------------------*/ | ||
|
||
void InitIntegerFX() { | ||
static bool atan_table_init = false; | ||
atan_table_mutex.Lock(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
// Description: Initial Baseline Determination. | ||
// Copyright 2012 Google Inc. All Rights Reserved. | ||
// Author: [email protected] (Ray Smith) | ||
// Created: Mon Apr 30 10:15:31 PDT 2012 | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
@@ -17,9 +16,7 @@ | |
// | ||
/////////////////////////////////////////////////////////////////////// | ||
|
||
#ifdef _MSC_VER | ||
#define _USE_MATH_DEFINES | ||
#endif // _MSC_VER | ||
#define _USE_MATH_DEFINES // for M_PI | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config_auto.h" | ||
|
@@ -28,8 +25,8 @@ | |
#include "baselinedetect.h" | ||
|
||
#include <algorithm> | ||
#include <cfloat> // for FLT_MAX | ||
#include <cmath> | ||
#include <cfloat> // for FLT_MAX | ||
#include <cmath> // for M_PI | ||
#include "allheaders.h" | ||
#include "blobbox.h" | ||
#include "detlinefit.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters