|
Leptonica
1.54
|
Макросы | |
| #define | OUTROOT "fhmtgen" |
| #define | TEMPLATE1 "hmttemplate1.txt" |
| #define | TEMPLATE2 "hmttemplate2.txt" |
| #define | PROTOARGS "(l_uint32 *, l_int32, l_int32, l_int32, l_uint32 *, l_int32);" |
Функции | |
| static char * | makeBarrelshiftString (l_int32 delx, l_int32 dely, l_int32 type) |
| static SARRAY * | sarrayMakeInnerLoopDWACode (SEL *sel, l_int32 nhits, l_int32 nmisses) |
| static SARRAY * | sarrayMakeWplsCode (SEL *sel) |
| l_int32 | fhmtautogen (SELA *sela, l_int32 fileindex, const char *filename) |
| l_int32 | fhmtautogen1 (SELA *sela, l_int32 fileindex, const char *filename) |
| l_int32 | fhmtautogen2 (SELA *sela, l_int32 fileindex, const char *filename) |
Переменные | |
| static const l_int32 | L_BUF_SIZE = 512 |
| static char | wpldecls [][60] |
| static char | wpldefs [][24] |
| static char | wplstrp [][10] |
| static char | wplstrm [][10] |
| #define OUTROOT "fhmtgen" |
| #define TEMPLATE1 "hmttemplate1.txt" |
| #define TEMPLATE2 "hmttemplate2.txt" |
Input: sela
fileindex
filename (<optional>; can be null)
Return: 0 if OK; 1 on error
Notes: (1) This function generates all the code for implementing dwa morphological operations using all the sels in the sela. (2) See fhmtautogen1() and fhmtautogen2() for details.
Input: sel array
fileindex
filename (<optional>; can be null)
Return: 0 if OK; 1 on error
Notes: (1) This function uses hmttemplate1.txt to create a top-level file that contains two functions that carry out the hit-miss transform for any of the sels in the input sela. (2) The fileindex parameter is inserted into the output filename, as described below. (3) If filename == NULL, the output file is fhmtgen.<n>.c, where <n> is equal to the 'fileindex' parameter. (4) If filename != NULL, the output file is <filename>.<n>.c. (5) Each sel must have at least one hit. A sel with only misses generates code that will abort the operation if it is called.
Input: sel array
fileindex
filename (<optional>; can be null)
Return: 0 if OK; 1 on error
Notes: (1) This function uses hmttemplate2.txt to create a low-level file that contains the low-level functions for implementing the hit-miss transform for every sel in the input sela. (2) The fileindex parameter is inserted into the output filename, as described below. (3) If filename == NULL, the output file is fhmtgenlow.<n>.c, where <n> is equal to the 'fileindex' parameter. (4) If filename != NULL, the output file is <filename>low.<n>.c.
|
static |
|
static |
|
static |
|
static |
|
static |