|
void | SetUp () override |
|
void | TearDown () override |
|
void | MakePartition (int x_min, int y_min, int x_max, int y_max) |
|
void | MakePartition (int x_min, int y_min, int x_max, int y_max, int first_column, int last_column) |
|
void | InsertTextPartition (ColPartition *part) |
|
void | InsertLeaderPartition (int x_min, int y_min, int x_max, int y_max) |
|
void | InsertLeaderPartition (int x_min, int y_min, int x_max, int y_max, int first_column, int last_column) |
|
void | DeletePartitionListBoxes () |
|
| Test () |
|
virtual void | SetUp () |
|
virtual void | TearDown () |
|
Definition at line 61 of file tablefind_test.cc.
◆ DeletePartitionListBoxes()
void tesseract::TableFinderTest::DeletePartitionListBoxes |
( |
| ) |
|
|
inlineprotected |
Definition at line 118 of file tablefind_test.cc.
118 {
119 for (free_boxes_it_.mark_cycle_pt(); !free_boxes_it_.cycled_list(); free_boxes_it_.forward()) {
120 ColPartition *part = free_boxes_it_.data();
121 part->DeleteBoxes();
122 }
123 }
◆ InsertLeaderPartition() [1/2]
void tesseract::TableFinderTest::InsertLeaderPartition |
( |
int |
x_min, |
|
|
int |
y_min, |
|
|
int |
x_max, |
|
|
int |
y_max |
|
) |
| |
|
inlineprotected |
Definition at line 102 of file tablefind_test.cc.
102 {
104 }
void InsertLeaderPartition(int x_min, int y_min, int x_max, int y_max)
◆ InsertLeaderPartition() [2/2]
void tesseract::TableFinderTest::InsertLeaderPartition |
( |
int |
x_min, |
|
|
int |
y_min, |
|
|
int |
x_max, |
|
|
int |
y_max, |
|
|
int |
first_column, |
|
|
int |
last_column |
|
) |
| |
|
inlineprotected |
Definition at line 106 of file tablefind_test.cc.
107 {
109 box.set_to_given_coords(x_min, y_min, x_max, y_max);
110 ColPartition *part =
112 part->set_first_column(first_column);
113 part->set_last_column(last_column);
114 finder_->InsertLeaderPartition(part);
115 free_boxes_it_.add_after_then_move(part);
116 }
static ColPartition * FakePartition(const TBOX &box, PolyBlockType block_type, BlobRegionType blob_type, BlobTextFlowType flow)
std::unique_ptr< TestableTableFinder > finder_
◆ InsertTextPartition()
void tesseract::TableFinderTest::InsertTextPartition |
( |
ColPartition * |
part | ) |
|
|
inlineprotected |
Definition at line 97 of file tablefind_test.cc.
97 {
98 finder_->InsertTextPartition(part);
99 free_boxes_it_.add_after_then_move(part);
100 }
◆ MakePartition() [1/2]
void tesseract::TableFinderTest::MakePartition |
( |
int |
x_min, |
|
|
int |
y_min, |
|
|
int |
x_max, |
|
|
int |
y_max |
|
) |
| |
|
inlineprotected |
Definition at line 81 of file tablefind_test.cc.
81 {
83 }
void MakePartition(int x_min, int y_min, int x_max, int y_max)
◆ MakePartition() [2/2]
void tesseract::TableFinderTest::MakePartition |
( |
int |
x_min, |
|
|
int |
y_min, |
|
|
int |
x_max, |
|
|
int |
y_max, |
|
|
int |
first_column, |
|
|
int |
last_column |
|
) |
| |
|
inlineprotected |
Definition at line 85 of file tablefind_test.cc.
86 {
89 }
91 box.set_to_given_coords(x_min, y_min, x_max, y_max);
95 }
std::unique_ptr< ColPartition > partition_
◆ SetUp()
void tesseract::TableFinderTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 63 of file tablefind_test.cc.
63 {
64 std::locale::global(std::locale(""));
65 free_boxes_it_.set_to_list(&free_boxes_);
66 finder_ = std::make_unique<TestableTableFinder>();
67 finder_->Init(1, ICOORD(0, 0), ICOORD(500, 500));
68
69 finder_->set_global_median_xheight(5);
70 finder_->set_global_median_blob_width(5);
71 }
◆ TearDown()
void tesseract::TableFinderTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ finder_
◆ partition_
std::unique_ptr<ColPartition> tesseract::TableFinderTest::partition_ |
|
protected |
The documentation for this class was generated from the following file: