#include <tablefind.h>
Definition at line 46 of file tablefind.h.
◆ ColSegment()
tesseract::ColSegment::ColSegment |
( |
| ) |
|
Definition at line 2062 of file tablefind.cpp.
2064 num_table_cells_(0),
2065 num_text_cells_(0),
2067}
◆ ~ColSegment()
tesseract::ColSegment::~ColSegment |
( |
| ) |
|
|
default |
◆ bounding_box()
const TBOX & tesseract::ColSegment::bounding_box |
( |
| ) |
const |
|
inline |
Definition at line 52 of file tablefind.h.
52 {
53 return bounding_box_;
54 }
◆ BoxColor()
Definition at line 2070 of file tablefind.cpp.
2070 {
2076 };
2077 return kBoxColors[type_];
2078}
◆ get_num_table_cells()
int tesseract::ColSegment::get_num_table_cells |
( |
| ) |
const |
|
inline |
Definition at line 76 of file tablefind.h.
76 {
77 return num_table_cells_;
78 }
◆ get_num_text_cells()
int tesseract::ColSegment::get_num_text_cells |
( |
| ) |
const |
|
inline |
Definition at line 85 of file tablefind.h.
85 {
86 return num_text_cells_;
87 }
◆ InsertBox()
void tesseract::ColSegment::InsertBox |
( |
const TBOX & |
other | ) |
|
Definition at line 2081 of file tablefind.cpp.
2081 {
2083}
TBOX bounding_union(const TBOX &box) const
◆ set_bottom()
void tesseract::ColSegment::set_bottom |
( |
int |
y | ) |
|
|
inline |
◆ set_bounding_box()
void tesseract::ColSegment::set_bounding_box |
( |
const TBOX & |
other | ) |
|
|
inline |
Definition at line 72 of file tablefind.h.
72 {
73 bounding_box_ = other;
74 }
◆ set_left()
void tesseract::ColSegment::set_left |
( |
int |
x | ) |
|
|
inline |
◆ set_num_table_cells()
void tesseract::ColSegment::set_num_table_cells |
( |
int |
n | ) |
|
|
inline |
Definition at line 81 of file tablefind.h.
81 {
82 num_table_cells_ = n;
83 }
◆ set_num_text_cells()
void tesseract::ColSegment::set_num_text_cells |
( |
int |
n | ) |
|
|
inline |
Definition at line 90 of file tablefind.h.
90 {
91 num_text_cells_ = n;
92 }
◆ set_right()
void tesseract::ColSegment::set_right |
( |
int |
x | ) |
|
|
inline |
◆ set_top()
void tesseract::ColSegment::set_top |
( |
int |
y | ) |
|
|
inline |
◆ set_type()
void tesseract::ColSegment::set_type |
( |
| ) |
|
Definition at line 2087 of file tablefind.cpp.
2087 {
2090 else if (num_text_cells_ > num_table_cells_)
2092 else
2094}
const double kTableColumnThreshold
◆ type()
Definition at line 94 of file tablefind.h.
94 {
95 return type_;
96 }
The documentation for this class was generated from the following files: