23 const int kBlnCellHeight = 256;
24 const int kBlnXHeight = 128;
25 const int kBlnBaselineOffset = 64;
174 void SetupNormalization(
const BLOCK* block,
176 const DENORM* predecessor,
177 float x_origin,
float y_origin,
178 float x_scale,
float y_scale,
179 float final_xshift,
float final_yshift);
195 void SetupNonLinear(
const DENORM* predecessor,
const TBOX& box,
196 float target_width,
float target_height,
197 float final_xshift,
float final_yshift,
203 void LocalNormTransform(
const TPOINT& pt,
TPOINT* transformed)
const;
204 void LocalNormTransform(
const FCOORD& pt,
FCOORD* transformed)
const;
210 void NormTransform(
const DENORM* first_norm,
const TPOINT& pt,
211 TPOINT* transformed)
const;
212 void NormTransform(
const DENORM* first_norm,
const FCOORD& pt,
213 FCOORD* transformed)
const;
216 void LocalDenormTransform(
const TPOINT& pt,
TPOINT* original)
const;
217 void LocalDenormTransform(
const FCOORD& pt,
FCOORD* original)
const;
223 void DenormTransform(
const DENORM* last_denorm,
const TPOINT& pt,
225 void DenormTransform(
const DENORM* last_denorm,
const FCOORD& pt,
230 void LocalNormBlob(
TBLOB* blob)
const;
237 void XHeightRange(
int unichar_id,
const UNICHARSET& unicharset,
241 float* yshift)
const;
259 if (predecessor_ !=
nullptr)
Definition: normalis.h:43
float final_yshift_
Definition: normalis.h:313
float x_origin_
Definition: normalis.h:305
float y_origin_
Definition: normalis.h:307
Pix * pix() const
Definition: normalis.h:246
Definition: unicharset.h:146
float y_scale_
Definition: normalis.h:310
GenericVector< float > * x_map_
Definition: normalis.h:300
const DENORM * predecessor() const
Definition: normalis.h:263
Definition: baseapi.cpp:94
float x_scale_
Definition: normalis.h:309
Definition: normalis.h:45
const DENORM * RootDenorm() const
Definition: normalis.h:258
float final_xshift_
Definition: normalis.h:312
void set_pix(Pix *pix)
Definition: normalis.h:249
Definition: ocrblock.h:30
float y_scale() const
Definition: normalis.h:270
GenericVector< float > * y_map_
Definition: normalis.h:303
Pix * pix_
Definition: normalis.h:287
const BLOCK * block() const
Definition: normalis.h:273
void set_inverse(bool value)
Definition: normalis.h:255
bool inverse() const
Definition: normalis.h:252
Definition: normalis.h:50
NormalizationMode
Definition: normalis.h:42
const DENORM * predecessor_
Definition: normalis.h:297
void set_block(const BLOCK *block)
Definition: normalis.h:276
float x_scale() const
Definition: normalis.h:267
Definition: normalis.h:44
const FCOORD * rotation_
Definition: normalis.h:295
bool inverse_
Definition: normalis.h:289
const BLOCK * block_
Definition: normalis.h:293