Tesseract
3.02
|
Go to the source code of this file.
Classes | |
struct | STATE |
Macros | |
#define | MAX_NUM_CHUNKS 64 /* Limit on pieces */ |
Typedefs | |
typedef int * | SEARCH_STATE |
typedef uinT8 | PIECES_STATE [MAX_NUM_CHUNKS+2] |
Functions | |
SEARCH_STATE | bin_to_chunks (STATE *state, int num_joints) |
void | bin_to_pieces (STATE *state, int num_joints, PIECES_STATE pieces) |
void | insert_new_chunk (register STATE *state, register int index, int num_joints) |
STATE * | new_state (STATE *oldstate) |
int | ones_in_state (STATE *state, int num_joints) |
void | print_state (const char *label, STATE *state, int num_joints) |
void | print_state (STATE *state, int num_joints, STRING *toappend) |
void | set_n_ones (STATE *state, int n) |
void | free_state (STATE *) |
typedef uinT8 PIECES_STATE[MAX_NUM_CHUNKS+2] |
typedef int* SEARCH_STATE |
SEARCH_STATE bin_to_chunks | ( | STATE * | state, |
int | num_joints | ||
) |
Definition at line 49 of file states.cpp.
void bin_to_pieces | ( | STATE * | state, |
int | num_joints, | ||
PIECES_STATE | pieces | ||
) |
bin_to_pieces
Convert the binary (bit vector) format of a search state to an array of piece counts. This array has a zero element after the last valid character.
Definition at line 99 of file states.cpp.
void free_state | ( | STATE * | ) |
void insert_new_chunk | ( | register STATE * | state, |
register int | index, | ||
int | num_joints | ||
) |
int ones_in_state | ( | STATE * | state, |
int | num_joints | ||
) |
ones_in_state
Return the number of ones that are in this state.
Definition at line 181 of file states.cpp.
void print_state | ( | const char * | label, |
STATE * | state, | ||
int | num_joints | ||
) |
print_state
Print out the current state variable on a line with a label.
Definition at line 214 of file states.cpp.
Definition at line 246 of file states.cpp.