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

#include <seam.h>

Collaboration diagram for SEAM:

Public Member Functions

 SEAM (float priority, const TPOINT &location)
 
 SEAM (float priority, const TPOINT &location, const SPLIT &split)
 
float priority () const
 
void set_priority (float priority)
 
bool HasAnySplits () const
 
TBOX bounding_box () const
 
bool CombineableWith (const SEAM &other, int max_x_dist, float max_total_priority) const
 
void CombineWith (const SEAM &other)
 
bool ContainedByBlob (const TBLOB &blob) const
 
bool UsesPoint (const EDGEPT *point) const
 
bool SharesPosition (const SEAM &other) const
 
bool OverlappingSplits (const SEAM &other) const
 
void Finalize ()
 
bool IsHealthy (const TBLOB &blob, int min_points, int min_area) const
 
bool PrepareToInsertSeam (const GenericVector< SEAM *> &seams, const GenericVector< TBLOB *> &blobs, int insert_index, bool modify)
 
bool FindBlobWidth (const GenericVector< TBLOB *> &blobs, int index, bool modify)
 
void ApplySeam (bool italic_blob, TBLOB *blob, TBLOB *other_blob) const
 
void UndoSeam (TBLOB *blob, TBLOB *other_blob) const
 
void Print (const char *label) const
 
void Mark (ScrollView *window) const
 
void Hide () const
 
void Reveal () const
 
float FullPriority (int xmin, int xmax, double overlap_knob, int centered_maxwidth, double center_knob, double width_change_knob) const
 

Static Public Member Functions

static void PrintSeams (const char *label, const GenericVector< SEAM *> &seams)
 
static void BreakPieces (const GenericVector< SEAM *> &seams, const GenericVector< TBLOB *> &blobs, int first, int last)
 
static void JoinPieces (const GenericVector< SEAM *> &seams, const GenericVector< TBLOB *> &blobs, int first, int last)
 

Private Attributes

float priority_
 
TPOINT location_
 
int8_t widthp_
 
int8_t widthn_
 
uint8_t num_splits_
 
SPLIT splits_ [kMaxNumSplits]
 

Static Private Attributes

static const uint8_t kMaxNumSplits = 3
 

Constructor & Destructor Documentation

◆ SEAM() [1/2]

SEAM::SEAM ( float  priority,
const TPOINT location 
)
inline

◆ SEAM() [2/2]

SEAM::SEAM ( float  priority,
const TPOINT location,
const SPLIT split 
)
inline

Member Function Documentation

◆ ApplySeam()

void SEAM::ApplySeam ( bool  italic_blob,
TBLOB blob,
TBLOB other_blob 
) const

◆ bounding_box()

TBOX SEAM::bounding_box ( ) const

◆ BreakPieces()

void SEAM::BreakPieces ( const GenericVector< SEAM *> &  seams,
const GenericVector< TBLOB *> &  blobs,
int  first,
int  last 
)
static

◆ CombineableWith()

bool SEAM::CombineableWith ( const SEAM other,
int  max_x_dist,
float  max_total_priority 
) const

◆ CombineWith()

void SEAM::CombineWith ( const SEAM other)

◆ ContainedByBlob()

bool SEAM::ContainedByBlob ( const TBLOB blob) const
inline

◆ Finalize()

void SEAM::Finalize ( )
inline

◆ FindBlobWidth()

bool SEAM::FindBlobWidth ( const GenericVector< TBLOB *> &  blobs,
int  index,
bool  modify 
)

◆ FullPriority()

float SEAM::FullPriority ( int  xmin,
int  xmax,
double  overlap_knob,
int  centered_maxwidth,
double  center_knob,
double  width_change_knob 
) const

◆ HasAnySplits()

bool SEAM::HasAnySplits ( ) const
inline

◆ Hide()

void SEAM::Hide ( ) const

◆ IsHealthy()

bool SEAM::IsHealthy ( const TBLOB blob,
int  min_points,
int  min_area 
) const

◆ JoinPieces()

void SEAM::JoinPieces ( const GenericVector< SEAM *> &  seams,
const GenericVector< TBLOB *> &  blobs,
int  first,
int  last 
)
static

◆ Mark()

void SEAM::Mark ( ScrollView window) const

◆ OverlappingSplits()

bool SEAM::OverlappingSplits ( const SEAM other) const
inline

◆ PrepareToInsertSeam()

bool SEAM::PrepareToInsertSeam ( const GenericVector< SEAM *> &  seams,
const GenericVector< TBLOB *> &  blobs,
int  insert_index,
bool  modify 
)

◆ Print()

void SEAM::Print ( const char *  label) const

◆ PrintSeams()

void SEAM::PrintSeams ( const char *  label,
const GenericVector< SEAM *> &  seams 
)
static

◆ priority()

float SEAM::priority ( ) const
inline

◆ Reveal()

void SEAM::Reveal ( ) const

◆ set_priority()

void SEAM::set_priority ( float  priority)
inline

◆ SharesPosition()

bool SEAM::SharesPosition ( const SEAM other) const
inline

◆ UndoSeam()

void SEAM::UndoSeam ( TBLOB blob,
TBLOB other_blob 
) const

◆ UsesPoint()

bool SEAM::UsesPoint ( const EDGEPT point) const
inline

Member Data Documentation

◆ kMaxNumSplits

const uint8_t SEAM::kMaxNumSplits = 3
staticprivate

◆ location_

TPOINT SEAM::location_
private

◆ num_splits_

uint8_t SEAM::num_splits_
private

◆ priority_

float SEAM::priority_
private

◆ splits_

SPLIT SEAM::splits_[kMaxNumSplits]
private

◆ widthn_

int8_t SEAM::widthn_
private

◆ widthp_

int8_t SEAM::widthp_
private

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