go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ANN.h File Reference
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <climits>
#include <cfloat>
+ Include dependency graph for ANN.h:

Go to the source code of this file.

Data Structures

class  ANNbd_tree
 
class  ANNbruteForce
 
class  ANNkd_tree
 
class  ANNpointSet
 

Macros

#define ANN_DIFF(x, y)   ((y) - (x))
 
#define ANN_POW(v)   ((v)*(v))
 
#define ANN_ROOT(x)   sqrt(x)
 
#define ANN_SUM(x, y)   ((x) + (y))
 
#define ANNcopyright   "David M. Mount and Sunil Arya"
 
#define ANNlatestRev   "Mar 1, 2005"
 
#define ANNversion   "1.0"
 
#define ANNversionCmt   ""
 
#define DLL_API
 

Typedefs

typedef double ANNcoord
 
typedef double ANNdist
 
typedef ANNdistANNdistArray
 
typedef int ANNidx
 
typedef ANNidxANNidxArray
 
typedef ANNkd_nodeANNkd_ptr
 
typedef ANNcoordANNpoint
 
typedef ANNpointANNpointArray
 

Enumerations

enum  ANNbool { ANNfalse = 0, ANNtrue = 1 }
 
enum  ANNshrinkRule { ANN_BD_NONE = 0, ANN_BD_SIMPLE = 1, ANN_BD_CENTROID = 2, ANN_BD_SUGGEST = 3 }
 
enum  ANNsplitRule {
  ANN_KD_STD = 0, ANN_KD_MIDPT = 1, ANN_KD_FAIR = 2, ANN_KD_SL_MIDPT = 3,
  ANN_KD_SL_FAIR = 4, ANN_KD_SUGGEST = 5
}
 

Functions

DLL_API ANNpoint annAllocPt (int dim, ANNcoord c=0)
 
DLL_API ANNpointArray annAllocPts (int n, int dim)
 
DLL_API void annClose ()
 
DLL_API ANNpoint annCopyPt (int dim, ANNpoint source)
 
DLL_API void annDeallocPt (ANNpoint &p)
 
DLL_API void annDeallocPts (ANNpointArray &pa)
 
DLL_API ANNdist annDist (int dim, ANNpoint p, ANNpoint q)
 
DLL_API void annMaxPtsVisit (int maxPts)
 

Variables

const ANNbool ANN_ALLOW_SELF_MATCH = ANNfalse
 
const double ANN_DBL_MAX = DBL_MAX
 
const ANNdist ANN_DIST_INF = ANN_DBL_MAX
 
const int ANN_N_SHRINK_RULES = 4
 
const int ANN_N_SPLIT_RULES = 6
 
const ANNidx ANN_NULL_IDX = -1
 
const int ANNcoordPrec = 15
 

Macro Definition Documentation

◆ ANN_DIFF

#define ANN_DIFF (   x,
 
)    ((y) - (x))

Definition at line 342 of file ANN.h.

◆ ANN_POW

#define ANN_POW (   v)    ((v)*(v))

Definition at line 339 of file ANN.h.

◆ ANN_ROOT

#define ANN_ROOT (   x)    sqrt(x)

Definition at line 340 of file ANN.h.

◆ ANN_SUM

#define ANN_SUM (   x,
 
)    ((x) + (y))

Definition at line 341 of file ANN.h.

◆ ANNcopyright

#define ANNcopyright   "David M. Mount and Sunil Arya"

Definition at line 124 of file ANN.h.

◆ ANNlatestRev

#define ANNlatestRev   "Mar 1, 2005"

Definition at line 125 of file ANN.h.

◆ ANNversion

#define ANNversion   "1.0"

Definition at line 122 of file ANN.h.

◆ ANNversionCmt

#define ANNversionCmt   ""

Definition at line 123 of file ANN.h.

◆ DLL_API

#define DLL_API

Definition at line 86 of file ANN.h.

Typedef Documentation

◆ ANNcoord

typedef double ANNcoord

Definition at line 159 of file ANN.h.

◆ ANNdist

typedef double ANNdist

Definition at line 160 of file ANN.h.

◆ ANNdistArray

Definition at line 380 of file ANN.h.

◆ ANNidx

typedef int ANNidx

Definition at line 176 of file ANN.h.

◆ ANNidxArray

typedef ANNidx* ANNidxArray

Definition at line 381 of file ANN.h.

◆ ANNkd_ptr

Definition at line 705 of file ANN.h.

◆ ANNpoint

typedef ANNcoord* ANNpoint

Definition at line 378 of file ANN.h.

◆ ANNpointArray

Definition at line 379 of file ANN.h.

Enumeration Type Documentation

◆ ANNbool

enum ANNbool
Enumerator
ANNfalse 
ANNtrue 

Definition at line 133 of file ANN.h.

◆ ANNshrinkRule

Enumerator
ANN_BD_NONE 
ANN_BD_SIMPLE 
ANN_BD_CENTROID 
ANN_BD_SUGGEST 

Definition at line 608 of file ANN.h.

◆ ANNsplitRule

Enumerator
ANN_KD_STD 
ANN_KD_MIDPT 
ANN_KD_FAIR 
ANN_KD_SL_MIDPT 
ANN_KD_SL_FAIR 
ANN_KD_SUGGEST 

Definition at line 599 of file ANN.h.

Function Documentation

◆ annAllocPt()

DLL_API ANNpoint annAllocPt ( int  dim,
ANNcoord  c = 0 
)

◆ annAllocPts()

DLL_API ANNpointArray annAllocPts ( int  n,
int  dim 
)

◆ annClose()

DLL_API void annClose ( )

◆ annCopyPt()

DLL_API ANNpoint annCopyPt ( int  dim,
ANNpoint  source 
)

◆ annDeallocPt()

DLL_API void annDeallocPt ( ANNpoint p)

◆ annDeallocPts()

DLL_API void annDeallocPts ( ANNpointArray pa)

◆ annDist()

DLL_API ANNdist annDist ( int  dim,
ANNpoint  p,
ANNpoint  q 
)

◆ annMaxPtsVisit()

DLL_API void annMaxPtsVisit ( int  maxPts)

Variable Documentation

◆ ANN_ALLOW_SELF_MATCH

const ANNbool ANN_ALLOW_SELF_MATCH = ANNfalse

Definition at line 238 of file ANN.h.

◆ ANN_DBL_MAX

const double ANN_DBL_MAX = DBL_MAX

Definition at line 119 of file ANN.h.

◆ ANN_DIST_INF

const ANNdist ANN_DIST_INF = ANN_DBL_MAX

Definition at line 200 of file ANN.h.

◆ ANN_N_SHRINK_RULES

const int ANN_N_SHRINK_RULES = 4

Definition at line 613 of file ANN.h.

◆ ANN_N_SPLIT_RULES

const int ANN_N_SPLIT_RULES = 6

Definition at line 606 of file ANN.h.

◆ ANN_NULL_IDX

const ANNidx ANN_NULL_IDX = -1

Definition at line 177 of file ANN.h.

◆ ANNcoordPrec

const int ANNcoordPrec = 15

Definition at line 223 of file ANN.h.



Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo