Lines Matching refs:ColPartition
27 ELIST2IZE(ColPartition)
28 CLISTIZE(ColPartition)
45 ColPartition::ColPartition(BlobRegionType blob_type, const ICOORD& vertical) in ColPartition() function in tesseract::ColPartition
65 ColPartition* ColPartition::FakePartition(const TBOX& box) { in FakePartition()
66 ColPartition* part = new ColPartition(BRT_UNKNOWN, ICOORD(0, 1)); in FakePartition()
74 ColPartition::~ColPartition() { in ~ColPartition()
89 ColPartition::ColPartition(const ICOORD& vertical, in ColPartition() function in tesseract::ColPartition
112 void ColPartition::AddBox(BLOBNBOX* bbox) { in AddBox()
129 void ColPartition::ClaimBoxes(WidthCallback* cb) { in ClaimBoxes()
136 ColPartition* other = bblob->owner(); in ClaimBoxes()
176 void ColPartition::DeleteBoxes() { in DeleteBoxes()
193 bool ColPartition::IsLegal() { in IsLegal()
221 bool ColPartition::MatchingColumns(const ColPartition& other) const { in MatchingColumns()
235 void ColPartition::SetLeftTab(const TabVector* tab_vector) { in SetLeftTab()
247 void ColPartition::SetRightTab(const TabVector* tab_vector) { in SetRightTab()
260 void ColPartition::CopyLeftTab(const ColPartition& src, bool take_box) { in CopyLeftTab()
273 void ColPartition::CopyRightTab(const ColPartition& src, bool take_box) { in CopyRightTab()
288 void ColPartition::AddPartner(bool upper, ColPartition* partner) { in AddPartner()
290 partner->lower_partners_.add_sorted(SortByBoxLeft<ColPartition>, in AddPartner()
292 upper_partners_.add_sorted(SortByBoxLeft<ColPartition>, true, partner); in AddPartner()
294 partner->upper_partners_.add_sorted(SortByBoxLeft<ColPartition>, in AddPartner()
296 lower_partners_.add_sorted(SortByBoxLeft<ColPartition>, true, partner); in AddPartner()
303 void ColPartition::RemovePartner(bool upper, ColPartition* partner) { in RemovePartner()
314 ColPartition* ColPartition::SingletonPartner(bool upper) { in SingletonPartner()
323 void ColPartition::Absorb(ColPartition* other, WidthCallback* cb) { in Absorb()
337 ColPartition* prev_owner = bbox2->owner(); in Absorb()
377 bool ColPartition::Unique(ColPartition* other, WidthCallback* cb) { in Unique()
487 ColPartition* ColPartition::SplitAt(int split_x) { in SplitAt()
490 ColPartition* split_part = ShallowCopy(); in SplitAt()
494 ColPartition* prev_owner = bbox->owner(); in SplitAt()
520 void ColPartition::ComputeLimits() { in ComputeLimits()
581 void ColPartition::SetPartitionType(ColPartitionSet* columns) { in SetPartitionType()
610 void ColPartition::ColumnRange(ColPartitionSet* columns, in ColumnRange()
622 void ColPartition::SetColumnGoodness(WidthCallback* cb) { in SetColumnGoodness()
631 void ColPartition::AddToWorkingSet(const ICOORD& bleft, const ICOORD& tright, in AddToWorkingSet()
640 ColPartition* partner = SingletonPartner(true); in AddToWorkingSet()
691 void ColPartition::LineSpacingBlocks(const ICOORD& bleft, const ICOORD& tright, in LineSpacingBlocks()
702 ColPartition* part = it.data(); in LineSpacingBlocks()
718 ColPartition* next_part = it.data_relative(1); in LineSpacingBlocks()
744 ColPartition* part = it.extract(); in LineSpacingBlocks()
751 ColPartition* next_part = it.data(); in LineSpacingBlocks()
754 ColPartition* third_part = it.at_last() ? NULL : it.data_relative(1); in LineSpacingBlocks()
803 TO_BLOCK* ColPartition::MakeBlock(const ICOORD& bleft, const ICOORD& tright, in MakeBlock()
809 ColPartition* part = it.data(); in MakeBlock()
825 ColPartition::LeftEdgeRun(&it, &start, &end); in MakeBlock()
827 ColPartition::RightEdgeRun(&it, &start, &end); in MakeBlock()
860 ColPartition* part = it.extract(); in MakeBlock()
898 ColPartition* ColPartition::ShallowCopy() const { in ShallowCopy()
899 ColPartition* part = new ColPartition(blob_type_, vertical_); in ShallowCopy()
918 ScrollView::Color ColPartition::BoxColor() const { in BoxColor()
926 void ColPartition::Print() { in Print()
943 void ColPartition::SmoothPartnerRun(int working_set_count) { in SmoothPartnerRun()
947 ColPartition* partner; in SmoothPartnerRun()
975 void ColPartition::RefinePartners(PolyBlockType type) { in RefinePartners()
990 void ColPartition::RefinePartnersInternal(bool upper) { in RefinePartnersInternal()
1011 void ColPartition::RefinePartnersByType(bool upper, in RefinePartnersByType()
1025 ColPartition* partner = it.data(); in RefinePartnersByType()
1041 ColPartition* partner = it.data(); in RefinePartnersByType()
1059 void ColPartition::RefinePartnerShortcuts(bool upper, in RefinePartnerShortcuts()
1066 ColPartition* a = it.data(); in RefinePartnerShortcuts()
1071 ColPartition* b1 = it1.data(); in RefinePartnerShortcuts()
1080 ColPartition* b2 = it2.data(); in RefinePartnerShortcuts()
1102 void ColPartition::RefineFlowingTextPartners(bool upper, in RefineFlowingTextPartners()
1105 ColPartition* best_partner = it.data(); in RefineFlowingTextPartners()
1112 ColPartition* partner = it.data(); in RefineFlowingTextPartners()
1128 ColPartition* partner = it.data(); in RefineFlowingTextPartners()
1142 void ColPartition::RefinePartnersByOverlap(bool upper, in RefinePartnersByOverlap()
1145 ColPartition* best_partner = it.data(); in RefinePartnersByOverlap()
1149 ColPartition* partner = it.data(); in RefinePartnersByOverlap()
1159 ColPartition* partner = it.data(); in RefinePartnersByOverlap()
1168 bool ColPartition::ThisPartitionBetter(BLOBNBOX* bbox, in ThisPartitionBetter()
1169 const ColPartition& other) { in ThisPartitionBetter()
1209 ColPartition* part = it.data(); in MedianSpacing()
1220 void ColPartition::SmoothSpacings(int resolution, int page_height, in SmoothSpacings()
1228 ColPartition* neighbourhood[PN_COUNT]; in SmoothSpacings()
1282 ColPartition* last_part = neighbourhood[PN_UPPER]; in SmoothSpacings()
1286 ColPartition* upper = sum_it.data(); in SmoothSpacings()
1353 bool ColPartition::OKSpacingBlip(int resolution, int median_spacing, in OKSpacingBlip()
1354 ColPartition** parts) { in OKSpacingBlip()
1369 bool ColPartition::SpacingEqual(int spacing, int resolution) const { in SpacingEqual()
1378 bool ColPartition::SpacingsEqual(const ColPartition& other, in SpacingsEqual()
1393 bool ColPartition::SummedSpacingOK(const ColPartition& other, in SummedSpacingOK()
1409 int ColPartition::BottomSpacingMargin(int resolution) const { in BottomSpacingMargin()
1415 int ColPartition::TopSpacingMargin(int resolution) const { in TopSpacingMargin()
1422 bool ColPartition::SizesSimilar(const ColPartition& other) const { in SizesSimilar()
1433 void ColPartition::LeftEdgeRun(ColPartition_IT* part_it, in LeftEdgeRun()
1435 ColPartition* part = part_it->data(); in LeftEdgeRun()
1484 void ColPartition::RightEdgeRun(ColPartition_IT* part_it, in RightEdgeRun()
1486 ColPartition* part = part_it->data(); in RightEdgeRun()