#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.
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.
125 return pos == other.pos;
◆ 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=()
◆ Reveal()
void tesseract::EDGEPT::Reveal |
( |
| ) |
|
|
inline |
◆ SegmentArea()
int tesseract::EDGEPT::SegmentArea |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 151 of file blobs.h.
156 area += origin_vec.cross(pt->vec);
158 }
while (pt != end && pt !=
this);
◆ SegmentBox()
TBOX tesseract::EDGEPT::SegmentBox |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 129 of file blobs.h.
134 if (pt->pos.x < box.left()) {
135 box.set_left(pt->pos.x);
137 if (pt->pos.x > box.right()) {
138 box.set_right(pt->pos.x);
140 if (pt->pos.y < box.bottom()) {
141 box.set_bottom(pt->pos.y);
143 if (pt->pos.y > box.top()) {
144 box.set_top(pt->pos.y);
146 }
while (pt != end && pt !=
this);
◆ ShortNonCircularSegment()
bool tesseract::EDGEPT::ShortNonCircularSegment |
( |
int |
min_points, |
|
|
const EDGEPT * |
end |
|
) |
| const |
|
inline |
Definition at line 164 of file blobs.h.
173 }
while (pt !=
this && count <= min_points);
◆ WeightedDistance()
int tesseract::EDGEPT::WeightedDistance |
( |
const EDGEPT & |
other, |
|
|
int |
x_factor |
|
) |
| const |
|
inline |
Definition at line 118 of file blobs.h.
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;
◆ 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: