tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::ColPartitionSet Class Reference

#include <colpartitionset.h>

Inheritance diagram for tesseract::ColPartitionSet:
Collaboration diagram for tesseract::ColPartitionSet:

Public Member Functions

 ColPartitionSet ()=default
 
 ColPartitionSet (ColPartition_LIST *partitions)
 
 ColPartitionSet (ColPartition *partition)
 
 ~ColPartitionSet ()=default
 
const TBOXbounding_box () const
 
bool Empty () const
 
int ColumnCount () const
 
int GoodColumnCount () const
 
ColPartitionGetColumnByIndex (int index)
 
ColPartitionColumnContaining (int x, int y)
 
void GetColumnBoxes (int y_bottom, int y_top, ColSegment_LIST *segments)
 
void RelinquishParts ()
 
void ImproveColumnCandidate (WidthCallback *cb, PartSetVector *src_sets)
 
void AddToColumnSetsIfUnique (PartSetVector *column_sets, WidthCallback *cb)
 
bool CompatibleColumns (bool debug, ColPartitionSet *other, WidthCallback *cb)
 
int UnmatchedWidth (ColPartitionSet *part_set)
 
bool LegalColumnCandidate ()
 
ColPartitionSetCopy (bool good_only)
 
void DisplayColumnEdges (int y_bottom, int y_top, ScrollView *win)
 
ColumnSpanningType SpanningType (int resolution, int left, int right, int height, int y, int left_margin, int right_margin, int *first_col, int *last_col, int *first_spanned_col)
 
void ChangeWorkColumns (const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *used_parts, WorkingPartSet_LIST *working_set)
 
void AccumulateColumnWidthsAndGaps (int *total_width, int *width_samples, int *total_gap, int *gap_samples)
 
void Print ()
 

Private Member Functions

void AddPartition (ColPartition *new_part, ColPartition_IT *it)
 
void ComputeCoverage ()
 
void AddPartitionCoverageAndBox (const ColPartition &part)
 

Private Attributes

ColPartition_LIST parts_
 
int good_column_count_
 
int good_coverage_
 
int bad_coverage_
 
TBOX bounding_box_
 

Constructor & Destructor Documentation

◆ ColPartitionSet() [1/3]

tesseract::ColPartitionSet::ColPartitionSet ( )
default

◆ ColPartitionSet() [2/3]

tesseract::ColPartitionSet::ColPartitionSet ( ColPartition_LIST *  partitions)
explicit

◆ ColPartitionSet() [3/3]

tesseract::ColPartitionSet::ColPartitionSet ( ColPartition partition)
explicit

◆ ~ColPartitionSet()

tesseract::ColPartitionSet::~ColPartitionSet ( )
default

Member Function Documentation

◆ AccumulateColumnWidthsAndGaps()

void tesseract::ColPartitionSet::AccumulateColumnWidthsAndGaps ( int *  total_width,
int *  width_samples,
int *  total_gap,
int *  gap_samples 
)

◆ AddPartition()

void tesseract::ColPartitionSet::AddPartition ( ColPartition new_part,
ColPartition_IT *  it 
)
private

◆ AddPartitionCoverageAndBox()

void tesseract::ColPartitionSet::AddPartitionCoverageAndBox ( const ColPartition part)
private

◆ AddToColumnSetsIfUnique()

void tesseract::ColPartitionSet::AddToColumnSetsIfUnique ( PartSetVector column_sets,
WidthCallback cb 
)

◆ bounding_box()

const TBOX& tesseract::ColPartitionSet::bounding_box ( ) const
inline

◆ ChangeWorkColumns()

void tesseract::ColPartitionSet::ChangeWorkColumns ( const ICOORD bleft,
const ICOORD tright,
int  resolution,
ColPartition_LIST *  used_parts,
WorkingPartSet_LIST *  working_set 
)

◆ ColumnContaining()

ColPartition * tesseract::ColPartitionSet::ColumnContaining ( int  x,
int  y 
)

◆ ColumnCount()

int tesseract::ColPartitionSet::ColumnCount ( ) const
inline

◆ CompatibleColumns()

bool tesseract::ColPartitionSet::CompatibleColumns ( bool  debug,
ColPartitionSet other,
WidthCallback cb 
)

◆ ComputeCoverage()

void tesseract::ColPartitionSet::ComputeCoverage ( )
private

◆ Copy()

ColPartitionSet * tesseract::ColPartitionSet::Copy ( bool  good_only)

◆ DisplayColumnEdges()

void tesseract::ColPartitionSet::DisplayColumnEdges ( int  y_bottom,
int  y_top,
ScrollView win 
)

◆ Empty()

bool tesseract::ColPartitionSet::Empty ( ) const
inline

◆ GetColumnBoxes()

void tesseract::ColPartitionSet::GetColumnBoxes ( int  y_bottom,
int  y_top,
ColSegment_LIST *  segments 
)

◆ GetColumnByIndex()

ColPartition * tesseract::ColPartitionSet::GetColumnByIndex ( int  index)

◆ GoodColumnCount()

int tesseract::ColPartitionSet::GoodColumnCount ( ) const

◆ ImproveColumnCandidate()

void tesseract::ColPartitionSet::ImproveColumnCandidate ( WidthCallback cb,
PartSetVector src_sets 
)

◆ LegalColumnCandidate()

bool tesseract::ColPartitionSet::LegalColumnCandidate ( )

◆ Print()

void tesseract::ColPartitionSet::Print ( )

◆ RelinquishParts()

void tesseract::ColPartitionSet::RelinquishParts ( )

◆ SpanningType()

ColumnSpanningType tesseract::ColPartitionSet::SpanningType ( int  resolution,
int  left,
int  right,
int  height,
int  y,
int  left_margin,
int  right_margin,
int *  first_col,
int *  last_col,
int *  first_spanned_col 
)

◆ UnmatchedWidth()

int tesseract::ColPartitionSet::UnmatchedWidth ( ColPartitionSet part_set)

Member Data Documentation

◆ bad_coverage_

int tesseract::ColPartitionSet::bad_coverage_
private

◆ bounding_box_

TBOX tesseract::ColPartitionSet::bounding_box_
private

◆ good_column_count_

int tesseract::ColPartitionSet::good_column_count_
private

◆ good_coverage_

int tesseract::ColPartitionSet::good_coverage_
private

◆ parts_

ColPartition_LIST tesseract::ColPartitionSet::parts_
private

The documentation for this class was generated from the following files: