#include <blobs.h>
Definition at line 95 of file blobs.h.
◆ EDGEPT() [1/2]
tesseract::EDGEPT::EDGEPT |
( |
| ) |
|
|
default |
◆ EDGEPT() [2/2]
tesseract::EDGEPT::EDGEPT |
( |
const EDGEPT & |
src | ) |
|
|
inline |
Definition at line 97 of file blobs.h.
99 }
void CopyFrom(const EDGEPT &src)
◆ CopyFrom()
void tesseract::EDGEPT::CopyFrom |
( |
const EDGEPT & |
src | ) |
|
|
inline |
◆ EqualPos()
bool tesseract::EDGEPT::EqualPos |
( |
const EDGEPT & |
other | ) |
const |
|
inline |
Definition at line 124 of file blobs.h.
124 {
125 return pos == other.pos;
126 }
◆ Hide()
void tesseract::EDGEPT::Hide |
( |
| ) |
|
|
inline |
◆ IsChopPt()
bool tesseract::EDGEPT::IsChopPt |
( |
| ) |
const |
|
inline |
◆ IsHidden()
bool tesseract::EDGEPT::IsHidden |
( |
| ) |
const |
|
inline |
◆ MarkChop()
void tesseract::EDGEPT::MarkChop |
( |
| ) |
|
|
inline |
◆ operator=()
Definition at line 100 of file blobs.h.
100 {
102 return *this;
103 }
◆ Reveal()
void tesseract::EDGEPT::Reveal |
( |
| ) |
|
|
inline |
◆ SegmentArea()
int tesseract::EDGEPT::SegmentArea |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 151 of file blobs.h.
151 {
152 int area = 0;
154 do {
156 area += origin_vec.cross(pt->vec);
157 pt = pt->next;
158 } while (pt != end && pt != this);
159 return area;
160 }
◆ SegmentBox()
TBOX tesseract::EDGEPT::SegmentBox |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 129 of file blobs.h.
129 {
132 do {
133 pt = pt->next;
134 if (pt->pos.x < box.left()) {
135 box.set_left(pt->pos.x);
136 }
137 if (pt->pos.x > box.right()) {
138 box.set_right(pt->pos.x);
139 }
140 if (pt->pos.y < box.bottom()) {
141 box.set_bottom(pt->pos.y);
142 }
143 if (pt->pos.y > box.top()) {
144 box.set_top(pt->pos.y);
145 }
146 } while (pt != end && pt != this);
147 return box;
148 }
◆ ShortNonCircularSegment()
bool tesseract::EDGEPT::ShortNonCircularSegment |
( |
int |
min_points, |
|
|
const EDGEPT * |
end |
|
) |
| const |
|
inline |
Definition at line 164 of file blobs.h.
164 {
167 do {
168 if (pt == end) {
169 return true;
170 }
171 pt = pt->next;
173 }
while (pt !=
this &&
count <= min_points);
174 return false;
175 }
◆ WeightedDistance()
int tesseract::EDGEPT::WeightedDistance |
( |
const EDGEPT & |
other, |
|
|
int |
x_factor |
|
) |
| const |
|
inline |
Definition at line 118 of file blobs.h.
118 {
119 int x_dist =
pos.
x - other.pos.x;
120 int y_dist =
pos.
y - other.pos.y;
121 return x_dist * x_dist * x_factor + y_dist * y_dist;
122 }
◆ dir
int8_t tesseract::EDGEPT::dir = 0 |
◆ fixed
bool tesseract::EDGEPT::fixed = false |
◆ is_hidden
bool tesseract::EDGEPT::is_hidden = false |
◆ next
EDGEPT* tesseract::EDGEPT::next = nullptr |
◆ pos
◆ prev
EDGEPT* tesseract::EDGEPT::prev = nullptr |
◆ runlength
uint8_t tesseract::EDGEPT::runlength = 0 |
◆ src_outline
C_OUTLINE* tesseract::EDGEPT::src_outline = nullptr |
◆ start_step
int tesseract::EDGEPT::start_step = 0 |
◆ step_count
int tesseract::EDGEPT::step_count = 0 |
◆ vec
The documentation for this struct was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccstruct/blobs.h