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

#include <ratngs.h>

Inheritance diagram for BLOB_CHOICE:
Collaboration diagram for BLOB_CHOICE:

Public Member Functions

 BLOB_CHOICE ()
 
 BLOB_CHOICE (UNICHAR_ID src_unichar_id, float src_rating, float src_cert, int script_id, float min_xheight, float max_xheight, float yshift, BlobChoiceClassifier c)
 
 BLOB_CHOICE (const BLOB_CHOICE &other)
 
 ~BLOB_CHOICE ()=default
 
UNICHAR_ID unichar_id () const
 
float rating () const
 
float certainty () const
 
int16_t fontinfo_id () const
 
int16_t fontinfo_id2 () const
 
const GenericVector< tesseract::ScoredFont > & fonts () const
 
void set_fonts (const GenericVector< tesseract::ScoredFont > &fonts)
 
int script_id () const
 
const MATRIX_COORDmatrix_cell ()
 
int16_t xgap_before () const
 
int16_t xgap_after () const
 
float min_xheight () const
 
float max_xheight () const
 
float yshift () const
 
BlobChoiceClassifier classifier () const
 
bool IsAdapted () const
 
bool IsClassified () const
 
void set_unichar_id (UNICHAR_ID newunichar_id)
 
void set_rating (float newrat)
 
void set_certainty (float newrat)
 
void set_script (int newscript_id)
 
void set_matrix_cell (int col, int row)
 
void set_xgap_before (int16_t gap)
 
void set_xgap_after (int16_t gap)
 
void set_classifier (BlobChoiceClassifier classifier)
 
bool PosAndSizeAgree (const BLOB_CHOICE &other, float x_height, bool debug) const
 
void print (const UNICHARSET *unicharset) const
 
void print_full () const
 

Static Public Member Functions

static BLOB_CHOICEdeep_copy (const BLOB_CHOICE *src)
 
static int SortByRating (const void *p1, const void *p2)
 

Private Member Functions

BLOB_CHOICEoperator= (const BLOB_CHOICE &other)
 

Private Attributes

UNICHAR_ID unichar_id_
 
GenericVector< tesseract::ScoredFontfonts_
 
int16_t fontinfo_id_
 
int16_t fontinfo_id2_
 
float rating_
 
float certainty_
 
int script_id_
 
MATRIX_COORD matrix_cell_
 
int16_t xgap_before_
 
int16_t xgap_after_
 
float min_xheight_
 
float max_xheight_
 
float yshift_
 
BlobChoiceClassifier classifier_
 

Constructor & Destructor Documentation

◆ BLOB_CHOICE() [1/3]

BLOB_CHOICE::BLOB_CHOICE ( )
inline

◆ BLOB_CHOICE() [2/3]

BLOB_CHOICE::BLOB_CHOICE ( UNICHAR_ID  src_unichar_id,
float  src_rating,
float  src_cert,
int  src_script_id,
float  min_xheight,
float  max_xheight,
float  yshift,
BlobChoiceClassifier  c 
)

BLOB_CHOICE::BLOB_CHOICE

Constructor to build a BLOB_CHOICE from a char, rating and certainty.

◆ BLOB_CHOICE() [3/3]

BLOB_CHOICE::BLOB_CHOICE ( const BLOB_CHOICE other)

BLOB_CHOICE::BLOB_CHOICE

Constructor to build a BLOB_CHOICE from another BLOB_CHOICE.

◆ ~BLOB_CHOICE()

BLOB_CHOICE::~BLOB_CHOICE ( )
default

Member Function Documentation

◆ certainty()

float BLOB_CHOICE::certainty ( ) const
inline

◆ classifier()

BlobChoiceClassifier BLOB_CHOICE::classifier ( ) const
inline

◆ deep_copy()

static BLOB_CHOICE* BLOB_CHOICE::deep_copy ( const BLOB_CHOICE src)
inlinestatic

◆ fontinfo_id()

int16_t BLOB_CHOICE::fontinfo_id ( ) const
inline

◆ fontinfo_id2()

int16_t BLOB_CHOICE::fontinfo_id2 ( ) const
inline

