Skew estimation

Summary
Skew estimation
Functions
imgRLSAHDo a horizontal run-lenght smoothing algorithm
skewDetectGatosDetects the skew of a document page using the technice described in B.
skewDetectAvilaLinsDetects the skew of a document page using the technice described in Ávila B.T., Lins R.D., “A Fast Orientation and Skew Detection Algorithm for Monochromatic Document Images”.

Functions

imgRLSAH

void imgRLSAH(Image *img,
int C)

Do a horizontal run-lenght smoothing algorithm

Parameters

imgimage to smooth
Cparameter for smoothing

skewDetectGatos

double skewDetectGatos(Image *img,
double max_skew)

Detects the skew of a document page using the technice described in B.  Gatos, N.  Papamarkos, C.  Chamzas, “Skew Detection and Text Line Position Determination in Digitized Documents”, Pattern Recognittion, vol.  30 pp.  1505-1519, 1997

Parameters

imgthe image to estimate skew
max_skewthe maximum skew

Returns

The skew estimated

skewDetectAvilaLins

double skewDetectAvilaLins(Image *img)

Detects the skew of a document page using the technice described in Ávila B.T., Lins R.D., “A Fast Orientation and Skew Detection Algorithm for Monochromatic Document Images”.

Parameters

imgthe image to estimate skew

Returns

The skew estimated

void imgRLSAH(Image *img,
int C)
Do a horizontal run-lenght smoothing algorithm
double skewDetectGatos(Image *img,
double max_skew)
Detects the skew of a document page using the technice described in B.
double skewDetectAvilaLins(Image *img)
Detects the skew of a document page using the technice described in Ávila B.T., Lins R.D., “A Fast Orientation and Skew Detection Algorithm for Monochromatic Document Images”.
Close