Skip to content

Commit

Permalink
mark 2 functions static (start to cut down on the export bloat)
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@428 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
joregan committed Jul 19, 2010
1 parent 7fee1ed commit 54e610e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions ccmain/docqual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ EXTERN BOOL_VAR (tessedit_reject_bad_qual_wds, TRUE,
EXTERN BOOL_VAR (tessedit_debug_doc_rejection, FALSE, "Page stats");
EXTERN BOOL_VAR (tessedit_debug_quality_metrics, FALSE,
"Output data to debug file");
EXTERN BOOL_VAR (bland_unrej, FALSE, "unrej potential with no chekcs");
EXTERN BOOL_VAR (bland_unrej, FALSE, "unrej potential with no checks");
EXTERN double_VAR (quality_rowrej_pc, 1.1,
"good_quality_doc gte good char limit");

Expand Down Expand Up @@ -124,6 +124,9 @@ EXTERN INT_VAR (crunch_long_repetitions, 3,

EXTERN INT_VAR (crunch_debug, 0, "As it says");

static BOOL8 crude_match_blobs(PBLOB *blob1, PBLOB *blob2);
static void unrej_good_chs(WERD_RES *word, ROW *row);

/*************************************************************************
* word_blob_quality()
* How many blobs in the outword are identical to those of the inword?
Expand Down Expand Up @@ -207,7 +210,7 @@ inT16 word_blob_quality( //Blob seg changes
* crude_match_blobs()
* Check bounding boxes are the same and the number of outlines are the same.
*************************************************************************/
BOOL8 crude_match_blobs(PBLOB *blob1, PBLOB *blob2) {
static BOOL8 crude_match_blobs(PBLOB *blob1, PBLOB *blob2) {
TBOX box1 = blob1->bounding_box();
TBOX box2 = blob2->bounding_box();

Expand Down Expand Up @@ -327,7 +330,7 @@ void word_char_quality(WERD_RES *word,
* unrej_good_chs()
* Unreject POTENTIAL rejects if the blob passes the blob and outline checks
*************************************************************************/
void unrej_good_chs(WERD_RES *word, ROW *row) {
static void unrej_good_chs(WERD_RES *word, ROW *row) {
WERD *bln_word; // BL norm init word
TWERD *tessword; // tess format
WERD *init_word; // BL norm init word
Expand Down
4 changes: 2 additions & 2 deletions ccmain/docqual.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ extern INT_VAR_H (crunch_debug, 0, "As it says");
inT16 word_blob_quality( //Blob seg changes
WERD_RES *word,
ROW *row);
BOOL8 crude_match_blobs(PBLOB *blob1, PBLOB *blob2);
//BOOL8 crude_match_blobs(PBLOB *blob1, PBLOB *blob2);
inT16 word_outline_errs( //Outline count errs
WERD_RES *word);
void word_char_quality( //Blob seg changes
WERD_RES *word,
ROW *row,
inT16 *match_count,
inT16 *accepted_match_count);
void unrej_good_chs(WERD_RES *word, ROW *row);
//void unrej_good_chs(WERD_RES *word, ROW *row);
void print_boxes(WERD *word);
inT16 count_outline_errs(char c, inT16 outline_count);
void reject_whole_page(PAGE_RES_IT &page_res_it);
Expand Down
2 changes: 2 additions & 0 deletions classify/normfeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ FEATURE_SET ExtractCharNormFeatures(TBLOB *Blob, LINE_STATS *LineStats) {
/* compute the normalization statistics for this blob */
Outlines = ConvertBlob (Blob);
#ifdef DEBUG_NORMFEAT
FILE* OFile;
OFile = fopen ("nfOutline.logCPP", "r");
if (OFile == NULL)
{
Expand All @@ -113,6 +114,7 @@ FEATURE_SET ExtractCharNormFeatures(TBLOB *Blob, LINE_STATS *LineStats) {
Feature->Params[CharNormRy] = FXInfo.Ry * Scale;

#ifdef DEBUG_NORMFEAT
FILE* File;
File = fopen ("nfFeatSet.logCPP", "r");
if (File == NULL)
{
Expand Down

0 comments on commit 54e610e

Please sign in to comment.