tesseract::CubeUtils Class Reference
#include <cube_utils.h>
List of all members.
Public Member Functions |
| CubeUtils () |
| ~CubeUtils () |
Static Public Member Functions |
static int | Prob2Cost (double prob_val) |
static double | Cost2Prob (int cost) |
static int | StrLen (const char_32 *str) |
static int | StrCmp (const char_32 *str1, const char_32 *str2) |
static char_32 * | StrDup (const char_32 *str) |
static CharSamp * | CharSampleFromImg (IMAGE *img, int left, int top, int wid, int hgt) |
static CharSamp * | CharSampleFromPix (Pix *pix, int left, int top, int wid, int hgt) |
static IMAGE * | ImageFromCharSample (CharSamp *char_samp) |
static Pix * | PixFromCharSample (CharSamp *char_samp) |
static bool | ReadFileToString (const string &file_name, string *str) |
static void | SplitStringUsing (const string &str, const string &delims, vector< string > *str_vec) |
static void | UTF8ToUTF32 (const char *utf8_str, string_32 *str32) |
static void | UTF32ToUTF8 (const char_32 *utf32_str, string *str) |
static bool | IsCaseInvariant (const char_32 *str32, CharSet *char_set) |
static char_32 * | ToLower (const char_32 *str32, CharSet *char_set) |
static char_32 * | ToUpper (const char_32 *str32, CharSet *char_set) |
Constructor & Destructor Documentation
tesseract::CubeUtils::CubeUtils |
( |
|
) |
|
tesseract::CubeUtils::~CubeUtils |
( |
|
) |
|
Member Function Documentation
CharSamp * tesseract::CubeUtils::CharSampleFromImg |
( |
IMAGE * |
img, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
wid, |
|
|
int |
hgt | |
|
) |
| | [static] |
CharSamp * tesseract::CubeUtils::CharSampleFromPix |
( |
Pix * |
pix, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
wid, |
|
|
int |
hgt | |
|
) |
| | [static] |
double tesseract::CubeUtils::Cost2Prob |
( |
int |
cost |
) |
[static] |
IMAGE * tesseract::CubeUtils::ImageFromCharSample |
( |
CharSamp * |
char_samp |
) |
[static] |
bool tesseract::CubeUtils::IsCaseInvariant |
( |
const char_32 * |
str32, |
|
|
CharSet * |
char_set | |
|
) |
| | [static] |
Pix * tesseract::CubeUtils::PixFromCharSample |
( |
CharSamp * |
char_samp |
) |
[static] |
int tesseract::CubeUtils::Prob2Cost |
( |
double |
prob_val |
) |
[static] |
bool tesseract::CubeUtils::ReadFileToString |
( |
const string & |
file_name, |
|
|
string * |
str | |
|
) |
| | [static] |
void tesseract::CubeUtils::SplitStringUsing |
( |
const string & |
str, |
|
|
const string & |
delims, |
|
|
vector< string > * |
str_vec | |
|
) |
| | [static] |
int tesseract::CubeUtils::StrCmp |
( |
const char_32 * |
str1, |
|
|
const char_32 * |
str2 | |
|
) |
| | [static] |
char_32 * tesseract::CubeUtils::StrDup |
( |
const char_32 * |
str |
) |
[static] |
int tesseract::CubeUtils::StrLen |
( |
const char_32 * |
str |
) |
[static] |
void tesseract::CubeUtils::UTF32ToUTF8 |
( |
const char_32 * |
utf32_str, |
|
|
string * |
str | |
|
) |
| | [static] |
void tesseract::CubeUtils::UTF8ToUTF32 |
( |
const char * |
utf8_str, |
|
|
string_32 * |
str32 | |
|
) |
| | [static] |
The documentation for this class was generated from the following files: