Leptonica 1.68
C Image Processing Library
|
Demonstrates image rotation. More...
#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | BINARY_IMAGE "test1.png" |
#define | GRAYSCALE_IMAGE "test8.jpg" |
#define | FOUR_BPP_IMAGE "weasel4.8g.png" |
#define | COLORMAP_IMAGE "dreyfus8.png" |
#define | RGB_IMAGE "marge.jpg" |
Functions | |
void | rotateTest (const char *fname, PIXA *pixa) |
main (int argc, char **argv) | |
Variables | |
static const l_int32 | MODSIZE = 7 |
static const l_float32 | ANGLE1 = 3.14159265 / 12 |
static const l_int32 | NTIMES = 24 |
Demonstrates image rotation.
Definition in file rotatetest2.c.
#define BINARY_IMAGE "test1.png" |
Definition at line 25 of file rotatetest2.c.
Referenced by main().
#define GRAYSCALE_IMAGE "test8.jpg" |
Definition at line 26 of file rotatetest2.c.
Referenced by main().
#define FOUR_BPP_IMAGE "weasel4.8g.png" |
Definition at line 27 of file rotatetest2.c.
Referenced by main().
#define COLORMAP_IMAGE "dreyfus8.png" |
Definition at line 28 of file rotatetest2.c.
Referenced by main().
#define RGB_IMAGE "marge.jpg" |
Definition at line 29 of file rotatetest2.c.
Referenced by main().
void rotateTest | ( | const char * | fname, |
PIXA * | pixa | ||
) |
Definition at line 74 of file rotatetest2.c.
References ANGLE1, IFF_JFIF_JPEG, IFF_PNG, L_BRING_IN_WHITE, L_ERROR, L_ROTATE_AREA_MAP, L_ROTATE_SHEAR, MODSIZE, NTIMES, NULL, pixDestroy(), pixGetColormap(), pixGetDimensions(), pixRead(), pixRotate(), pixSaveTiledOutline(), pixWrite(), and PROCNAME.
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 39 of file rotatetest2.c.
References BINARY_IMAGE, COLORMAP_IMAGE, ERROR_INT, FOUR_BPP_IMAGE, GRAYSCALE_IMAGE, IFF_JFIF_JPEG, pixaCreate(), pixaDestroy(), pixaDisplay(), pixDestroy(), pixDisplay(), pixWrite(), RGB_IMAGE, and rotateTest().
Definition at line 31 of file rotatetest2.c.
Referenced by rotateTest().
Definition at line 33 of file rotatetest2.c.
Referenced by rotateTest().
Definition at line 34 of file rotatetest2.c.
Referenced by rotateTest().