#include <blobs.h>
List of all members.
Detailed Description
Definition at line 113 of file blobs.h.
Constructor & Destructor Documentation
TESSLINE::TESSLINE |
( |
const TESSLINE & |
src | ) |
|
|
inline |
Member Function Documentation
int TESSLINE::BBArea |
( |
| ) |
const |
|
inline |
TBOX TESSLINE::bounding_box |
( |
| ) |
const |
Definition at line 103 of file blobs.cpp.
{
return;
do {
delete this_edge;
this_edge = next_edge;
}
while (this_edge !=
loop);
}
void TESSLINE::ComputeBoundingBox |
( |
| ) |
|
Definition at line 175 of file blobs.cpp.
{
do {
if (this_edge->
pos.
x < minx)
if (this_edge->
pos.
y < miny)
if (this_edge->
pos.
x > maxx)
if (this_edge->
pos.
y > maxy)
}
this_edge = this_edge->
next;
}
while (this_edge !=
loop);
}
bool TESSLINE::Contains |
( |
const TPOINT & |
pt | ) |
|
|
inline |
void TESSLINE::CopyFrom |
( |
const TESSLINE & |
src | ) |
|
Definition at line 76 of file blobs.cpp.
{
do {
} else {
}
prevpt = newpt;
}
while (srcpt != src.
loop);
}
}
void TESSLINE::MinMaxCrossProduct |
( |
const TPOINT |
vec, |
|
|
int * |
min_xp, |
|
|
int * |
max_xp |
|
) |
| const |
Definition at line 209 of file blobs.cpp.
{
do {
int product =
CROSS(this_edge->
pos, vec);
}
this_edge = this_edge->
next;
}
while (this_edge !=
loop);
}
void TESSLINE::Move |
( |
const ICOORD |
vec | ) |
|
void TESSLINE::Normalize |
( |
const DENORM & |
denorm | ) |
|
Definition at line 228 of file blobs.cpp.
{
window->
Pen(child_color);
else
do {
if (prev_hidden)
else
}
void TESSLINE::Rotate |
( |
const FCOORD |
rotation | ) |
|
Definition at line 127 of file blobs.cpp.
{
do {
int tmp =
static_cast<int>(floor(pt->
pos.
x * rot.x() -
pt->
pos.
y * rot.y() + 0.5));
pt->
pos.
y =
static_cast<int>(floor(pt->
pos.
y * rot.x() +
pt->
pos.
x * rot.y() + 0.5));
}
void TESSLINE::Scale |
( |
float |
factor | ) |
|
Definition at line 152 of file blobs.cpp.
{
do {
pt->
pos.
x =
static_cast<int>(floor(pt->
pos.
x * factor + 0.5));
pt->
pos.
y =
static_cast<int>(floor(pt->
pos.
y * factor + 0.5));
}
void TESSLINE::SetupFromPos |
( |
| ) |
|
Member Data Documentation
The documentation for this struct was generated from the following files:
- /mnt/data/src/tesseract-ocr/ccstruct/blobs.h
- /mnt/data/src/tesseract-ocr/ccstruct/blobs.cpp