Definition at line 112 of file equationdetect_test.cc.
◆ AddBlobIntoPart()
void tesseract::EquationFinderTest::AddBlobIntoPart |
( |
const TBOX & |
tbox, |
|
|
ColPartition * |
part |
|
) |
| |
|
inlineprotected |
◆ AddPageBlock()
void tesseract::EquationFinderTest::AddPageBlock |
( |
Pix * |
pix, |
|
|
BLOCK_LIST * |
blocks |
|
) |
| |
|
inlineprotected |
Definition at line 138 of file equationdetect_test.cc.
139 CHECK(pix !=
nullptr);
140 CHECK(blocks !=
nullptr);
141 BLOCK_IT block_it(blocks);
143 new BLOCK(
"",
true, 0, 0, 0, 0, pixGetWidth(pix), pixGetHeight(pix));
144 block_it.add_to_end(block);
◆ ClearParts()
void tesseract::EquationFinderTest::ClearParts |
( |
std::vector< ColPartition * > * |
all_parts | ) |
|
|
inlineprotected |
Definition at line 165 of file equationdetect_test.cc.
166 for (
size_t i = 0; i < all_parts->size(); ++i) {
167 (*all_parts)[i]->DeleteBoxes();
168 delete ((*all_parts)[i]);
◆ CreateColParts()
void tesseract::EquationFinderTest::CreateColParts |
( |
const int |
rows, |
|
|
const int |
cols, |
|
|
ColPartitionGrid * |
part_grid, |
|
|
std::vector< ColPartition * > * |
all_parts |
|
) |
| |
|
inlineprotected |
Definition at line 148 of file equationdetect_test.cc.
151 const int kWidth = 10, kHeight = 10;
153 for (
int y = 0; y < rows; ++y) {
154 for (
int x = 0; x < cols; ++x) {
155 int left = x * kWidth * 2, bottom = y * kHeight * 2;
156 TBOX box(left, bottom, left + kWidth, bottom + kHeight);
159 part_grid->InsertBBox(
true,
true, part);
160 all_parts->push_back(part);
◆ SetUp()
void tesseract::EquationFinderTest::SetUp |
( |
| ) |
|
|
inlineprotected |
◆ TearDown()
void tesseract::EquationFinderTest::TearDown |
( |
| ) |
|
|
inlineprotected |
◆ equation_det_
◆ tesseract_
std::unique_ptr<Tesseract> tesseract::EquationFinderTest::tesseract_ |
|
protected |
◆ testdata_dir_
std::string tesseract::EquationFinderTest::testdata_dir_ |
|
protected |
The documentation for this class was generated from the following file: