Leptonica  1.82.0
Image processing and image analysis suite
array.h File Reference

Go to the source code of this file.

Data Structures

struct  Numa
 
struct  Numaa
 
struct  L_Dna
 
struct  L_Dnaa
 
struct  L_DnaHash
 
struct  Sarray
 
struct  L_Bytea
 

Macros

#define NUMA_VERSION_NUMBER   1
 
#define DNA_VERSION_NUMBER   1
 
#define SARRAY_VERSION_NUMBER   1
 

Typedefs

typedef struct Numa NUMA
 
typedef struct Numaa NUMAA
 
typedef struct L_Dna L_DNA
 
typedef struct L_Dnaa L_DNAA
 
typedef struct L_DnaHash L_DNAHASH
 
typedef struct Sarray SARRAY
 
typedef struct L_Bytea L_BYTEA
 

Enumerations

enum  { L_LINEAR_INTERP = 1, L_QUADRATIC_INTERP = 2 }
 
enum  { L_CONTINUED_BORDER = 1, L_SLOPE_BORDER = 2, L_MIRRORED_BORDER = 3 }
 
enum  { L_INTEGER_VALUE = 1, L_FLOAT_VALUE = 2 }
 

Detailed Description

 Contains the following structs:
     struct Numa          array of floats
     struct Numaa
     struct L_Dna         array of doubles
     struct L_Dnaa
     struct L_Dnahash
     struct Sarray        array of C-strings
     struct L_Bytea       array of bytes
 Contains definitions for:
     Numa interpolation flags
     Numa border flags
     Numa data type conversion to string
 Here are the non-image-related arrays in leptonica:
 * Numa, L_Dna, L_Ptra, Sarray:
   These have most of the typical operations of vectors, such as add,
   insert, remove and replace.
 * Numaa, L_Dnaa, L_Ptraa:
   These are arrays of float, double and generic pointer arrays.
 * L_Bytea:
   This is an array of bytes, analogous to a C++ string.
 * L_Dnahash:
   This is a simple hashing for integers, used in the jbig2 classifier.

Definition in file array.h.

Macro Definition Documentation

◆ DNA_VERSION_NUMBER

#define DNA_VERSION_NUMBER   1

Dna version for serialization

Definition at line 91 of file array.h.

◆ NUMA_VERSION_NUMBER

#define NUMA_VERSION_NUMBER   1

Numa version for serialization

Definition at line 67 of file array.h.

◆ SARRAY_VERSION_NUMBER

#define SARRAY_VERSION_NUMBER   1

Sarray version for serialization

Definition at line 123 of file array.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Numa Interpolation

Enumerator
L_LINEAR_INTERP 

linear

L_QUADRATIC_INTERP 

quadratic

Definition at line 150 of file array.h.

◆ anonymous enum

anonymous enum

Numa Border Adding

Enumerator
L_CONTINUED_BORDER 

extended with same value

L_SLOPE_BORDER 

extended with constant normal derivative

L_MIRRORED_BORDER 

mirrored

Definition at line 156 of file array.h.

◆ anonymous enum

anonymous enum

Numa Data Conversion

Enumerator
L_INTEGER_VALUE 

convert to integer

L_FLOAT_VALUE 

convert to float

Definition at line 163 of file array.h.