Leptonica 1.68
C Image Processing Library

morph.h File Reference

Structs for image morphology (Sel, Sela) and convolution (Kernel), with enum flags. More...

Go to the source code of this file.

Data Structures

struct  Sel
struct  Sela
struct  L_Kernel

Defines

#define SEL_VERSION_NUMBER   1
#define KERNEL_VERSION_NUMBER   2

Typedefs

typedef struct Sel SEL
typedef struct Sela SELA
typedef struct L_Kernel L_KERNEL

Enumerations

enum  { SYMMETRIC_MORPH_BC = 0, ASYMMETRIC_MORPH_BC = 1 }
enum  { SEL_DONT_CARE = 0, SEL_HIT = 1, SEL_MISS = 2 }
enum  { L_RUN_OFF = 0, L_RUN_ON = 1 }
enum  { L_HORIZ = 1, L_VERT = 2, L_BOTH_DIRECTIONS = 3 }
enum  {
  L_MORPH_DILATE = 1, L_MORPH_ERODE = 2, L_MORPH_OPEN = 3, L_MORPH_CLOSE = 4,
  L_MORPH_HMT = 5
}
enum  { L_LINEAR_SCALE = 1, L_LOG_SCALE = 2 }
enum  { L_TOPHAT_WHITE = 0, L_TOPHAT_BLACK = 1 }
enum  {
  L_ARITH_ADD = 1, L_ARITH_SUBTRACT = 2, L_ARITH_MULTIPLY = 3, L_ARITH_DIVIDE = 4,
  L_UNION = 5, L_INTERSECTION = 6, L_SUBTRACTION = 7, L_EXCLUSIVE_OR = 8
}
enum  { L_CHOOSE_MIN = 1, L_CHOOSE_MAX = 2, L_CHOOSE_MAX_MIN_DIFF = 3 }
enum  { L_BOUNDARY_BG = 1, L_BOUNDARY_FG = 2 }
enum  { L_COMPARE_XOR = 1, L_COMPARE_SUBTRACT = 2, L_COMPARE_ABS_DIFF = 3 }
enum  { L_MAX_DIFF_FROM_AVERAGE_2 = 1, L_MAX_MIN_DIFF_FROM_2 = 2, L_MAX_DIFF = 3 }

Variables

static const l_int32 ADDED_BORDER = 32

Detailed Description

Structs for image morphology (Sel, Sela) and convolution (Kernel), with enum flags.

Definition in file morph.h.


Define Documentation

#define SEL_VERSION_NUMBER   1

Definition at line 46 of file morph.h.

Referenced by selaReadStream(), selaWriteStream(), selReadStream(), and selWriteStream().

#define KERNEL_VERSION_NUMBER   2

Definition at line 71 of file morph.h.

Referenced by kernelReadStream(), and kernelWriteStream().


Typedef Documentation

typedef struct Sel SEL

Definition at line 57 of file morph.h.

typedef struct Sela SELA

Definition at line 65 of file morph.h.

typedef struct L_Kernel L_KERNEL

Definition at line 81 of file morph.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
SYMMETRIC_MORPH_BC 
ASYMMETRIC_MORPH_BC 

Definition at line 91 of file morph.h.

anonymous enum
Enumerator:
SEL_DONT_CARE 
SEL_HIT 
SEL_MISS 

Definition at line 100 of file morph.h.

anonymous enum
Enumerator:
L_RUN_OFF 
L_RUN_ON 

Definition at line 110 of file morph.h.

anonymous enum
Enumerator:
L_HORIZ 
L_VERT 
L_BOTH_DIRECTIONS 

Definition at line 120 of file morph.h.

anonymous enum
Enumerator:
L_MORPH_DILATE 
L_MORPH_ERODE 
L_MORPH_OPEN 
L_MORPH_CLOSE 
L_MORPH_HMT 

Definition at line 130 of file morph.h.

anonymous enum
Enumerator:
L_LINEAR_SCALE 
L_LOG_SCALE 

Definition at line 142 of file morph.h.

anonymous enum
Enumerator:
L_TOPHAT_WHITE 
L_TOPHAT_BLACK 

Definition at line 151 of file morph.h.

anonymous enum
Enumerator:
L_ARITH_ADD 
L_ARITH_SUBTRACT 
L_ARITH_MULTIPLY 
L_ARITH_DIVIDE 
L_UNION 
L_INTERSECTION 
L_SUBTRACTION 
L_EXCLUSIVE_OR 

Definition at line 161 of file morph.h.

anonymous enum
Enumerator:
L_CHOOSE_MIN 
L_CHOOSE_MAX 
L_CHOOSE_MAX_MIN_DIFF 

Definition at line 176 of file morph.h.

anonymous enum
Enumerator:
L_BOUNDARY_BG 
L_BOUNDARY_FG 

Definition at line 186 of file morph.h.

anonymous enum
Enumerator:
L_COMPARE_XOR 
L_COMPARE_SUBTRACT 
L_COMPARE_ABS_DIFF 

Definition at line 195 of file morph.h.

anonymous enum
Enumerator:
L_MAX_DIFF_FROM_AVERAGE_2 
L_MAX_MIN_DIFF_FROM_2 
L_MAX_DIFF 

Definition at line 205 of file morph.h.


Variable Documentation

const l_int32 ADDED_BORDER = 32 [static]

Definition at line 215 of file morph.h.

Referenced by pixFlipFHMTGen(), pixMirrorDetectDwa(), and pixUpDownDetectGeneralDwa().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines