#include <blobs.h>
|
| TWERD () |
|
| TWERD (const TWERD &src) |
|
| ~TWERD () |
|
TWERD & | operator= (const TWERD &src) |
|
void | BLNormalize (const BLOCK *block, const ROW *row, Pix *pix, bool inverse, float x_height, float baseline_shift, bool numeric_mode, tesseract::OcrEngineMode hint, const TBOX *norm_box, DENORM *word_denorm) |
|
void | CopyFrom (const TWERD &src) |
|
void | Clear () |
|
void | ComputeBoundingBoxes () |
|
int | NumBlobs () const |
|
TBOX | bounding_box () const |
|
void | MergeBlobs (int start, int end) |
|
void | plot (ScrollView *window) |
|
Definition at line 416 of file blobs.h.
◆ TWERD() [1/2]
◆ TWERD() [2/2]
TWERD::TWERD |
( |
const TWERD & |
src | ) |
|
|
inline |
◆ ~TWERD()
◆ BLNormalize()
void TWERD::BLNormalize |
( |
const BLOCK * |
block, |
|
|
const ROW * |
row, |
|
|
Pix * |
pix, |
|
|
bool |
inverse, |
|
|
float |
x_height, |
|
|
float |
baseline_shift, |
|
|
bool |
numeric_mode, |
|
|
tesseract::OcrEngineMode |
hint, |
|
|
const TBOX * |
norm_box, |
|
|
DENORM * |
word_denorm |
|
) |
| |
Definition at line 788 of file blobs.cpp.
794 if (norm_box !=
nullptr) word_box = *norm_box;
795 float word_middle = (word_box.
left() + word_box.
right()) / 2.0f;
796 float input_y_offset = 0.0f;
799 if (row ==
nullptr) {
800 word_middle = word_box.
left();
801 input_y_offset = word_box.
bottom();
802 final_y_offset = 0.0f;
804 input_y_offset = row->
base_line(word_middle) + baseline_shift;
809 float mid_x = (blob_box.
left() + blob_box.
right()) / 2.0f;
811 float blob_scale = scale;
815 scale, scale * 1.5f);
816 }
else if (row !=
nullptr) {
826 blob_scale, 0.0f, final_y_offset, inverse, pix);
828 if (word_denorm !=
nullptr) {
830 input_y_offset, scale, scale, 0.0f,
◆ bounding_box()
TBOX TWERD::bounding_box |
( |
| ) |
const |
◆ Clear()
◆ ComputeBoundingBoxes()
void TWERD::ComputeBoundingBoxes |
( |
| ) |
|
◆ CopyFrom()
void TWERD::CopyFrom |
( |
const TWERD & |
src | ) |
|
◆ MergeBlobs()
void TWERD::MergeBlobs |
( |
int |
start, |
|
|
int |
end |
|
) |
| |
Definition at line 870 of file blobs.cpp.
874 for (
int i = start + 1; i < end && i <
blobs.
size(); ++i) {
877 if (outline ==
nullptr) {
879 outline =
blobs[start]->outlines;
881 while (outline->
next !=
nullptr) outline = outline->
next;
890 for (
int i = start + 1; i < end && start + 1 <
blobs.
size(); ++i) {
◆ NumBlobs()
int TWERD::NumBlobs |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ plot()
◆ PolygonalCopy()
TWERD * TWERD::PolygonalCopy |
( |
bool |
allow_detailed_fx, |
|
|
WERD * |
src |
|
) |
| |
|
static |
Definition at line 774 of file blobs.cpp.
776 auto* tessword =
new TWERD;
779 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
780 C_BLOB* blob = b_it.data();
782 tessword->blobs.push_back(tblob);
◆ blobs
◆ latin_script
The documentation for this struct was generated from the following files: