Leptonica 1.68
C Image Processing Library
|
This tests pixDistanceFunction() for a variety of usage with all 8 combinations of these parameters: connectivity (4 or 8), dest depth (8 or 16), and boundary cond (L_BOUNDARY_BG or L_BOUNDARY_FG). More...
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | DEBUG 0 |
Functions | |
static void | TestDistance (PIXA *pixa, PIX *pixs, l_int32 conn, l_int32 depth, l_int32 bc, L_REGPARAMS *rp) |
main (int argc, char **argv) |
This tests pixDistanceFunction() for a variety of usage with all 8 combinations of these parameters: connectivity (4 or 8), dest depth (8 or 16), and boundary cond (L_BOUNDARY_BG or L_BOUNDARY_FG).
Definition in file distance_reg.c.
#define DEBUG 0 |
Definition at line 32 of file distance_reg.c.
Referenced by main().
static void TestDistance | ( | PIXA * | pixa, |
PIX * | pixs, | ||
l_int32 | conn, | ||
l_int32 | depth, | ||
l_int32 | bc, | ||
L_REGPARAMS * | rp | ||
) | [static] |
Definition at line 85 of file distance_reg.c.
References IFF_JFIF_JPEG, IFF_PNG, L_LINEAR_SCALE, L_LOG_SCALE, pixCreateTemplate(), pixDestroy(), pixDistanceFunction(), pixInvert(), pixMaxDynamicRange(), pixRenderContours(), pixSaveTiled(), pixSeedfillGray(), pixSetMasked(), and regTestWritePixAndCheck().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 35 of file distance_reg.c.
References boxCreate(), boxDestroy(), buf, DEBUG, L_RegParams::display, IFF_PNG, L_RegParams::index, NULL, pixaCreate(), pixaDestroy(), pixaDisplay(), pixClipRectangle(), pixDestroy(), pixDisplayWithTitle(), pixRead(), pixSaveTiled(), regTestCleanup(), regTestSetup(), regTestWritePixAndCheck(), and TestDistance().