Leptonica 1.68
C Image Processing Library
|
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) |
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 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().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 47 of file skewtest.c.
References DESKEW_REDUCTION, ERROR_INT, filein, IFF_PNG, IFF_TIFF_G4, L_BRING_IN_WHITE, L_ROTATE_AREA_MAP, L_SHEAR_ABOUT_CENTER, L_SHEAR_ABOUT_CORNER, L_WARNING, NULL, pixClone(), pixConvertTo1(), pixDeskew(), pixDestroy(), pixFindSkew(), pixFindSkewSweepAndSearch(), pixFindSkewSweepAndSearchScorePivot(), pixGetDepth(), pixRead(), pixRotate(), pixWrite(), pixWriteImpliedFormat(), SEARCH_MIN_DELTA, SEARCH_REDUCTION, SWEEP_DELTA2, SWEEP_RANGE2, and SWEEP_REDUCTION2.