#include <matrix.h>
List of all members.
Public Member Functions |
| MATRIX (int dimension) |
void | print (const UNICHARSET &unicharset) const |
| GENERIC_MATRIX (int dimension, const BLOB_CHOICE_LIST *&empty) |
int | dimension () const |
| GENERIC_2D_ARRAY (int dim1, int dim2, const BLOB_CHOICE_LIST *&empty) |
| ~GENERIC_2D_ARRAY () |
bool | Serialize (FILE *fp) const |
bool | DeSerialize (bool swap, FILE *fp) |
bool | SerializeClasses (FILE *fp) const |
bool | DeSerializeClasses (bool swap, FILE *fp) |
int | dim1 () const |
int | dim2 () const |
int | index (int column, int row) const |
void | put (int column, int row, const BLOB_CHOICE_LIST *&thing) |
BLOB_CHOICE_LIST * | get (int column, int row) const |
const BLOB_CHOICE_LIST *& | operator() (int column, int row) const |
BLOB_CHOICE_LIST *& | operator() (int column, int row) |
BLOB_CHOICE_LIST ** | operator[] (int column) |
void | delete_matrix_pointers () |
Detailed Description
Definition at line 193 of file matrix.h.
Constructor & Destructor Documentation
MATRIX::MATRIX |
( |
int |
dimension | ) |
|
|
inline |
Member Function Documentation
void MATRIX::print |
( |
const UNICHARSET & |
unicharset | ) |
const |
Definition at line 36 of file matrix.cpp.
{
tprintf(
"Ratings Matrix (top choices)\n");
int row, col;
for (row = 0; row < this->
dimension(); ++row) {
for (col = 0; col <= row; ++col) {
if (col == 0)
tprintf(
"%d\t", row);
BLOB_CHOICE_LIST *rating = this->get(col, row);
BLOB_CHOICE_IT b_it(rating);
int counter = 0;
for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
++counter;
if (counter == 3) break;
}
} else {
}
}
}
}
The documentation for this class was generated from the following files:
- /mnt/data/src/tesseract-ocr/ccstruct/matrix.h
- /mnt/data/src/tesseract-ocr/ccstruct/matrix.cpp