Leptonica 1.68
C Image Processing Library
|
Regression test for rotation by shear and area mapping. Displays results when images are rotated sequentially multiple times. More...
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | BINARY_IMAGE "test1.png" |
#define | TWO_BPP_IMAGE "weasel2.4c.png" |
#define | FOUR_BPP_IMAGE1 "weasel4.11c.png" |
#define | FOUR_BPP_IMAGE2 "weasel4.16g.png" |
#define | EIGHT_BPP_IMAGE "test8.jpg" |
#define | EIGHT_BPP_CMAP_IMAGE1 "dreyfus8.png" |
#define | EIGHT_BPP_CMAP_IMAGE2 "test24.jpg" |
#define | RGB_IMAGE "marge.jpg" |
Functions | |
static void | RotateTest (PIX *pixs, l_int32 reduction, L_REGPARAMS *rp) |
l_int32 | main (int argc, char **argv) |
Variables | |
static const l_int32 | MODSIZE = 11 |
static const l_float32 | ANGLE1 = 3.14159265 / 12. |
static const l_float32 | ANGLE2 = 3.14159265 / 120. |
static const l_int32 | NTIMES = 24 |
Regression test for rotation by shear and area mapping. Displays results when images are rotated sequentially multiple times.
Definition in file rotate1_reg.c.
#define BINARY_IMAGE "test1.png" |
Definition at line 25 of file rotate1_reg.c.
Referenced by main().
#define TWO_BPP_IMAGE "weasel2.4c.png" |
Definition at line 26 of file rotate1_reg.c.
Referenced by main().
#define FOUR_BPP_IMAGE1 "weasel4.11c.png" |
Definition at line 27 of file rotate1_reg.c.
Referenced by main().
#define FOUR_BPP_IMAGE2 "weasel4.16g.png" |
Definition at line 28 of file rotate1_reg.c.
Referenced by main().
#define EIGHT_BPP_IMAGE "test8.jpg" |
Definition at line 29 of file rotate1_reg.c.
Referenced by main().
#define EIGHT_BPP_CMAP_IMAGE1 "dreyfus8.png" |
Definition at line 30 of file rotate1_reg.c.
Referenced by main().
#define EIGHT_BPP_CMAP_IMAGE2 "test24.jpg" |
Definition at line 31 of file rotate1_reg.c.
Referenced by main().
#define RGB_IMAGE "marge.jpg" |
Definition at line 32 of file rotate1_reg.c.
Referenced by main().
static void RotateTest | ( | PIX * | pixs, |
l_int32 | reduction, | ||
L_REGPARAMS * | rp | ||
) | [static] |
Definition at line 100 of file rotate1_reg.c.
References ANGLE1, ANGLE2, L_RegParams::display, IFF_JFIF_JPEG, IFF_PNG, L_BRING_IN_WHITE, L_ROTATE_AREA_MAP, L_ROTATE_SAMPLING, L_ROTATE_SHEAR, MODSIZE, NTIMES, NULL, pixaCreate(), pixaDestroy(), pixaDisplay(), pixDestroy(), pixDisplayWithTitle(), pixGetColormap(), pixGetDimensions(), pixRotate(), pixRotateAMColorFast(), pixRotateAMCorner(), pixSaveTiled(), and regTestWritePixAndCheck().
Referenced by main().
l_int32 main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 43 of file rotate1_reg.c.
References BINARY_IMAGE, EIGHT_BPP_CMAP_IMAGE1, EIGHT_BPP_CMAP_IMAGE2, EIGHT_BPP_IMAGE, FOUR_BPP_IMAGE1, FOUR_BPP_IMAGE2, pixDestroy(), pixOctreeColorQuant(), pixRead(), regTestCleanup(), regTestSetup(), RGB_IMAGE, RotateTest(), and TWO_BPP_IMAGE.
Definition at line 34 of file rotate1_reg.c.
Referenced by RotateTest().
Definition at line 36 of file rotate1_reg.c.
Referenced by RotateTest().
Definition at line 37 of file rotate1_reg.c.
Referenced by RotateTest().
Definition at line 38 of file rotate1_reg.c.
Referenced by RotateTest().