tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
DENORM Class Reference

#include <normalis.h>

Collaboration diagram for DENORM:

Public Member Functions

 DENORM ()
 
 DENORM (const DENORM &)
 
DENORMoperator= (const DENORM &)
 
 ~DENORM ()
 
void SetupNormalization (const BLOCK *block, const FCOORD *rotation, const DENORM *predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift)
 
void SetupNonLinear (const DENORM *predecessor, const TBOX &box, float target_width, float target_height, float final_xshift, float final_yshift, const GenericVector< GenericVector< int > > &x_coords, const GenericVector< GenericVector< int > > &y_coords)
 
void LocalNormTransform (const TPOINT &pt, TPOINT *transformed) const
 
void LocalNormTransform (const FCOORD &pt, FCOORD *transformed) const
 
void NormTransform (const DENORM *first_norm, const TPOINT &pt, TPOINT *transformed) const
 
void NormTransform (const DENORM *first_norm, const FCOORD &pt, FCOORD *transformed) const
 
void LocalDenormTransform (const TPOINT &pt, TPOINT *original) const
 
void LocalDenormTransform (const FCOORD &pt, FCOORD *original) const
 
void DenormTransform (const DENORM *last_denorm, const TPOINT &pt, TPOINT *original) const
 
void DenormTransform (const DENORM *last_denorm, const FCOORD &pt, FCOORD *original) const
 
void LocalNormBlob (TBLOB *blob) const
 
void XHeightRange (int unichar_id, const UNICHARSET &unicharset, const TBOX &bbox, float *min_xht, float *max_xht, float *yshift) const
 
void Print () const
 
Pix * pix () const
 
void set_pix (Pix *pix)
 
bool inverse () const
 
void set_inverse (bool value)
 
const DENORMRootDenorm () const
 
const DENORMpredecessor () const
 
float x_scale () const
 
float y_scale () const
 
const BLOCKblock () const
 
void set_block (const BLOCK *block)
 

Private Member Functions

void Clear ()
 
void Init ()
 

Private Attributes

Pix * pix_
 
bool inverse_
 
const BLOCKblock_
 
const FCOORDrotation_
 
const DENORMpredecessor_
 
GenericVector< float > * x_map_
 
GenericVector< float > * y_map_
 
float x_origin_
 
float y_origin_
 
float x_scale_
 
float y_scale_
 
float final_xshift_
 
float final_yshift_
 

Constructor & Destructor Documentation

◆ DENORM() [1/2]

DENORM::DENORM ( )

◆ DENORM() [2/2]

DENORM::DENORM ( const DENORM src)

◆ ~DENORM()

DENORM::~DENORM ( )

Member Function Documentation

◆ block()

const BLOCK* DENORM::block ( ) const
inline

◆ Clear()

void DENORM::Clear ( )
private

◆ DenormTransform() [1/2]

void DENORM::DenormTransform ( const DENORM last_denorm,
const TPOINT pt,
TPOINT original 
) const

◆ DenormTransform() [2/2]

void DENORM::DenormTransform ( const DENORM last_denorm,
const FCOORD pt,
FCOORD original 
) const

◆ Init()

void DENORM::Init ( )
private

◆ inverse()

bool DENORM::inverse ( ) const
inline

◆ LocalDenormTransform() [1/2]

void DENORM::LocalDenormTransform ( const TPOINT pt,
TPOINT original 
) const

◆ LocalDenormTransform() [2/2]

void DENORM::LocalDenormTransform ( const FCOORD pt,
FCOORD original 
) const

◆ LocalNormBlob()

void DENORM::LocalNormBlob ( TBLOB blob) const

◆ LocalNormTransform() [1/2]

void DENORM::LocalNormTransform ( const TPOINT pt,
TPOINT transformed 
) const

◆ LocalNormTransform() [2/2]

void DENORM::LocalNormTransform ( const FCOORD pt,
FCOORD transformed 
) const

◆ NormTransform() [1/2]

void DENORM::NormTransform ( const DENORM first_norm,
const TPOINT pt,
TPOINT transformed 
) const

◆ NormTransform() [2/2]

void DENORM::NormTransform ( const DENORM first_norm,
const FCOORD pt,
FCOORD transformed 
) const

◆ operator=()

DENORM & DENORM::operator= ( const DENORM src)

◆ pix()

Pix* DENORM::pix ( ) const
inline

◆ predecessor()

const DENORM* DENORM::predecessor ( ) const
inline

◆ Print()

void DENORM::Print ( ) const

◆ RootDenorm()

const DENORM* DENORM::RootDenorm ( ) const
inline

◆ set_block()

void DENORM::set_block ( const BLOCK block)
inline

◆ set_inverse()

void DENORM::set_inverse ( bool  value)
inline

◆ set_pix()

void DENORM::set_pix ( Pix *  pix)
inline

◆ SetupNonLinear()

void DENORM::SetupNonLinear ( const DENORM predecessor,
const TBOX box,
float  target_width,
float  target_height,
float  final_xshift,
float  final_yshift,
const GenericVector< GenericVector< int > > &  x_coords,
const GenericVector< GenericVector< int > > &  y_coords 
)

◆ SetupNormalization()

void DENORM::SetupNormalization ( const BLOCK block,
const FCOORD rotation,
const DENORM predecessor,
float  x_origin,
float  y_origin,
float  x_scale,
float  y_scale,
float  final_xshift,
float  final_yshift 
)

◆ x_scale()

float DENORM::x_scale ( ) const
inline

◆ XHeightRange()

void DENORM::XHeightRange ( int  unichar_id,
const UNICHARSET unicharset,
const TBOX bbox,
float *  min_xht,
float *  max_xht,
float *  yshift 
) const

◆ y_scale()

float DENORM::y_scale ( ) const
inline

Member Data Documentation

◆ block_

const BLOCK* DENORM::block_
private

◆ final_xshift_

float DENORM::final_xshift_
private

◆ final_yshift_

float DENORM::final_yshift_
private

◆ inverse_

bool DENORM::inverse_
private

◆ pix_

Pix* DENORM::pix_
private

◆ predecessor_

const DENORM* DENORM::predecessor_
private

◆ rotation_

const FCOORD* DENORM::rotation_
private

◆ x_map_

GenericVector<float>* DENORM::x_map_
private

◆ x_origin_

float DENORM::x_origin_
private

◆ x_scale_

float DENORM::x_scale_
private

◆ y_map_

GenericVector<float>* DENORM::y_map_
private

◆ y_origin_

float DENORM::y_origin_
private

◆ y_scale_

float DENORM::y_scale_
private

The documentation for this class was generated from the following files: