Tesseract 3.01
tesseract::Bmp8 Class Reference

#include <bmp_8.h>

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

List of all members.

Public Member Functions

 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 Bmp8FromCharDumpFile (CachedFile *fp)
static Bmp8FromCharDumpFile (FILE *fp)

Protected Member Functions

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

unsigned short wid_
unsigned short hgt_
unsigned char ** line_buff_

Static Protected Attributes

static const int kConCompAllocChunk = 16
static const int kDeslantAngleCount

Constructor & Destructor Documentation

tesseract::Bmp8::Bmp8 ( unsigned short  wid,
unsigned short  hgt 
)
tesseract::Bmp8::~Bmp8 ( )

Member Function Documentation

bool tesseract::Bmp8::Clear ( )
void tesseract::Bmp8::Copy ( int  x,
int  y,
int  wid,
int  hgt,
Bmp8 bmp_dest 
) const [protected]
void tesseract::Bmp8::Crop ( int *  xst_src,
int *  yst_src,
int *  wid,
int *  hgt 
) [protected]
bool tesseract::Bmp8::Deslant ( )
ConComp ** tesseract::Bmp8::FindConComps ( int *  concomp_cnt,
int  min_size 
) const
float tesseract::Bmp8::ForegroundRatio ( ) const
Bmp8 * tesseract::Bmp8::FromCharDumpFile ( CachedFile fp) [static]

Reimplemented in tesseract::CharSamp.

Bmp8 * tesseract::Bmp8::FromCharDumpFile ( FILE *  fp) [static]

Reimplemented in tesseract::CharSamp.

unsigned short tesseract::Bmp8::Height ( ) const [inline]
bool tesseract::Bmp8::HorizontalDeslant ( double *  deslant_angle)
int * tesseract::Bmp8::HorizontalHistogram ( ) const
bool tesseract::Bmp8::IsBlankColumn ( int  x) const [protected]
bool tesseract::Bmp8::IsBlankRow ( int  y) const [protected]
bool tesseract::Bmp8::IsIdentical ( Bmp8 pBmp) const
bool tesseract::Bmp8::LoadFromCharDumpFile ( FILE *  fp) [protected]
bool tesseract::Bmp8::LoadFromCharDumpFile ( CachedFile fp) [protected]
bool tesseract::Bmp8::LoadFromCharDumpFile ( unsigned char **  raw_data) [protected]
bool tesseract::Bmp8::LoadFromRawData ( unsigned char *  data) [protected]
float tesseract::Bmp8::MeanHorizontalHistogramEntropy ( ) const
unsigned char* tesseract::Bmp8::RawData ( ) const [inline]
bool tesseract::Bmp8::SaveBmp2CharDumpFile ( FILE *  fp) const [protected]
bool tesseract::Bmp8::ScaleFrom ( Bmp8 bmp,
bool  isotropic = true 
)
unsigned short tesseract::Bmp8::Stride ( ) const [inline]
unsigned short tesseract::Bmp8::Width ( ) const [inline]

Member Data Documentation

unsigned short tesseract::Bmp8::hgt_ [protected]
const int tesseract::Bmp8::kConCompAllocChunk = 16 [static, protected]
const int tesseract::Bmp8::kDeslantAngleCount [static, protected]
Initial value:
 (1 + static_cast<int>(0.5f +
    (kMaxDeslantAngle - kMinDeslantAngle) / kDeslantAngleDelta))
unsigned char** tesseract::Bmp8::line_buff_ [protected]
unsigned short tesseract::Bmp8::wid_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines