tesseract
3.05.02
|
#include <char_samp.h>
Public Member Functions | |
CharSamp () | |
CharSamp (int wid, int hgt) | |
CharSamp (int left, int top, int wid, int hgt) | |
~CharSamp () | |
unsigned short | Left () const |
unsigned short | Right () const |
unsigned short | Top () const |
unsigned short | Bottom () const |
unsigned short | Page () const |
unsigned short | NormTop () const |
unsigned short | NormBottom () const |
unsigned short | NormAspectRatio () const |
unsigned short | FirstChar () const |
unsigned short | LastChar () const |
char_32 | Label () const |
char_32 * | StrLabel () const |
string | stringLabel () const |
void | SetLeft (unsigned short left) |
void | SetTop (unsigned short top) |
void | SetPage (unsigned short page) |
void | SetLabel (char_32 label) |
void | SetLabel (const char_32 *label32) |
void | SetLabel (string str) |
void | SetNormTop (unsigned short norm_top) |
void | SetNormBottom (unsigned short norm_bottom) |
void | SetNormAspectRatio (unsigned short norm_aspect_ratio) |
void | SetFirstChar (unsigned short first_char) |
void | SetLastChar (unsigned short last_char) |
bool | Save2CharDumpFile (FILE *fp) const |
CharSamp * | Crop () |
ConComp ** | Segment (int *seg_cnt, bool right_2_left, int max_hist_wnd, int min_con_comp_size) const |
CharSamp * | Scale (int wid, int hgt, bool isotropic=true) |
CharSamp * | Clone () const |
bool | ComputeFeatures (int conv_grid_size, float *features) |
int | LabelLen () const |
Public Member Functions inherited from tesseract::Bmp8 | |
Bmp8 (unsigned short wid, unsigned short hgt) | |
~Bmp8 () | |
bool | Clear () |
unsigned short | Width () const |
unsigned short | Stride () const |
unsigned short | Height () const |
unsigned char * | RawData () const |
bool | ScaleFrom (Bmp8 *bmp, bool isotropic=true) |
bool | Deslant () |
bool | HorizontalDeslant (double *deslant_angle) |
bool | IsIdentical (Bmp8 *pBmp) const |
ConComp ** | FindConComps (int *concomp_cnt, int min_size) const |
float | ForegroundRatio () const |
float | MeanHorizontalHistogramEntropy () const |
int * | HorizontalHistogram () const |
Static Public Member Functions | |
static CharSamp * | FromCharDumpFile (CachedFile *fp) |
static CharSamp * | FromCharDumpFile (FILE *fp) |
static CharSamp * | FromCharDumpFile (unsigned char **raw_data) |
static CharSamp * | FromRawData (int left, int top, int wid, int hgt, unsigned char *data) |
static CharSamp * | FromConComps (ConComp **concomp_array, int strt_concomp, int seg_flags_size, int *seg_flags, bool *left_most, bool *right_most, int word_hgt) |
static int | AuxFeatureCnt () |
static int | LabelLen (const char_32 *label32) |
Static Public Member Functions inherited from tesseract::Bmp8 | |
static Bmp8 * | FromCharDumpFile (CachedFile *fp) |
static Bmp8 * | FromCharDumpFile (FILE *fp) |
Additional Inherited Members | |
Protected Member Functions inherited from tesseract::Bmp8 | |
bool | LoadFromCharDumpFile (CachedFile *fp) |
bool | LoadFromCharDumpFile (FILE *fp) |
bool | LoadFromCharDumpFile (unsigned char **raw_data) |
bool | LoadFromRawData (unsigned char *data) |
bool | SaveBmp2CharDumpFile (FILE *fp) const |
bool | IsBlankColumn (int x) const |
bool | IsBlankRow (int y) const |
void | Crop (int *xst_src, int *yst_src, int *wid, int *hgt) |
void | Copy (int x, int y, int wid, int hgt, Bmp8 *bmp_dest) const |
Protected Attributes inherited from tesseract::Bmp8 | |
unsigned short | wid_ |
unsigned short | hgt_ |
unsigned char ** | line_buff_ |
Static Protected Attributes inherited from tesseract::Bmp8 | |
static const int | kConCompAllocChunk = 16 |
static const int | kDeslantAngleCount |
Definition at line 39 of file char_samp.h.
tesseract::CharSamp::CharSamp | ( | ) |
Definition at line 29 of file char_samp.cpp.
tesseract::CharSamp::CharSamp | ( | int | wid, |
int | hgt | ||
) |
Definition at line 37 of file char_samp.cpp.
tesseract::CharSamp::CharSamp | ( | int | left, |
int | top, | ||
int | wid, | ||
int | hgt | ||
) |
Definition at line 45 of file char_samp.cpp.
tesseract::CharSamp::~CharSamp | ( | ) |
Definition at line 53 of file char_samp.cpp.
|
inlinestatic |
Definition at line 130 of file char_samp.h.
|
inline |
Definition at line 49 of file char_samp.h.
CharSamp * tesseract::CharSamp::Clone | ( | ) | const |
Definition at line 542 of file char_samp.cpp.
bool tesseract::CharSamp::ComputeFeatures | ( | int | conv_grid_size, |
float * | features | ||
) |
Definition at line 617 of file char_samp.cpp.
CharSamp * tesseract::CharSamp::Crop | ( | ) |
Definition at line 338 of file char_samp.cpp.
|
inline |
Definition at line 54 of file char_samp.h.
|
static |
Definition at line 82 of file char_samp.cpp.
|
static |
Definition at line 175 of file char_samp.cpp.
|
static |
Definition at line 557 of file char_samp.cpp.
|
static |
Definition at line 439 of file char_samp.cpp.
|
static |
Definition at line 266 of file char_samp.cpp.
|
inline |
Definition at line 56 of file char_samp.h.
|
inline |
Definition at line 132 of file char_samp.h.
|
inlinestatic |
Definition at line 133 of file char_samp.h.
|
inline |
Definition at line 55 of file char_samp.h.
|
inline |
Definition at line 46 of file char_samp.h.
|
inline |
Definition at line 53 of file char_samp.h.
|
inline |
Definition at line 52 of file char_samp.h.
|
inline |
Definition at line 51 of file char_samp.h.
|
inline |
Definition at line 50 of file char_samp.h.
|
inline |
Definition at line 47 of file char_samp.h.
bool tesseract::CharSamp::Save2CharDumpFile | ( | FILE * | fp | ) | const |
Definition at line 278 of file char_samp.cpp.
CharSamp * tesseract::CharSamp::Scale | ( | int | wid, |
int | hgt, | ||
bool | isotropic = true |
||
) |
Definition at line 247 of file char_samp.cpp.
ConComp ** tesseract::CharSamp::Segment | ( | int * | seg_cnt, |
bool | right_2_left, | ||
int | max_hist_wnd, | ||
int | min_con_comp_size | ||
) | const |
Definition at line 372 of file char_samp.cpp.
|
inline |
Definition at line 96 of file char_samp.h.
|
inline |
Definition at line 68 of file char_samp.h.
|
inline |
Definition at line 74 of file char_samp.h.
void tesseract::CharSamp::SetLabel | ( | string | str | ) |
Definition at line 71 of file char_samp.cpp.
|
inline |
Definition at line 99 of file char_samp.h.
|
inline |
Definition at line 65 of file char_samp.h.
|
inline |
Definition at line 93 of file char_samp.h.
|
inline |
Definition at line 90 of file char_samp.h.
|
inline |
Definition at line 89 of file char_samp.h.
|
inline |
Definition at line 67 of file char_samp.h.
|
inline |
Definition at line 66 of file char_samp.h.
string tesseract::CharSamp::stringLabel | ( | ) | const |
Definition at line 61 of file char_samp.cpp.
|
inline |
Definition at line 62 of file char_samp.h.
|
inline |
Definition at line 48 of file char_samp.h.