#include <stdio.h>
#include <math.h>
#include "allheaders.h"
Макросы | |
#define | L_BUF_SIZE 512 |
Функции | |
SELA * | selaAddBasic (SELA *sela) |
SELA * | selaAddHitMiss (SELA *sela) |
SELA * | selaAddDwaLinear (SELA *sela) |
SELA * | selaAddDwaCombs (SELA *sela) |
SELA * | selaAddCrossJunctions (SELA *sela, l_float32 hlsize, l_float32 mdist, l_int32 norient, l_int32 debugflag) |
SELA * | selaAddTJunctions (SELA *sela, l_float32 hlsize, l_float32 mdist, l_int32 norient, l_int32 debugflag) |
Переменные | |
static const l_int32 | num_linear = 25 |
static const l_int32 | basic_linear [] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 21, 25, 30, 31, 35, 40, 41, 45, 50, 51} |
#define L_BUF_SIZE 512 |
Input: sela (<optional>) Return: sela with additional sels, or null on error
Notes: (1) Adds the following sels:
SELA* selaAddCrossJunctions | ( | SELA * | sela, | |
l_float32 | hlsize, | |||
l_float32 | mdist, | |||
l_int32 | norient, | |||
l_int32 | debugflag | |||
) |
Input: sela (<optional>) hlsize (length of each line of hits from origin) mdist (distance of misses from the origin) norient (number of orientations; max of 8) debugflag (1 for debug output) Return: sela with additional sels, or null on error
Notes: (1) Adds hitmiss Sels for the intersection of two lines. If the lines are very thin, they must be nearly orthogonal to register. (2) The number of Sels generated is equal to . (3) If == 2, this generates 2 Sels of crosses, each with two perpendicular lines of hits. One Sel has horizontal and vertical hits; the other has hits along lines at +-45 degrees. Likewise, if == 3, this generates 3 Sels of crosses oriented at 30 degrees with each other. (4) It is suggested that be chosen at least 1 greater than . Try values of (, ) such as (6,5), (7,6), (8,7), (9,7), etc.
Input: sela (<optional>) Return: sela with additional sels, or null on error
Notes: (1) Adds all comb (horizontal, vertical) Sels that are used in composite linear morphological operations up to 63 pixels in length, which are the sizes over which dwa code can be generated.
Input: sela (<optional>) Return: sela with additional sels, or null on error
Notes: (1) Adds all linear (horizontal, vertical) sels from 2 to 63 pixels in length, which are the sizes over which dwa code can be generated.
Input: sela (<optional>) Return: sela with additional sels, or null on error
SELA* selaAddTJunctions | ( | SELA * | sela, | |
l_float32 | hlsize, | |||
l_float32 | mdist, | |||
l_int32 | norient, | |||
l_int32 | debugflag | |||
) |
Input: sela (<optional>) hlsize (length of each line of hits from origin) mdist (distance of misses from the origin) norient (number of orientations; max of 8) debugflag (1 for debug output) Return: sela with additional sels, or null on error
Notes: (1) Adds hitmiss Sels for the T-junction of two lines. If the lines are very thin, they must be nearly orthogonal to register. (2) The number of Sels generated is 4 * . (3) It is suggested that be chosen at least 1 greater than . Try values of (, ) such as (6,5), (7,6), (8,7), (9,7), etc.
const l_int32 basic_linear[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 21, 25, 30, 31, 35, 40, 41, 45, 50, 51} [static] |
const l_int32 num_linear = 25 [static] |