tesseract
4.0.0-1-g2a2b
|
#include <trainingsample.h>
Public Member Functions | |
TrainingSample () | |
~TrainingSample () | |
FEATURE_STRUCT * | GetCNFeature () const |
TrainingSample * | RandomizedCopy (int index) const |
TrainingSample * | Copy () const |
bool | Serialize (FILE *fp) const |
bool | DeSerialize (bool swap, FILE *fp) |
void | ExtractCharDesc (int feature_type, int micro_type, int cn_type, int geo_type, CHAR_DESC_STRUCT *char_desc) |
void | IndexFeatures (const IntFeatureSpace &feature_space) |
void | MapFeatures (const IntFeatureMap &feature_map) |
Pix * | RenderToPix (const UNICHARSET *unicharset) const |
void | DisplayFeatures (ScrollView::Color color, ScrollView *window) const |
Pix * | GetSamplePix (int padding, Pix *page_pix) const |
UNICHAR_ID | class_id () const |
void | set_class_id (int id) |
int | font_id () const |
void | set_font_id (int id) |
int | page_num () const |
void | set_page_num (int page) |
const TBOX & | bounding_box () const |
void | set_bounding_box (const TBOX &box) |
uint32_t | num_features () const |
const INT_FEATURE_STRUCT * | features () const |
uint32_t | num_micro_features () const |
const MicroFeature * | micro_features () const |
int | outline_length () const |
float | cn_feature (int index) const |
int | geo_feature (int index) const |
double | weight () const |
void | set_weight (double value) |
double | max_dist () const |
void | set_max_dist (double value) |
int | sample_index () const |
void | set_sample_index (int value) |
bool | features_are_mapped () const |
const GenericVector< int > & | mapped_features () const |
const GenericVector< int > & | indexed_features () const |
bool | is_error () const |
void | set_is_error (bool value) |
Public Member Functions inherited from ELIST_LINK | |
ELIST_LINK () | |
ELIST_LINK (const ELIST_LINK &) | |
void | operator= (const ELIST_LINK &) |
Static Public Member Functions | |
static TrainingSample * | CopyFromFeatures (const INT_FX_RESULT_STRUCT &fx_info, const TBOX &bounding_box, const INT_FEATURE_STRUCT *features, int num_features) |
static TrainingSample * | DeSerializeCreate (bool swap, FILE *fp) |
Definition at line 53 of file trainingsample.h.
|
inline |
Definition at line 55 of file trainingsample.h.
tesseract::TrainingSample::~TrainingSample | ( | ) |
Definition at line 45 of file trainingsample.cpp.
|
inline |
Definition at line 134 of file trainingsample.h.
|
inline |
Definition at line 116 of file trainingsample.h.
|
inline |
Definition at line 155 of file trainingsample.h.
TrainingSample * tesseract::TrainingSample::Copy | ( | ) | const |
Definition at line 181 of file trainingsample.cpp.
|
static |
Definition at line 124 of file trainingsample.cpp.
bool tesseract::TrainingSample::DeSerialize | ( | bool | swap, |
FILE * | fp | ||
) |
Definition at line 87 of file trainingsample.cpp.
|
static |
Definition at line 78 of file trainingsample.cpp.
void tesseract::TrainingSample::DisplayFeatures | ( | ScrollView::Color | color, |
ScrollView * | window | ||
) | const |
Definition at line 315 of file trainingsample.cpp.
void tesseract::TrainingSample::ExtractCharDesc | ( | int | feature_type, |
int | micro_type, | ||
int | cn_type, | ||
int | geo_type, | ||
CHAR_DESC_STRUCT * | char_desc | ||
) |
Definition at line 204 of file trainingsample.cpp.
|
inline |
Definition at line 143 of file trainingsample.h.
|
inline |
Definition at line 179 of file trainingsample.h.
|
inline |
Definition at line 122 of file trainingsample.h.
|
inline |
Definition at line 158 of file trainingsample.h.
FEATURE_STRUCT * tesseract::TrainingSample::GetCNFeature | ( | ) | const |
Definition at line 152 of file trainingsample.cpp.
Pix * tesseract::TrainingSample::GetSamplePix | ( | int | padding, |
Pix * | page_pix | ||
) | const |
Definition at line 328 of file trainingsample.cpp.
|
inline |
Definition at line 186 of file trainingsample.h.
void tesseract::TrainingSample::IndexFeatures | ( | const IntFeatureSpace & | feature_space | ) |
Definition at line 275 of file trainingsample.cpp.
|
inline |
Definition at line 190 of file trainingsample.h.
void tesseract::TrainingSample::MapFeatures | ( | const IntFeatureMap & | feature_map | ) |
Definition at line 285 of file trainingsample.cpp.
|
inline |
Definition at line 182 of file trainingsample.h.
|
inline |
Definition at line 167 of file trainingsample.h.
|
inline |
Definition at line 149 of file trainingsample.h.
|
inline |
Definition at line 140 of file trainingsample.h.
|
inline |
Definition at line 146 of file trainingsample.h.
|
inline |
Definition at line 152 of file trainingsample.h.
|
inline |
Definition at line 128 of file trainingsample.h.
TrainingSample * tesseract::TrainingSample::RandomizedCopy | ( | int | index | ) | const |
Definition at line 162 of file trainingsample.cpp.
Pix * tesseract::TrainingSample::RenderToPix | ( | const UNICHARSET * | unicharset | ) | const |
Definition at line 295 of file trainingsample.cpp.
|
inline |
Definition at line 173 of file trainingsample.h.
bool tesseract::TrainingSample::Serialize | ( | FILE * | fp | ) | const |
Definition at line 54 of file trainingsample.cpp.
|
inline |
Definition at line 137 of file trainingsample.h.
|
inline |
Definition at line 119 of file trainingsample.h.
|
inline |
Definition at line 125 of file trainingsample.h.
|
inline |
Definition at line 193 of file trainingsample.h.
|
inline |
Definition at line 170 of file trainingsample.h.
|
inline |
Definition at line 131 of file trainingsample.h.
|
inline |
Definition at line 176 of file trainingsample.h.
|
inline |
Definition at line 164 of file trainingsample.h.
|
inline |
Definition at line 161 of file trainingsample.h.