Leptonica 1.68
C Image Processing Library

skewtest.c File Reference

Exploration of various skew finding methods, optionally deskewing the input (binary) image. The best version does a linear sweep followed by a binary (angle-splitting) search. More...

#include "allheaders.h"

Go to the source code of this file.

Defines

#define DESKEW_REDUCTION   2
#define SWEEP_RANGE   10.
#define SWEEP_DELTA   0.2
#define SWEEP_REDUCTION   2
#define SWEEP_RANGE2   10.
#define SWEEP_DELTA2   1.
#define SWEEP_REDUCTION2   2
#define SEARCH_REDUCTION   2
#define SEARCH_MIN_DELTA   0.01

Functions

 main (int argc, char **argv)

Detailed Description

Exploration of various skew finding methods, optionally deskewing the input (binary) image. The best version does a linear sweep followed by a binary (angle-splitting) search.

Definition in file skewtest.c.


Define Documentation

#define DESKEW_REDUCTION   2

Definition at line 32 of file skewtest.c.

Referenced by main().

#define SWEEP_RANGE   10.

Definition at line 35 of file skewtest.c.

#define SWEEP_DELTA   0.2

Definition at line 36 of file skewtest.c.

#define SWEEP_REDUCTION   2

Definition at line 37 of file skewtest.c.

#define SWEEP_RANGE2   10.

Definition at line 40 of file skewtest.c.

Referenced by main().

#define SWEEP_DELTA2   1.

Definition at line 41 of file skewtest.c.

Referenced by main().

#define SWEEP_REDUCTION2   2

Definition at line 42 of file skewtest.c.

Referenced by main().

#define SEARCH_REDUCTION   2

Definition at line 43 of file skewtest.c.

Referenced by main().

#define SEARCH_MIN_DELTA   0.01

Definition at line 44 of file skewtest.c.

Referenced by main().


Function Documentation

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines