Definition at line 67 of file tablerecog_test.cc.
◆ InsertCellsInLines()
void tesseract::SharedTest::InsertCellsInLines |
( |
| ) |
|
|
inlineprotected |
Definition at line 135 of file tablerecog_test.cc.
135 {
136 for (
int y = 10;
y <= 50;
y += 10) {
137 for (
int x = 100;
x <= 450;
x += 50) {
139 }
140 }
141 }
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.
118 {
122
124 add_it.add_after_stay_put(part);
125 }
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.
103 {
106 for (
int i = 10;
i <= 50;
i += 10) {
108 }
109 for (
int i = 100;
i <= 450;
i += 50) {
111 }
112
113 for (
int i = 100;
i <= 200;
i += 20) {
115 }
116 }
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.
92 {
93 TBOX box(left, bottom, right, top);
95 part->set_median_width(3);
96 part->set_median_height(3);
98
100 add_it.add_after_stay_put(part);
101 }
std::unique_ptr< ColPartitionGrid > text_grid_
◆ InsertPartitions()
void tesseract::SharedTest::InsertPartitions |
( |
| ) |
|
|
inlineprotected |
Definition at line 84 of file tablerecog_test.cc.
84 {
85 for (int row = 0; row < 800; row += 20) {
86 for (int col = 0; col < 500; col += 25) {
88 }
89 }
90 }
◆ InsertVerticalLine()
void tesseract::SharedTest::InsertVerticalLine |
( |
int |
x, |
|
|
int |
bottom, |
|
|
int |
top |
|
) |
| |
|
inlineprotected |
◆ SetUp()
void tesseract::SharedTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ TearDown()
void tesseract::SharedTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 77 of file tablerecog_test.cc.
77 {
79 for (memory.mark_cycle_pt(); !memory.cycled_list(); memory.forward()) {
80 memory.data()->DeleteBoxes();
81 }
82 }
◆ 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: