Definition at line 67 of file tablerecog_test.cc.
◆ InsertCellsInLines()
void tesseract::SharedTest::InsertCellsInLines |
( |
| ) |
|
|
inlineprotected |
Definition at line 135 of file tablerecog_test.cc.
136 for (
int y = 10; y <= 50; y += 10) {
137 for (
int x = 100; x <= 450; x += 50) {
void InsertPartition(int left, int bottom, int right, int top)
◆ InsertHorizontalLine()
void tesseract::SharedTest::InsertHorizontalLine |
( |
int |
left, |
|
|
int |
right, |
|
|
int |
y |
|
) |
| |
|
inlineprotected |
Definition at line 118 of file tablerecog_test.cc.
124 add_it.add_after_stay_put(part);
static ColPartition * FakePartition(const TBOX &box, PolyBlockType block_type, BlobRegionType blob_type, BlobTextFlowType flow)
ColPartition_LIST allocated_parts_
std::unique_ptr< ColPartitionGrid > line_grid_
◆ InsertLines()
void tesseract::SharedTest::InsertLines |
( |
| ) |
|
|
inlineprotected |
Definition at line 103 of file tablerecog_test.cc.
106 for (
int i = 10; i <= 50; i += 10) {
109 for (
int i = 100; i <= 450; i += 50) {
113 for (
int i = 100; i <= 200; i += 20) {
void set_to_given_coords(int x_min, int y_min, int x_max, int y_max)
void InsertVerticalLine(int x, int bottom, int top)
void InsertHorizontalLine(int left, int right, int y)
◆ InsertPartition()
void tesseract::SharedTest::InsertPartition |
( |
int |
left, |
|
|
int |
bottom, |
|
|
int |
right, |
|
|
int |
top |
|
) |
| |
|
inlineprotected |
Definition at line 92 of file tablerecog_test.cc.
93 TBOX box(left, bottom, right, top);
95 part->set_median_width(3);
96 part->set_median_height(3);
100 add_it.add_after_stay_put(part);
std::unique_ptr< ColPartitionGrid > text_grid_
◆ InsertPartitions()
void tesseract::SharedTest::InsertPartitions |
( |
| ) |
|
|
inlineprotected |
Definition at line 84 of file tablerecog_test.cc.
85 for (
int row = 0; row < 800; row += 20) {
86 for (
int col = 0; col < 500; col += 25) {
◆ InsertVerticalLine()
void tesseract::SharedTest::InsertVerticalLine |
( |
int |
x, |
|
|
int |
bottom, |
|
|
int |
top |
|
) |
| |
|
inlineprotected |
◆ SetUp()
void tesseract::SharedTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 69 of file tablerecog_test.cc.
70 std::locale::global(std::locale(
""));
72 ICOORD tright(1000, 1000);
73 text_grid_ = std::make_unique<ColPartitionGrid>(5, bleft, tright);
74 line_grid_ = std::make_unique<ColPartitionGrid>(5, bleft, tright);
◆ TearDown()
void tesseract::SharedTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 77 of file tablerecog_test.cc.
79 for (memory.mark_cycle_pt(); !memory.cycled_list(); memory.forward()) {
80 memory.data()->DeleteBoxes();
◆ allocated_parts_
ColPartition_LIST tesseract::SharedTest::allocated_parts_ |
|
protected |
◆ line_box_
TBOX tesseract::SharedTest::line_box_ |
|
protected |
◆ line_grid_
◆ text_grid_
The documentation for this class was generated from the following file: