![]() |
Leptonica 1.68
C Image Processing Library
|
Testing basic ptra and ptraa operations, bin sort using ptra, boxaEqual() and pixaEqual(). More...
#include <stdio.h>#include <stdlib.h>#include "allheaders.h"Go to the source code of this file.
Functions | |
| void | BoxaSortTest (const char *fname, l_int32 index, const char *text) |
| void | PixaSortTest (const char *fname, l_int32 index, const char *text) |
| main (int argc, char **argv) | |
Testing basic ptra and ptraa operations, bin sort using ptra, boxaEqual() and pixaEqual().
Definition in file ptra2_reg.c.
| void BoxaSortTest | ( | const char * | fname, |
| l_int32 | index, | ||
| const char * | text | ||
| ) |
Definition at line 47 of file ptra2_reg.c.
References boxaAddBox(), boxaBinSort(), boxaCreate(), boxaDestroy(), boxaEqual(), boxaGetBox(), boxaGetCount(), boxaSort(), boxaWrite(), boxGetGeometry(), buf, FALSE, L_CLONE, L_HANDLE_ONLY, L_INSERT, L_MIN_DOWNSHIFT, L_NO_COMPACTION, L_SORT_BY_X, L_SORT_INCREASING, NULL, numaAddNumber(), numaCreate(), numaDestroy(), numaJoin(), numaWrite(), pixConnComp(), pixDestroy(), pixGetDimensions(), pixRead(), ptraaCreate(), ptraAdd(), ptraaDestroy(), ptraaFlattenToPtra(), ptraaGetPtra(), ptraaInsertPtra(), ptraCreate(), ptraDestroy(), ptraGetActualCount(), ptraGetHandle(), ptraGetMaxIndex(), ptraInsert(), ptraRemove(), startTimer(), stopTimer(), and HeapElement::x.
Referenced by main().
| void PixaSortTest | ( | const char * | fname, |
| l_int32 | index, | ||
| const char * | text | ||
| ) |
Definition at line 166 of file ptra2_reg.c.
References boxaDestroy(), boxaEqual(), boxaWrite(), buf, L_CLONE, L_SORT_BY_X, L_SORT_INCREASING, numaDestroy(), numaWrite(), pixaBinSort(), pixaDestroy(), pixaEqual(), pixaGetBoxa(), pixaSort(), pixaWrite(), pixConnComp(), pixDestroy(), pixRead(), startTimer(), and stopTimer().
Referenced by main().
| main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 32 of file ptra2_reg.c.
References BoxaSortTest(), and PixaSortTest().