#include <blobs.h>
List of all members.
Detailed Description
Definition at line 174 of file blobs.h.
Constructor & Destructor Documentation
TBLOB::TBLOB |
( |
const TBLOB & |
src | ) |
|
|
inline |
Member Function Documentation
int TBLOB::BBArea |
( |
| ) |
const |
|
inline |
Definition at line 220 of file blobs.h.
{
int total_area = 0;
total_area += outline->BBArea();
return total_area;
}
TBOX TBLOB::bounding_box |
( |
| ) |
const |
Definition at line 384 of file blobs.cpp.
{
for (outline = outline->
next; outline !=
NULL; outline = outline->
next) {
}
return box;
}
TBLOB * TBLOB::ClassifyNormalizeIfNeeded |
( |
const DENORM ** |
denorm | ) |
const |
Definition at line 281 of file blobs.cpp.
{
if ((*denorm)->block() !=
NULL &&
(*denorm)->block()->classify_rotation().y() != 0.0) {
int x_middle = (box.
left() + box.
right()) / 2;
int y_middle = (box.
top() + box.
bottom()) / 2;
rotated_blob =
new TBLOB(*
this);
const FCOORD& rotation = (*denorm)->block()->classify_rotation();
(rotation.
y() > 0 ? x_middle - box.
left() : box.
right() - x_middle);
x_middle, y_middle, 1.0
f, 1.0
f, 0.0
f, target_y);
*denorm = norm;
}
return rotated_blob;
}
void TBLOB::ComputeBoundingBoxes |
( |
| ) |
|
Definition at line 364 of file blobs.cpp.
{
outline->ComputeBoundingBox();
}
}
void TBLOB::CopyFrom |
( |
const TBLOB & |
src | ) |
|
Definition at line 307 of file blobs.cpp.
{
srcline = srcline->next) {
else
prev_outline->
next = new_outline;
prev_outline = new_outline;
}
}
void TBLOB::Move |
( |
const ICOORD |
vec | ) |
|
Definition at line 350 of file blobs.cpp.
{
outline->Move(vec);
}
}
void TBLOB::Normalize |
( |
const DENORM & |
denorm | ) |
|
Definition at line 330 of file blobs.cpp.
{
#if 1
outline->Normalize(denorm);
}
#else
#endif
}
int TBLOB::NumOutlines |
( |
| ) |
const |
Definition at line 371 of file blobs.cpp.
{
int result = 0;
++result;
return result;
}
Definition at line 396 of file blobs.cpp.
{
outline->plot(window, color, child_color);
}
void TBLOB::Rotate |
( |
const FCOORD |
rotation | ) |
|
Definition at line 343 of file blobs.cpp.
{
outline->Rotate(rotation);
}
}
void TBLOB::Scale |
( |
float |
factor | ) |
|
Definition at line 357 of file blobs.cpp.
{
outline->Scale(factor);
}
}
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