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
bestfirst.h
Go to the documentation of this file.
1
/* -*-C-*-
2
********************************************************************************
3
*
4
* File: bestfirst.h (Formerly bestfirst.h)
5
* Description: Best first search functions
6
* Author: Mark Seaman, OCR Technology
7
* Created: Mon May 14 11:23:29 1990
8
* Modified: Mon Apr 29 14:21:57 1991 (Mark Seaman) marks@hpgrlt
9
* Language: C
10
* Package: N/A
11
* Status: Experimental (Do Not Distribute)
12
*
13
* (c) Copyright 1990, Hewlett-Packard Company.
14
** Licensed under the Apache License, Version 2.0 (the "License");
15
** you may not use this file except in compliance with the License.
16
** You may obtain a copy of the License at
17
** http://www.apache.org/licenses/LICENSE-2.0
18
** Unless required by applicable law or agreed to in writing, software
19
** distributed under the License is distributed on an "AS IS" BASIS,
20
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
** See the License for the specific language governing permissions and
22
** limitations under the License.
23
*
24
*******************************************************************************/
25
26
#ifndef BESTFIRST_H
27
#define BESTFIRST_H
28
29
/*----------------------------------------------------------------------
30
I n c l u d e s
31
----------------------------------------------------------------------*/
32
33
#include "
associate.h
"
34
#include "
blobs.h
"
35
#include "
closed.h
"
36
#include "
oldheap.h
"
37
#include "
ratngs.h
"
38
#include "
seam.h
"
39
#include "
states.h
"
40
#include "
stopper.h
"
41
42
/*----------------------------------------------------------------------
43
T y p e s
44
----------------------------------------------------------------------*/
45
struct
SEARCH_RECORD
46
{
47
HEAP
*
open_states
;
48
HASH_TABLE
closed_states
;
49
STATE
*
this_state
;
50
STATE
*
first_state
;
51
STATE
*
best_state
;
52
int
num_joints
;
53
long
num_states
;
54
long
before_best
;
55
float
segcost_bias
;
56
WERD_CHOICE
*
best_choice
;
57
WERD_CHOICE
*
raw_choice
;
58
BLOB_CHOICE_LIST_VECTOR
*
best_char_choices
;
59
};
60
61
62
/*----------------------------------------------------------------------
63
F u n c t i o n s
64
----------------------------------------------------------------------*/
65
int
chunks_width
(
WIDTH_RECORD
*width_record,
int
start_chunk,
int
last_chunk);
66
int
chunks_gap
(
WIDTH_RECORD
*width_record,
int
last_chunk);
67
STATE
*
pop_queue
(
HEAP
*queue);
68
void
replace_char_widths
(
CHUNKS_RECORD
*chunks_record,
SEARCH_STATE
state);
69
70
#endif
SEARCH_RECORD::best_choice
WERD_CHOICE * best_choice
Definition:
bestfirst.h:56
chunks_gap
int chunks_gap(WIDTH_RECORD *width_record, int last_chunk)
SEARCH_RECORD::best_state
STATE * best_state
Definition:
bestfirst.h:51
blobs.h
SEARCH_RECORD::before_best
long before_best
Definition:
bestfirst.h:54
SEARCH_RECORD
Definition:
bestfirst.h:45
SEARCH_RECORD::raw_choice
WERD_CHOICE * raw_choice
Definition:
bestfirst.h:57
states.h
CHUNKS_RECORD
Definition:
associate.h:51
GenericVector
Definition:
baseapi.h:36
SEARCH_RECORD::num_joints
int num_joints
Definition:
bestfirst.h:52
oldheap.h
stopper.h
chunks_width
int chunks_width(WIDTH_RECORD *width_record, int start_chunk, int last_chunk)
SEARCH_RECORD::first_state
STATE * first_state
Definition:
bestfirst.h:50
SEARCH_RECORD::best_char_choices
BLOB_CHOICE_LIST_VECTOR * best_char_choices
Definition:
bestfirst.h:58
ratngs.h
closed.h
replace_char_widths
void replace_char_widths(CHUNKS_RECORD *chunks_record, SEARCH_STATE state)
seam.h
SEARCH_RECORD::num_states
long num_states
Definition:
bestfirst.h:53
WIDTH_RECORD
Definition:
blobs.h:47
SEARCH_RECORD::open_states
HEAP * open_states
Definition:
bestfirst.h:47
HEAP
Definition:
oldheap.h:37
SEARCH_RECORD::this_state
STATE * this_state
Definition:
bestfirst.h:49
WERD_CHOICE
Definition:
ratngs.h:186
STATE
Definition:
states.h:39
SEARCH_RECORD::closed_states
HASH_TABLE closed_states
Definition:
bestfirst.h:48
associate.h
pop_queue
STATE * pop_queue(HEAP *queue)
SEARCH_STATE
int * SEARCH_STATE
Definition:
states.h:46
SEARCH_RECORD::segcost_bias
float segcost_bias
Definition:
bestfirst.h:55
home
abuild
rpmbuild
BUILD
tesseract-ocr-3.02.02
wordrec
bestfirst.h
Generated on Wed Apr 2 2014 09:07:07 for Tesseract by
1.8.6