#include <blobbox.h>
Public Member Functions | |
BLOBNBOX () | |
BLOBNBOX (C_BLOB *srcblob) | |
void | rotate (FCOORD rotation) |
void | reflect_box_in_y_axis () |
void | rotate_box (FCOORD rotation) |
void | translate_box (ICOORD v) |
void | merge (BLOBNBOX *nextblob) |
void | really_merge (BLOBNBOX *other) |
void | chop (BLOBNBOX_IT *start_it, BLOBNBOX_IT *blob_it, FCOORD rotation, float xheight) |
void | NeighbourGaps (int gaps[BND_COUNT]) const |
void | MinMaxGapsClipped (int *h_min, int *h_max, int *v_min, int *v_max) const |
void | CleanNeighbours () |
int | GoodTextBlob () const |
int | NoisyNeighbours () const |
bool | DeletableNoise () const |
bool | DefiniteIndividualFlow () |
bool | ConfirmNoTabViolation (const BLOBNBOX &other) const |
bool | MatchingStrokeWidth (const BLOBNBOX &other, double fractional_tolerance, double constant_tolerance) const |
TBOX | BoundsWithinLimits (int left, int right) |
const TBOX & | bounding_box () const |
void | set_bounding_box (const TBOX &new_box) |
void | compute_bounding_box () |
const TBOX & | reduced_box () const |
void | set_reduced_box (TBOX new_box) |
inT32 | enclosed_area () const |
bool | joined_to_prev () const |
bool | red_box_set () const |
int | repeated_set () const |
void | set_repeated_set (int set_id) |
C_BLOB * | cblob () const |
TabType | left_tab_type () const |
void | set_left_tab_type (TabType new_type) |
TabType | right_tab_type () const |
void | set_right_tab_type (TabType new_type) |
BlobRegionType | region_type () const |
void | set_region_type (BlobRegionType new_type) |
BlobSpecialTextType | special_text_type () const |
void | set_special_text_type (BlobSpecialTextType new_type) |
BlobTextFlowType | flow () const |
void | set_flow (BlobTextFlowType value) |
bool | vert_possible () const |
void | set_vert_possible (bool value) |
bool | horz_possible () const |
void | set_horz_possible (bool value) |
int | left_rule () const |
void | set_left_rule (int new_left) |
int | right_rule () const |
void | set_right_rule (int new_right) |
int | left_crossing_rule () const |
void | set_left_crossing_rule (int new_left) |
int | right_crossing_rule () const |
void | set_right_crossing_rule (int new_right) |
float | horz_stroke_width () const |
void | set_horz_stroke_width (float width) |
float | vert_stroke_width () const |
void | set_vert_stroke_width (float width) |
float | area_stroke_width () const |
tesseract::ColPartition * | owner () const |
void | set_owner (tesseract::ColPartition *new_owner) |
bool | leader_on_left () const |
void | set_leader_on_left (bool flag) |
bool | leader_on_right () const |
void | set_leader_on_right (bool flag) |
BLOBNBOX * | neighbour (BlobNeighbourDir n) const |
bool | good_stroke_neighbour (BlobNeighbourDir n) const |
void | set_neighbour (BlobNeighbourDir n, BLOBNBOX *neighbour, bool good) |
bool | IsDiacritic () const |
int | base_char_top () const |
int | base_char_bottom () const |
int | line_crossings () const |
void | set_line_crossings (int value) |
void | set_diacritic_box (const TBOX &diacritic_box) |
BLOBNBOX * | base_char_blob () const |
void | set_base_char_blob (BLOBNBOX *blob) |
bool | UniquelyVertical () const |
bool | UniquelyHorizontal () const |
ScrollView::Color | BoxColor () const |
void | plot (ScrollView *window, ScrollView::Color blob_colour, ScrollView::Color child_colour) |
void | ConstructionInit () |
void | ReInit () |
void | ClearNeighbours () |
Static Public Member Functions | |
static BLOBNBOX * | RealBlob (C_OUTLINE *outline) |
static bool | IsTextType (BlobRegionType type) |
static bool | IsImageType (BlobRegionType type) |
static bool | IsLineType (BlobRegionType type) |
static bool | UnMergeableType (BlobRegionType type) |
static void | CleanNeighbours (BLOBNBOX_LIST *blobs) |
static void | DeleteNoiseBlobs (BLOBNBOX_LIST *blobs) |
static void | PlotBlobs (BLOBNBOX_LIST *list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView *win) |
static void | PlotNoiseBlobs (BLOBNBOX_LIST *list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView *win) |
static ScrollView::Color | TextlineColor (BlobRegionType region_type, BlobTextFlowType flow_type) |
BLOBNBOX::BLOBNBOX | ( | ) | [inline] |
BLOBNBOX::BLOBNBOX | ( | C_BLOB * | srcblob | ) | [inline, explicit] |
float BLOBNBOX::area_stroke_width | ( | ) | const [inline] |
BLOBNBOX* BLOBNBOX::base_char_blob | ( | ) | const [inline] |
int BLOBNBOX::base_char_bottom | ( | ) | const [inline] |
int BLOBNBOX::base_char_top | ( | ) | const [inline] |
const TBOX& BLOBNBOX::bounding_box | ( | ) | const [inline] |
TBOX BLOBNBOX::BoundsWithinLimits | ( | int | left, | |
int | right | |||
) |
ScrollView::Color BLOBNBOX::BoxColor | ( | ) | const |
C_BLOB* BLOBNBOX::cblob | ( | ) | const [inline] |
void BLOBNBOX::chop | ( | BLOBNBOX_IT * | start_it, | |
BLOBNBOX_IT * | blob_it, | |||
FCOORD | rotation, | |||
float | xheight | |||
) |
void BLOBNBOX::CleanNeighbours | ( | BLOBNBOX_LIST * | blobs | ) | [static] |
void BLOBNBOX::CleanNeighbours | ( | ) |
void BLOBNBOX::ClearNeighbours | ( | ) | [inline] |
void BLOBNBOX::compute_bounding_box | ( | ) | [inline] |
bool BLOBNBOX::ConfirmNoTabViolation | ( | const BLOBNBOX & | other | ) | const |
void BLOBNBOX::ConstructionInit | ( | ) | [inline] |
bool BLOBNBOX::DefiniteIndividualFlow | ( | ) |
bool BLOBNBOX::DeletableNoise | ( | ) | const [inline] |
void BLOBNBOX::DeleteNoiseBlobs | ( | BLOBNBOX_LIST * | blobs | ) | [static] |
inT32 BLOBNBOX::enclosed_area | ( | ) | const [inline] |
BlobTextFlowType BLOBNBOX::flow | ( | ) | const [inline] |
bool BLOBNBOX::good_stroke_neighbour | ( | BlobNeighbourDir | n | ) | const [inline] |
int BLOBNBOX::GoodTextBlob | ( | ) | const |
bool BLOBNBOX::horz_possible | ( | ) | const [inline] |
float BLOBNBOX::horz_stroke_width | ( | ) | const [inline] |
bool BLOBNBOX::IsDiacritic | ( | ) | const [inline] |
static bool BLOBNBOX::IsImageType | ( | BlobRegionType | type | ) | [inline, static] |
static bool BLOBNBOX::IsLineType | ( | BlobRegionType | type | ) | [inline, static] |
static bool BLOBNBOX::IsTextType | ( | BlobRegionType | type | ) | [inline, static] |
bool BLOBNBOX::joined_to_prev | ( | ) | const [inline] |
bool BLOBNBOX::leader_on_left | ( | ) | const [inline] |
bool BLOBNBOX::leader_on_right | ( | ) | const [inline] |
int BLOBNBOX::left_crossing_rule | ( | ) | const [inline] |
int BLOBNBOX::left_rule | ( | ) | const [inline] |
TabType BLOBNBOX::left_tab_type | ( | ) | const [inline] |
int BLOBNBOX::line_crossings | ( | ) | const [inline] |
bool BLOBNBOX::MatchingStrokeWidth | ( | const BLOBNBOX & | other, | |
double | fractional_tolerance, | |||
double | constant_tolerance | |||
) | const |
void BLOBNBOX::merge | ( | BLOBNBOX * | nextblob | ) |
void BLOBNBOX::MinMaxGapsClipped | ( | int * | h_min, | |
int * | h_max, | |||
int * | v_min, | |||
int * | v_max | |||
) | const |
BLOBNBOX* BLOBNBOX::neighbour | ( | BlobNeighbourDir | n | ) | const [inline] |
void BLOBNBOX::NeighbourGaps | ( | int | gaps[BND_COUNT] | ) | const |
int BLOBNBOX::NoisyNeighbours | ( | ) | const |
tesseract::ColPartition* BLOBNBOX::owner | ( | ) | const [inline] |
void BLOBNBOX::plot | ( | ScrollView * | window, | |
ScrollView::Color | blob_colour, | |||
ScrollView::Color | child_colour | |||
) | [inline] |
void BLOBNBOX::PlotBlobs | ( | BLOBNBOX_LIST * | list, | |
ScrollView::Color | body_colour, | |||
ScrollView::Color | child_colour, | |||
ScrollView * | win | |||
) | [static] |
void BLOBNBOX::PlotNoiseBlobs | ( | BLOBNBOX_LIST * | list, | |
ScrollView::Color | body_colour, | |||
ScrollView::Color | child_colour, | |||
ScrollView * | win | |||
) | [static] |
void BLOBNBOX::really_merge | ( | BLOBNBOX * | other | ) |
bool BLOBNBOX::red_box_set | ( | ) | const [inline] |
const TBOX& BLOBNBOX::reduced_box | ( | ) | const [inline] |
void BLOBNBOX::reflect_box_in_y_axis | ( | ) |
BlobRegionType BLOBNBOX::region_type | ( | ) | const [inline] |
void BLOBNBOX::ReInit | ( | ) | [inline] |
int BLOBNBOX::repeated_set | ( | ) | const [inline] |
int BLOBNBOX::right_crossing_rule | ( | ) | const [inline] |
int BLOBNBOX::right_rule | ( | ) | const [inline] |
TabType BLOBNBOX::right_tab_type | ( | ) | const [inline] |
void BLOBNBOX::rotate | ( | FCOORD | rotation | ) |
void BLOBNBOX::rotate_box | ( | FCOORD | rotation | ) |
void BLOBNBOX::set_base_char_blob | ( | BLOBNBOX * | blob | ) | [inline] |
void BLOBNBOX::set_bounding_box | ( | const TBOX & | new_box | ) | [inline] |
void BLOBNBOX::set_diacritic_box | ( | const TBOX & | diacritic_box | ) | [inline] |
void BLOBNBOX::set_flow | ( | BlobTextFlowType | value | ) | [inline] |
void BLOBNBOX::set_horz_possible | ( | bool | value | ) | [inline] |
void BLOBNBOX::set_horz_stroke_width | ( | float | width | ) | [inline] |
void BLOBNBOX::set_leader_on_left | ( | bool | flag | ) | [inline] |
void BLOBNBOX::set_leader_on_right | ( | bool | flag | ) | [inline] |
void BLOBNBOX::set_left_crossing_rule | ( | int | new_left | ) | [inline] |
void BLOBNBOX::set_left_rule | ( | int | new_left | ) | [inline] |
void BLOBNBOX::set_left_tab_type | ( | TabType | new_type | ) | [inline] |
void BLOBNBOX::set_line_crossings | ( | int | value | ) | [inline] |
void BLOBNBOX::set_neighbour | ( | BlobNeighbourDir | n, | |
BLOBNBOX * | neighbour, | |||
bool | good | |||
) | [inline] |
void BLOBNBOX::set_owner | ( | tesseract::ColPartition * | new_owner | ) | [inline] |
void BLOBNBOX::set_reduced_box | ( | TBOX | new_box | ) | [inline] |
void BLOBNBOX::set_region_type | ( | BlobRegionType | new_type | ) | [inline] |
void BLOBNBOX::set_repeated_set | ( | int | set_id | ) | [inline] |
void BLOBNBOX::set_right_crossing_rule | ( | int | new_right | ) | [inline] |
void BLOBNBOX::set_right_rule | ( | int | new_right | ) | [inline] |
void BLOBNBOX::set_right_tab_type | ( | TabType | new_type | ) | [inline] |
void BLOBNBOX::set_special_text_type | ( | BlobSpecialTextType | new_type | ) | [inline] |
void BLOBNBOX::set_vert_possible | ( | bool | value | ) | [inline] |
void BLOBNBOX::set_vert_stroke_width | ( | float | width | ) | [inline] |
BlobSpecialTextType BLOBNBOX::special_text_type | ( | ) | const [inline] |
ScrollView::Color BLOBNBOX::TextlineColor | ( | BlobRegionType | region_type, | |
BlobTextFlowType | flow_type | |||
) | [static] |
void BLOBNBOX::translate_box | ( | ICOORD | v | ) | [inline] |
bool BLOBNBOX::UniquelyHorizontal | ( | ) | const [inline] |
bool BLOBNBOX::UniquelyVertical | ( | ) | const [inline] |
static bool BLOBNBOX::UnMergeableType | ( | BlobRegionType | type | ) | [inline, static] |
bool BLOBNBOX::vert_possible | ( | ) | const [inline] |
float BLOBNBOX::vert_stroke_width | ( | ) | const [inline] |