Leptonica 1.68
C Image Processing Library
|
Testing basic ptra operations using: ptraRemove(), ptraInsert(), ptraSwap(), and ptraAdd(). More...
#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | CHOOSE_RECON 2 |
Functions | |
static void | MakePtrasFromPixa (PIXA *pixa, L_PTRA **ppapix, L_PTRA **ppabox, l_int32 copyflag) |
static PIXA * | ReconstructPixa (L_PTRA *papix, L_PTRA *pabox, l_int32 choose) |
static PIXA * | ReconstructPixa1 (L_PTRA *papix, L_PTRA *pabox) |
static PIXA * | ReconstructPixa2 (L_PTRA *papix, L_PTRA *pabox) |
static void | CopyPtras (L_PTRA *papixs, L_PTRA *paboxs, L_PTRA **ppapixd, L_PTRA **ppaboxd) |
static void | DisplayResult (PIXA *pixac, PIXA **ppixa, l_int32 w, l_int32 h, l_int32 newline) |
main (int argc, char **argv) |
Testing basic ptra operations using: ptraRemove(), ptraInsert(), ptraSwap(), and ptraAdd().
Definition in file ptra1_reg.c.
#define CHOOSE_RECON 2 |
Definition at line 36 of file ptra1_reg.c.
Referenced by main().
static void MakePtrasFromPixa | ( | PIXA * | pixa, |
L_PTRA ** | ppapix, | ||
L_PTRA ** | ppabox, | ||
l_int32 | copyflag | ||
) | [static] |
Definition at line 215 of file ptra1_reg.c.
References pixaGetBox(), pixaGetCount(), pixaGetPix(), ptraAdd(), and ptraCreate().
Referenced by main().
Definition at line 242 of file ptra1_reg.c.
References ReconstructPixa1(), and ReconstructPixa2().
Referenced by main().
Definition at line 258 of file ptra1_reg.c.
References L_INSERT, L_NO_COMPACTION, pixaAddBox(), pixaAddPix(), pixaCreate(), ptraGetActualCount(), ptraGetMaxIndex(), and ptraRemove().
Referenced by ReconstructPixa().
Definition at line 290 of file ptra1_reg.c.
References L_COMPACTION, L_INSERT, L_NO_COMPACTION, pixaAddBox(), pixaAddPix(), pixaCreate(), ptraCompactArray(), ptraGetActualCount(), ptraGetMaxIndex(), and ptraRemove().
Referenced by ReconstructPixa().
static void CopyPtras | ( | L_PTRA * | papixs, |
L_PTRA * | paboxs, | ||
L_PTRA ** | ppapixd, | ||
L_PTRA ** | ppaboxd | ||
) | [static] |
Definition at line 347 of file ptra1_reg.c.
References boxCopy(), NULL, pixCopy(), ptraAdd(), ptraCreate(), ptraGetMaxIndex(), and ptraGetPtrToItem().
static void DisplayResult | ( | PIXA * | pixac, |
PIXA ** | ppixa, | ||
l_int32 | w, | ||
l_int32 | h, | ||
l_int32 | newline | ||
) | [static] |
Definition at line 370 of file ptra1_reg.c.
References pixaDestroy(), pixaDisplay(), pixDestroy(), and pixSaveTiled().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 39 of file ptra1_reg.c.
References boxaDestroy(), boxDestroy(), CHOOSE_RECON, DisplayResult(), ERROR_INT, IFF_PNG, L_AUTO_DOWNSHIFT, L_CLONE, L_COMPACTION, L_COPY, L_FULL_DOWNSHIFT, L_MIN_DOWNSHIFT, L_NO_COMPACTION, MakePtrasFromPixa(), NULL, pixaCreate(), pixaDestroy(), pixaDisplay(), pixaGetBox(), pixaGetCount(), pixaGetPix(), pixConnComp(), pixDestroy(), pixDisplay(), pixGetDimensions(), pixRead(), pixWrite(), ptraAdd(), ptraCompactArray(), ptraCreate(), ptraDestroy(), ptraGetActualCount(), ptraGetMaxIndex(), ptraInsert(), ptraRemove(), ptraSwap(), and ReconstructPixa().