tesseract::CharSamp Class Reference

#include <char_samp.h>

Inheritance diagram for tesseract::CharSamp:
tesseract::Bmp8

List of all members.

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_32StrLabel () 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
CharSampCrop ()
ConComp ** Segment (int *seg_cnt, bool right_2_left, int max_hist_wnd, int min_con_comp_size) const
CharSampScale (int wid, int hgt, bool isotropic=true)
CharSampClone () const
bool ComputeFeatures (int conv_grid_size, float *features)
int LabelLen () const

Static Public Member Functions

static CharSampFromCharDumpFile (CachedFile *fp)
static CharSampFromCharDumpFile (FILE *fp)
static CharSampFromCharDumpFile (unsigned char **raw_data)
static CharSampFromRawData (int left, int top, int wid, int hgt, unsigned char *data)
static CharSampFromConComps (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)

Constructor & Destructor Documentation

tesseract::CharSamp::CharSamp (  ) 
tesseract::CharSamp::CharSamp ( int  wid,
int  hgt 
)
tesseract::CharSamp::CharSamp ( int  left,
int  top,
int  wid,
int  hgt 
)
tesseract::CharSamp::~CharSamp (  ) 

Member Function Documentation

static int tesseract::CharSamp::AuxFeatureCnt (  )  [inline, static]
unsigned short tesseract::CharSamp::Bottom (  )  const [inline]
CharSamp * tesseract::CharSamp::Clone (  )  const
bool tesseract::CharSamp::ComputeFeatures ( int  conv_grid_size,
float *  features 
)
CharSamp * tesseract::CharSamp::Crop (  ) 
unsigned short tesseract::CharSamp::FirstChar (  )  const [inline]
CharSamp * tesseract::CharSamp::FromCharDumpFile ( unsigned char **  raw_data  )  [static]
CharSamp * tesseract::CharSamp::FromCharDumpFile ( FILE *  fp  )  [static]

Reimplemented from tesseract::Bmp8.

CharSamp * tesseract::CharSamp::FromCharDumpFile ( CachedFile fp  )  [static]

Reimplemented from tesseract::Bmp8.

CharSamp * tesseract::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]
CharSamp * tesseract::CharSamp::FromRawData ( int  left,
int  top,
int  wid,
int  hgt,
unsigned char *  data 
) [static]
char_32 tesseract::CharSamp::Label (  )  const [inline]
static int tesseract::CharSamp::LabelLen ( const char_32 label32  )  [inline, static]
int tesseract::CharSamp::LabelLen (  )  const [inline]
unsigned short tesseract::CharSamp::LastChar (  )  const [inline]
unsigned short tesseract::CharSamp::Left (  )  const [inline]
unsigned short tesseract::CharSamp::NormAspectRatio (  )  const [inline]
unsigned short tesseract::CharSamp::NormBottom (  )  const [inline]
unsigned short tesseract::CharSamp::NormTop (  )  const [inline]
unsigned short tesseract::CharSamp::Page (  )  const [inline]
unsigned short tesseract::CharSamp::Right (  )  const [inline]
bool tesseract::CharSamp::Save2CharDumpFile ( FILE *  fp  )  const
CharSamp * tesseract::CharSamp::Scale ( int  wid,
int  hgt,
bool  isotropic = true 
)
ConComp ** tesseract::CharSamp::Segment ( int *  seg_cnt,
bool  right_2_left,
int  max_hist_wnd,
int  min_con_comp_size 
) const
void tesseract::CharSamp::SetFirstChar ( unsigned short  first_char  )  [inline]
void tesseract::CharSamp::SetLabel ( string  str  ) 
void tesseract::CharSamp::SetLabel ( const char_32 label32  )  [inline]
void tesseract::CharSamp::SetLabel ( char_32  label  )  [inline]
void tesseract::CharSamp::SetLastChar ( unsigned short  last_char  )  [inline]
void tesseract::CharSamp::SetLeft ( unsigned short  left  )  [inline]
void tesseract::CharSamp::SetNormAspectRatio ( unsigned short  norm_aspect_ratio  )  [inline]
void tesseract::CharSamp::SetNormBottom ( unsigned short  norm_bottom  )  [inline]
void tesseract::CharSamp::SetNormTop ( unsigned short  norm_top  )  [inline]
void tesseract::CharSamp::SetPage ( unsigned short  page  )  [inline]
void tesseract::CharSamp::SetTop ( unsigned short  top  )  [inline]
string tesseract::CharSamp::stringLabel (  )  const
char_32* tesseract::CharSamp::StrLabel (  )  const [inline]
unsigned short tesseract::CharSamp::Top (  )  const [inline]

The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:26 2012 for Tesseract by  doxygen 1.6.3