#include <trainingsample.h>
◆ TrainingSample()
tesseract::TrainingSample::TrainingSample |
( |
| ) |
|
|
inline |
◆ ~TrainingSample()
tesseract::TrainingSample::~TrainingSample |
( |
| ) |
|
◆ bounding_box()
const TBOX& tesseract::TrainingSample::bounding_box |
( |
| ) |
const |
|
inline |
◆ class_id()
UNICHAR_ID tesseract::TrainingSample::class_id |
( |
| ) |
const |
|
inline |
◆ cn_feature()
float tesseract::TrainingSample::cn_feature |
( |
int |
index | ) |
const |
|
inline |
◆ Copy()
◆ CopyFromFeatures()
◆ DeSerialize()
bool tesseract::TrainingSample::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
◆ DeSerializeCreate()
TrainingSample * tesseract::TrainingSample::DeSerializeCreate |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
◆ DisplayFeatures()
◆ ExtractCharDesc()
void tesseract::TrainingSample::ExtractCharDesc |
( |
int |
feature_type, |
|
|
int |
micro_type, |
|
|
int |
cn_type, |
|
|
int |
geo_type, |
|
|
CHAR_DESC_STRUCT * |
char_desc |
|
) |
| |
◆ features()
◆ features_are_mapped()
bool tesseract::TrainingSample::features_are_mapped |
( |
| ) |
const |
|
inline |
◆ font_id()
int tesseract::TrainingSample::font_id |
( |
| ) |
const |
|
inline |
◆ geo_feature()
int tesseract::TrainingSample::geo_feature |
( |
int |
index | ) |
const |
|
inline |
◆ GetCNFeature()
◆ GetSamplePix()
Pix * tesseract::TrainingSample::GetSamplePix |
( |
int |
padding, |
|
|
Pix * |
page_pix |
|
) |
| const |
◆ indexed_features()
const GenericVector<int>& tesseract::TrainingSample::indexed_features |
( |
| ) |
const |
|
inline |
◆ IndexFeatures()
void tesseract::TrainingSample::IndexFeatures |
( |
const IntFeatureSpace & |
feature_space | ) |
|
◆ is_error()
bool tesseract::TrainingSample::is_error |
( |
| ) |
const |
|
inline |
◆ MapFeatures()
void tesseract::TrainingSample::MapFeatures |
( |
const IntFeatureMap & |
feature_map | ) |
|
◆ mapped_features()
const GenericVector<int>& tesseract::TrainingSample::mapped_features |
( |
| ) |
const |
|
inline |
◆ max_dist()
double tesseract::TrainingSample::max_dist |
( |
| ) |
const |
|
inline |
◆ micro_features()
const MicroFeature* tesseract::TrainingSample::micro_features |
( |
| ) |
const |
|
inline |
◆ num_features()
uint32_t tesseract::TrainingSample::num_features |
( |
| ) |
const |
|
inline |
◆ num_micro_features()
uint32_t tesseract::TrainingSample::num_micro_features |
( |
| ) |
const |
|
inline |
◆ outline_length()
int tesseract::TrainingSample::outline_length |
( |
| ) |
const |
|
inline |
◆ page_num()
int tesseract::TrainingSample::page_num |
( |
| ) |
const |
|
inline |
◆ RandomizedCopy()
TrainingSample * tesseract::TrainingSample::RandomizedCopy |
( |
int |
index | ) |
const |
◆ RenderToPix()
Pix * tesseract::TrainingSample::RenderToPix |
( |
const UNICHARSET * |
unicharset | ) |
const |
◆ sample_index()
int tesseract::TrainingSample::sample_index |
( |
| ) |
const |
|
inline |
◆ Serialize()
bool tesseract::TrainingSample::Serialize |
( |
FILE * |
fp | ) |
const |
◆ set_bounding_box()
void tesseract::TrainingSample::set_bounding_box |
( |
const TBOX & |
box | ) |
|
|
inline |
◆ set_class_id()
void tesseract::TrainingSample::set_class_id |
( |
int |
id | ) |
|
|
inline |
◆ set_font_id()
void tesseract::TrainingSample::set_font_id |
( |
int |
id | ) |
|
|
inline |
◆ set_is_error()
void tesseract::TrainingSample::set_is_error |
( |
bool |
value | ) |
|
|
inline |
◆ set_max_dist()
void tesseract::TrainingSample::set_max_dist |
( |
double |
value | ) |
|
|
inline |
◆ set_page_num()
void tesseract::TrainingSample::set_page_num |
( |
int |
page | ) |
|
|
inline |
◆ set_sample_index()
void tesseract::TrainingSample::set_sample_index |
( |
int |
value | ) |
|
|
inline |
◆ set_weight()
void tesseract::TrainingSample::set_weight |
( |
double |
value | ) |
|
|
inline |
◆ weight()
double tesseract::TrainingSample::weight |
( |
| ) |
const |
|
inline |
◆ bounding_box_
TBOX tesseract::TrainingSample::bounding_box_ |
|
private |
◆ class_id_
UNICHAR_ID tesseract::TrainingSample::class_id_ |
|
private |
◆ cn_feature_
◆ features_
◆ features_are_indexed_
bool tesseract::TrainingSample::features_are_indexed_ |
|
private |
◆ features_are_mapped_
bool tesseract::TrainingSample::features_are_mapped_ |
|
private |
◆ font_id_
int tesseract::TrainingSample::font_id_ |
|
private |
◆ geo_feature_
int tesseract::TrainingSample::geo_feature_[GeoCount] |
|
private |
◆ is_error_
bool tesseract::TrainingSample::is_error_ |
|
private |
◆ kScaleValues
const double tesseract::TrainingSample::kScaleValues |
|
staticprivate |
◆ kYShiftValues
const int tesseract::TrainingSample::kYShiftValues |
|
staticprivate |
◆ mapped_features_
◆ max_dist_
double tesseract::TrainingSample::max_dist_ |
|
private |
◆ micro_features_
MicroFeature* tesseract::TrainingSample::micro_features_ |
|
private |
◆ num_features_
uint32_t tesseract::TrainingSample::num_features_ |
|
private |
◆ num_micro_features_
uint32_t tesseract::TrainingSample::num_micro_features_ |
|
private |
◆ outline_length_
int tesseract::TrainingSample::outline_length_ |
|
private |
◆ page_num_
int tesseract::TrainingSample::page_num_ |
|
private |
◆ sample_index_
int tesseract::TrainingSample::sample_index_ |
|
private |
◆ weight_
double tesseract::TrainingSample::weight_ |
|
private |
The documentation for this class was generated from the following files:
- /home/stephane/src/tesseract/src/classify/trainingsample.h
- /home/stephane/src/tesseract/src/classify/trainingsample.cpp