tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
23 #include "config_auto.h"
67 float max_total_priority)
const;
73 for (
int s = 0; s < num_splits_; ++s) {
82 for (
int s = 0; s < num_splits_; ++s) {
83 if (splits_[s].
UsesPoint(point))
return true;
89 for (
int s = 0; s < num_splits_; ++s) {
90 for (
int t = 0; t < other.num_splits_; ++t)
97 for (
int s = 0; s < num_splits_; ++s) {
99 for (
int t = 0; t < other.num_splits_; ++t) {
101 if (split1_box.
y_overlap(split2_box))
return true;
110 for (
int s = 0; s < num_splits_; ++s) {
119 bool IsHealthy(
const TBLOB& blob,
int min_points,
int min_area)
const;
141 void Print(
const char* label)
const;
144 #ifndef GRAPHICS_DISABLED
168 float FullPriority(
int xmin,
int xmax,
double overlap_knob,
169 int centered_maxwidth,
double center_knob,
170 double width_change_knob)
const;
174 static const uint8_t kMaxNumSplits = 3;
187 SPLIT splits_[kMaxNumSplits];
bool OverlappingSplits(const SEAM &other) const
void set_priority(float priority)
void ApplySeam(bool italic_blob, TBLOB *blob, TBLOB *other_blob) const
bool ContainedByBlob(const TBLOB &blob) const
bool y_overlap(const TBOX &box) const
bool HasAnySplits() const
void UndoSeam(TBLOB *blob, TBLOB *other_blob) const
bool PrepareToInsertSeam(const GenericVector< SEAM * > &seams, const GenericVector< TBLOB * > &blobs, int insert_index, bool modify)
static void BreakPieces(const GenericVector< SEAM * > &seams, const GenericVector< TBLOB * > &blobs, int first, int last)
void Print(const char *label) const
TBOX bounding_box() const
void start_seam_list(TWERD *word, GenericVector< SEAM * > *seam_array)
bool UsesPoint(const EDGEPT *point) const
void Mark(ScrollView *window) const
bool CombineableWith(const SEAM &other, int max_x_dist, float max_total_priority) const
TBOX bounding_box() const
bool IsHealthy(const TBLOB &blob, int min_points, int min_area) const
static void JoinPieces(const GenericVector< SEAM * > &seams, const GenericVector< TBLOB * > &blobs, int first, int last)
bool SharesPosition(const SEAM &other) const
void CombineWith(const SEAM &other)
SEAM(float priority, const TPOINT &location)
bool FindBlobWidth(const GenericVector< TBLOB * > &blobs, int index, bool modify)
static void PrintSeams(const char *label, const GenericVector< SEAM * > &seams)
float FullPriority(int xmin, int xmax, double overlap_knob, int centered_maxwidth, double center_knob, double width_change_knob) const