#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 418 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 790 of file blobs.cpp.
795 if (norm_box !=
nullptr) word_box = *norm_box;
796 float word_middle = (word_box.
left() + word_box.
right()) / 2.0f;
797 float input_y_offset = 0.0f;
800 if (row ==
nullptr) {
801 word_middle = word_box.
left();
802 input_y_offset = word_box.
bottom();
803 final_y_offset = 0.0f;
805 input_y_offset = row->
base_line(word_middle) + baseline_shift;
810 float mid_x = (blob_box.
left() + blob_box.
right()) / 2.0f;
812 float blob_scale = scale;
816 scale, scale * 1.5f);
817 }
else if (row !=
nullptr) {
827 blob_scale, 0.0f, final_y_offset, inverse, pix);
829 if (word_denorm !=
nullptr) {
831 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 872 of file blobs.cpp.
875 for (
int i = start + 1; i < end && i <
blobs.
size(); ++i) {
878 if (outline ==
nullptr) {
880 outline =
blobs[start]->outlines;
882 while (outline->
next !=
nullptr) outline = outline->
next;
891 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 776 of file blobs.cpp.
777 auto* tessword =
new TWERD;
780 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
781 C_BLOB* blob = b_it.data();
783 tessword->blobs.push_back(tblob);
◆ blobs
◆ latin_script
The documentation for this struct was generated from the following files: