Leptonica 1.85.0
Image processing and image analysis suite
Loading...
Searching...
No Matches
array.h File Reference

Go to the source code of this file.

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

 This file has typedefs for the following array 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

 It 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.

Typedef Documentation

◆ L_BYTEA

typedef struct L_Bytea L_BYTEA

Byte array (analogous to C++ "string")

Definition at line 84 of file array.h.

◆ L_DNA

typedef struct L_Dna L_DNA

Double number array: an array of doubles

Definition at line 72 of file array.h.

◆ L_DNAA

typedef struct L_Dnaa L_DNAA

Array of double number arrays

Definition at line 75 of file array.h.

◆ L_DNAHASH

typedef struct L_DnaHash L_DNAHASH

Array of double number arrays, used as a simple hash

Definition at line 78 of file array.h.

◆ NUMA

typedef struct Numa NUMA

Number array: an array of floats

Definition at line 66 of file array.h.

◆ NUMAA

typedef struct Numaa NUMAA

Array of number arrays

Definition at line 69 of file array.h.

◆ SARRAY

typedef struct Sarray SARRAY

String array: an array of C strings

Definition at line 81 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 91 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 97 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 104 of file array.h.