|
tesseract v5.3.3.20231005
|
#include <blobs.h>
Public Member Functions | |
| TBLOB () | |
| TBLOB (const TBLOB &src) | |
| ~TBLOB () | |
| TBLOB & | operator= (const TBLOB &src) |
| TBLOB * | ClassifyNormalizeIfNeeded () const |
| void | CopyFrom (const TBLOB &src) |
| void | Clear () |
| void | Normalize (const BLOCK *block, const FCOORD *rotation, const DENORM *predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift, bool inverse, Image pix) |
| void | Rotate (const FCOORD rotation) |
| void | Move (const ICOORD vec) |
| void | Scale (float factor) |
| void | ComputeBoundingBoxes () |
| int | NumOutlines () const |
| TBOX | bounding_box () const |
| bool | SegmentCrossesOutline (const TPOINT &pt1, const TPOINT &pt2) const |
| bool | Contains (const TPOINT &pt) const |
| void | EliminateDuplicateOutlines () |
| void | CorrectBlobOrder (TBLOB *next) |
| const DENORM & | denorm () const |
| void | plot (ScrollView *window, ScrollView::Color color, ScrollView::Color child_color) |
| int | BBArea () const |
| int | ComputeMoments (FCOORD *center, FCOORD *second_moments) const |
| void | GetPreciseBoundingBox (TBOX *precise_box) const |
| void | GetEdgeCoords (const TBOX &box, std::vector< std::vector< int > > &x_coords, std::vector< std::vector< int > > &y_coords) const |
Static Public Member Functions | |
| static TBLOB * | PolygonalCopy (bool allow_detailed_fx, C_BLOB *src) |
| static TBLOB * | ShallowCopy (const TBLOB &src) |
Public Attributes | |
| TESSLINE * | outlines |
|
inline |
|
inline |
|
inline |
| TBOX tesseract::TBLOB::bounding_box | ( | ) | const |
| TBLOB * tesseract::TBLOB::ClassifyNormalizeIfNeeded | ( | ) | const |
Definition at line 353 of file blobs.cpp.
| void tesseract::TBLOB::Clear | ( | ) |
| void tesseract::TBLOB::ComputeBoundingBoxes | ( | ) |
Definition at line 520 of file blobs.cpp.
|
inline |
| void tesseract::TBLOB::CopyFrom | ( | const TBLOB & | src | ) |
Definition at line 374 of file blobs.cpp.
| void tesseract::TBLOB::CorrectBlobOrder | ( | TBLOB * | next | ) |
|
inline |
| void tesseract::TBLOB::EliminateDuplicateOutlines | ( | ) |
Definition at line 480 of file blobs.cpp.
| void tesseract::TBLOB::GetEdgeCoords | ( | const TBOX & | box, |
| std::vector< std::vector< int > > & | x_coords, | ||
| std::vector< std::vector< int > > & | y_coords | ||
| ) | const |
Definition at line 559 of file blobs.cpp.
| void tesseract::TBLOB::GetPreciseBoundingBox | ( | TBOX * | precise_box | ) | const |
| void tesseract::TBLOB::Move | ( | const ICOORD | vec | ) |
| void tesseract::TBLOB::Normalize | ( | const BLOCK * | block, |
| const FCOORD * | rotation, | ||
| const DENORM * | predecessor, | ||
| float | x_origin, | ||
| float | y_origin, | ||
| float | x_scale, | ||
| float | y_scale, | ||
| float | final_xshift, | ||
| float | final_yshift, | ||
| bool | inverse, | ||
| Image | pix | ||
| ) |
Definition at line 400 of file blobs.cpp.
| int tesseract::TBLOB::NumOutlines | ( | ) | const |
| void tesseract::TBLOB::plot | ( | ScrollView * | window, |
| ScrollView::Color | color, | ||
| ScrollView::Color | child_color | ||
| ) |
| void tesseract::TBLOB::Rotate | ( | const FCOORD | rotation | ) |
| void tesseract::TBLOB::Scale | ( | float | factor | ) |