◆ fonts()

const GenericVector<tesseract::ScoredFont>& BLOB_CHOICE::fonts ( ) const
inline

◆ IsAdapted()

bool BLOB_CHOICE::IsAdapted ( ) const
inline

◆ IsClassified()

bool BLOB_CHOICE::IsClassified ( ) const
inline

◆ matrix_cell()

const MATRIX_COORD& BLOB_CHOICE::matrix_cell ( )
inline

◆ max_xheight()

float BLOB_CHOICE::max_xheight ( ) const
inline

◆ min_xheight()

float BLOB_CHOICE::min_xheight ( ) const
inline

◆ operator=()

BLOB_CHOICE & BLOB_CHOICE::operator= ( const BLOB_CHOICE other)
private

◆ PosAndSizeAgree()

bool BLOB_CHOICE::PosAndSizeAgree ( const BLOB_CHOICE other,
float  x_height,
bool  debug 
) const

◆ print()

void BLOB_CHOICE::print ( const UNICHARSET unicharset) const
inline

◆ print_full()

void BLOB_CHOICE::print_full ( ) const
inline

◆ rating()

float BLOB_CHOICE::rating ( ) const
inline

◆ script_id()

int BLOB_CHOICE::script_id ( ) const
inline

◆ set_certainty()

void BLOB_CHOICE::set_certainty ( float  newrat)
inline

◆ set_classifier()

void BLOB_CHOICE::set_classifier ( BlobChoiceClassifier  classifier)
inline

◆ set_fonts()

void BLOB_CHOICE::set_fonts ( const GenericVector< tesseract::ScoredFont > &  fonts)
inline

◆ set_matrix_cell()

void BLOB_CHOICE::set_matrix_cell ( int  col,
int  row 
)
inline

◆ set_rating()

void BLOB_CHOICE::set_rating ( float  newrat)
inline

◆ set_script()

void BLOB_CHOICE::set_script ( int  newscript_id)
inline

◆ set_unichar_id()

void BLOB_CHOICE::set_unichar_id ( UNICHAR_ID  newunichar_id)
inline

◆ set_xgap_after()

void BLOB_CHOICE::set_xgap_after ( int16_t  gap)
inline

◆ set_xgap_before()

void BLOB_CHOICE::set_xgap_before ( int16_t  gap)
inline

◆ SortByRating()

static int BLOB_CHOICE::SortByRating ( const void *  p1,
const void *  p2 
)
inlinestatic

◆ unichar_id()

UNICHAR_ID BLOB_CHOICE::unichar_id ( ) const
inline

◆ xgap_after()

int16_t BLOB_CHOICE::xgap_after ( ) const
inline

◆ xgap_before()

int16_t BLOB_CHOICE::xgap_before ( ) const
inline

◆ yshift()

float BLOB_CHOICE::yshift ( ) const
inline

Member Data Documentation

◆ certainty_

float BLOB_CHOICE::certainty_
private

◆ classifier_

BlobChoiceClassifier BLOB_CHOICE::classifier_
private

◆ fontinfo_id2_

int16_t BLOB_CHOICE::fontinfo_id2_
private

◆ fontinfo_id_

int16_t BLOB_CHOICE::fontinfo_id_
private

◆ fonts_

GenericVector<tesseract::ScoredFont> BLOB_CHOICE::fonts_
private

◆ matrix_cell_

MATRIX_COORD BLOB_CHOICE::matrix_cell_
private

◆ max_xheight_

float BLOB_CHOICE::max_xheight_
private

◆ min_xheight_

float BLOB_CHOICE::min_xheight_
private

◆ rating_

float BLOB_CHOICE::rating_
private

◆ script_id_

int BLOB_CHOICE::script_id_
private

◆ unichar_id_

UNICHAR_ID BLOB_CHOICE::unichar_id_
private

◆ xgap_after_

int16_t BLOB_CHOICE::xgap_after_
private

◆ xgap_before_

int16_t BLOB_CHOICE::xgap_before_
private

◆ yshift_

float BLOB_CHOICE::yshift_
private

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