#include <colpartition.h>
Public Member Functions | |
ColPartition () | |
ColPartition (BlobRegionType blob_type, const ICOORD &vertical) | |
ColPartition (const ICOORD &vertical, int left, int bottom, int right, int top) | |
~ColPartition () | |
const TBOX & | bounding_box () const |
int | left_margin () const |
void | set_left_margin (int margin) |
int | right_margin () const |
void | set_right_margin (int margin) |
int | median_top () const |
int | median_bottom () const |
int | median_size () const |
BlobRegionType | blob_type () const |
void | set_blob_type (BlobRegionType t) |
bool | good_width () const |
bool | good_column () const |
bool | left_key_tab () const |
int | left_key () const |
bool | right_key_tab () const |
int | right_key () const |
PolyBlockType | type () const |
void | set_type (PolyBlockType t) |
BLOBNBOX_CLIST * | boxes () |
ColPartition_CLIST * | upper_partners () |
ColPartition_CLIST * | lower_partners () |
void | set_working_set (WorkingPartSet *working_set) |
ColPartitionSet * | column_set () const |
void | set_side_step (int step) |
int | bottom_spacing () const |
void | set_bottom_spacing (int spacing) |
int | top_spacing () const |
void | set_top_spacing (int spacing) |
void | set_table_type () |
void | clear_table_type () |
bool | inside_table_column () |
void | set_inside_table_column (bool val) |
ColPartition * | nearest_neighbor_above () const |
void | set_nearest_neighbor_above (ColPartition *part) |
ColPartition * | nearest_neighbor_below () const |
void | set_nearest_neighbor_below (ColPartition *part) |
int | space_above () const |
void | set_space_above (int space) |
int | space_below () const |
void | set_space_below (int space) |
int | space_to_left () const |
void | set_space_to_left (int space) |
int | space_to_right () const |
void | set_space_to_right (int space) |
int | MidY () const |
int | MedianY () const |
int | SortKey (int x, int y) const |
int | XAtY (int sort_key, int y) const |
int | KeyWidth (int left_key, int right_key) const |
int | ColumnWidth () const |
int | BoxLeftKey () const |
int | BoxRightKey () const |
int | LeftAtY (int y) const |
int | RightAtY (int y) const |
bool | IsLeftOf (const ColPartition &other) const |
bool | ColumnContains (int x, int y) const |
bool | IsEmpty () |
bool | HOverlaps (const ColPartition &other) const |
bool | HCompatible (const ColPartition &other) const |
int | VOverlap (const ColPartition &other) const |
bool | VOverlaps (const ColPartition &other) const |
bool | TypesMatch (const ColPartition &other) const |
bool | IsLineType () |
bool | IsImageType () |
bool | IsTextType () |
void | AddBox (BLOBNBOX *box) |
void | ClaimBoxes (WidthCallback *cb) |
void | DeleteBoxes () |
bool | IsLegal () |
bool | MatchingColumns (const ColPartition &other) const |
void | SetLeftTab (const TabVector *tab_vector) |
void | SetRightTab (const TabVector *tab_vector) |
void | CopyLeftTab (const ColPartition &src, bool take_box) |
void | CopyRightTab (const ColPartition &src, bool take_box) |
void | AddPartner (bool upper, ColPartition *partner) |
void | RemovePartner (bool upper, ColPartition *partner) |
ColPartition * | SingletonPartner (bool upper) |
void | Absorb (ColPartition *other, WidthCallback *cb) |
bool | Unique (ColPartition *other, WidthCallback *cb) |
ColPartition * | SplitAt (int split_x) |
void | ComputeLimits () |
void | SetPartitionType (ColPartitionSet *columns) |
void | ColumnRange (ColPartitionSet *columns, int *first_col, int *last_col) |
void | SetColumnGoodness (WidthCallback *cb) |
void | AddToWorkingSet (const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *used_parts, WorkingPartSet_LIST *working_set) |
ColPartition * | ShallowCopy () const |
ScrollView::Color | BoxColor () const |
void | Print () |
void | SmoothPartnerRun (int working_set_count) |
void | RefinePartners (PolyBlockType type) |
Static Public Member Functions | |
static ColPartition * | FakePartition (const TBOX &box) |
static bool | TypesMatch (BlobRegionType type1, BlobRegionType type2) |
static void | LineSpacingBlocks (const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *block_parts, ColPartition_LIST *used_parts, BLOCK_LIST *completed_blocks, TO_BLOCK_LIST *to_blocks) |
static TO_BLOCK * | MakeBlock (const ICOORD &bleft, const ICOORD &tright, ColPartition_LIST *block_parts, ColPartition_LIST *used_parts) |
tesseract::ColPartition::ColPartition | ( | ) | [inline] |
tesseract::ColPartition::ColPartition | ( | BlobRegionType | blob_type, | |
const ICOORD & | vertical | |||
) |
tesseract::ColPartition::ColPartition | ( | const ICOORD & | vertical, | |
int | left, | |||
int | bottom, | |||
int | right, | |||
int | top | |||
) |
tesseract::ColPartition::~ColPartition | ( | ) |
void tesseract::ColPartition::Absorb | ( | ColPartition * | other, | |
WidthCallback * | cb | |||
) |
void tesseract::ColPartition::AddBox | ( | BLOBNBOX * | box | ) |
void tesseract::ColPartition::AddPartner | ( | bool | upper, | |
ColPartition * | partner | |||
) |
void tesseract::ColPartition::AddToWorkingSet | ( | const ICOORD & | bleft, | |
const ICOORD & | tright, | |||
int | resolution, | |||
ColPartition_LIST * | used_parts, | |||
WorkingPartSet_LIST * | working_set | |||
) |
BlobRegionType tesseract::ColPartition::blob_type | ( | ) | const [inline] |
int tesseract::ColPartition::bottom_spacing | ( | ) | const [inline] |
const TBOX& tesseract::ColPartition::bounding_box | ( | ) | const [inline] |
ScrollView::Color tesseract::ColPartition::BoxColor | ( | ) | const |
BLOBNBOX_CLIST* tesseract::ColPartition::boxes | ( | ) | [inline] |
int tesseract::ColPartition::BoxLeftKey | ( | ) | const [inline] |
int tesseract::ColPartition::BoxRightKey | ( | ) | const [inline] |
void tesseract::ColPartition::ClaimBoxes | ( | WidthCallback * | cb | ) |
void tesseract::ColPartition::clear_table_type | ( | ) | [inline] |
ColPartitionSet* tesseract::ColPartition::column_set | ( | ) | const [inline] |
bool tesseract::ColPartition::ColumnContains | ( | int | x, | |
int | y | |||
) | const [inline] |
void tesseract::ColPartition::ColumnRange | ( | ColPartitionSet * | columns, | |
int * | first_col, | |||
int * | last_col | |||
) |
int tesseract::ColPartition::ColumnWidth | ( | ) | const [inline] |
void tesseract::ColPartition::ComputeLimits | ( | ) |
void tesseract::ColPartition::CopyLeftTab | ( | const ColPartition & | src, | |
bool | take_box | |||
) |
void tesseract::ColPartition::CopyRightTab | ( | const ColPartition & | src, | |
bool | take_box | |||
) |
void tesseract::ColPartition::DeleteBoxes | ( | ) |
ColPartition * tesseract::ColPartition::FakePartition | ( | const TBOX & | box | ) | [static] |
bool tesseract::ColPartition::good_column | ( | ) | const [inline] |
bool tesseract::ColPartition::good_width | ( | ) | const [inline] |
bool tesseract::ColPartition::HCompatible | ( | const ColPartition & | other | ) | const [inline] |
bool tesseract::ColPartition::HOverlaps | ( | const ColPartition & | other | ) | const [inline] |
bool tesseract::ColPartition::inside_table_column | ( | ) | [inline] |
bool tesseract::ColPartition::IsEmpty | ( | ) | [inline] |
bool tesseract::ColPartition::IsImageType | ( | ) | [inline] |
bool tesseract::ColPartition::IsLeftOf | ( | const ColPartition & | other | ) | const [inline] |
bool tesseract::ColPartition::IsLegal | ( | ) |
bool tesseract::ColPartition::IsLineType | ( | ) | [inline] |
bool tesseract::ColPartition::IsTextType | ( | ) | [inline] |
int tesseract::ColPartition::KeyWidth | ( | int | left_key, | |
int | right_key | |||
) | const [inline] |
int tesseract::ColPartition::left_key | ( | ) | const [inline] |
bool tesseract::ColPartition::left_key_tab | ( | ) | const [inline] |
int tesseract::ColPartition::left_margin | ( | ) | const [inline] |
int tesseract::ColPartition::LeftAtY | ( | int | y | ) | const [inline] |
void tesseract::ColPartition::LineSpacingBlocks | ( | const ICOORD & | bleft, | |
const ICOORD & | tright, | |||
int | resolution, | |||
ColPartition_LIST * | block_parts, | |||
ColPartition_LIST * | used_parts, | |||
BLOCK_LIST * | completed_blocks, | |||
TO_BLOCK_LIST * | to_blocks | |||
) | [static] |
ColPartition_CLIST* tesseract::ColPartition::lower_partners | ( | ) | [inline] |
TO_BLOCK * tesseract::ColPartition::MakeBlock | ( | const ICOORD & | bleft, | |
const ICOORD & | tright, | |||
ColPartition_LIST * | block_parts, | |||
ColPartition_LIST * | used_parts | |||
) | [static] |
bool tesseract::ColPartition::MatchingColumns | ( | const ColPartition & | other | ) | const |
int tesseract::ColPartition::median_bottom | ( | ) | const [inline] |
int tesseract::ColPartition::median_size | ( | ) | const [inline] |
int tesseract::ColPartition::median_top | ( | ) | const [inline] |
int tesseract::ColPartition::MedianY | ( | ) | const [inline] |
int tesseract::ColPartition::MidY | ( | ) | const [inline] |
ColPartition* tesseract::ColPartition::nearest_neighbor_above | ( | ) | const [inline] |
ColPartition* tesseract::ColPartition::nearest_neighbor_below | ( | ) | const [inline] |
void tesseract::ColPartition::Print | ( | ) |
void tesseract::ColPartition::RefinePartners | ( | PolyBlockType | type | ) |
void tesseract::ColPartition::RemovePartner | ( | bool | upper, | |
ColPartition * | partner | |||
) |
int tesseract::ColPartition::right_key | ( | ) | const [inline] |
bool tesseract::ColPartition::right_key_tab | ( | ) | const [inline] |
int tesseract::ColPartition::right_margin | ( | ) | const [inline] |
int tesseract::ColPartition::RightAtY | ( | int | y | ) | const [inline] |
void tesseract::ColPartition::set_blob_type | ( | BlobRegionType | t | ) | [inline] |
void tesseract::ColPartition::set_bottom_spacing | ( | int | spacing | ) | [inline] |
void tesseract::ColPartition::set_inside_table_column | ( | bool | val | ) | [inline] |
void tesseract::ColPartition::set_left_margin | ( | int | margin | ) | [inline] |
void tesseract::ColPartition::set_nearest_neighbor_above | ( | ColPartition * | part | ) | [inline] |
void tesseract::ColPartition::set_nearest_neighbor_below | ( | ColPartition * | part | ) | [inline] |
void tesseract::ColPartition::set_right_margin | ( | int | margin | ) | [inline] |
void tesseract::ColPartition::set_side_step | ( | int | step | ) | [inline] |
void tesseract::ColPartition::set_space_above | ( | int | space | ) | [inline] |
void tesseract::ColPartition::set_space_below | ( | int | space | ) | [inline] |
void tesseract::ColPartition::set_space_to_left | ( | int | space | ) | [inline] |
void tesseract::ColPartition::set_space_to_right | ( | int | space | ) | [inline] |
void tesseract::ColPartition::set_table_type | ( | ) | [inline] |
void tesseract::ColPartition::set_top_spacing | ( | int | spacing | ) | [inline] |
void tesseract::ColPartition::set_type | ( | PolyBlockType | t | ) | [inline] |
void tesseract::ColPartition::set_working_set | ( | WorkingPartSet * | working_set | ) | [inline] |
void tesseract::ColPartition::SetColumnGoodness | ( | WidthCallback * | cb | ) |
void tesseract::ColPartition::SetLeftTab | ( | const TabVector * | tab_vector | ) |
void tesseract::ColPartition::SetPartitionType | ( | ColPartitionSet * | columns | ) |
void tesseract::ColPartition::SetRightTab | ( | const TabVector * | tab_vector | ) |
ColPartition * tesseract::ColPartition::ShallowCopy | ( | ) | const |
ColPartition * tesseract::ColPartition::SingletonPartner | ( | bool | upper | ) |
void tesseract::ColPartition::SmoothPartnerRun | ( | int | working_set_count | ) |
int tesseract::ColPartition::SortKey | ( | int | x, | |
int | y | |||
) | const [inline] |
int tesseract::ColPartition::space_above | ( | ) | const [inline] |
int tesseract::ColPartition::space_below | ( | ) | const [inline] |
int tesseract::ColPartition::space_to_left | ( | ) | const [inline] |
int tesseract::ColPartition::space_to_right | ( | ) | const [inline] |
ColPartition * tesseract::ColPartition::SplitAt | ( | int | split_x | ) |
int tesseract::ColPartition::top_spacing | ( | ) | const [inline] |
PolyBlockType tesseract::ColPartition::type | ( | ) | const [inline] |
static bool tesseract::ColPartition::TypesMatch | ( | BlobRegionType | type1, | |
BlobRegionType | type2 | |||
) | [inline, static] |
bool tesseract::ColPartition::TypesMatch | ( | const ColPartition & | other | ) | const [inline] |
bool tesseract::ColPartition::Unique | ( | ColPartition * | other, | |
WidthCallback * | cb | |||
) |
ColPartition_CLIST* tesseract::ColPartition::upper_partners | ( | ) | [inline] |
int tesseract::ColPartition::VOverlap | ( | const ColPartition & | other | ) | const [inline] |
bool tesseract::ColPartition::VOverlaps | ( | const ColPartition & | other | ) | const [inline] |
int tesseract::ColPartition::XAtY | ( | int | sort_key, | |
int | y | |||
) | const [inline] |