#include <ANN/ANNx.h>#include <ANN/ANNperf.h>#include <cstdlib>Go to the source code of this file.
Functions | |
| ANNdist | annDist (int dim, ANNpoint p, ANNpoint q) |
| void | annPrintPt (ANNpoint pt, int dim, std::ostream &out) |
| ANNpoint | annAllocPt (int dim, ANNcoord c) |
| ANNpointArray | annAllocPts (int n, int dim) |
| void | annDeallocPt (ANNpoint &p) |
| void | annDeallocPts (ANNpointArray &pa) |
| ANNpoint | annCopyPt (int dim, ANNpoint source) |
| void | annAssignRect (int dim, ANNorthRect &dest, const ANNorthRect &source) |
| void | annError (const char *msg, ANNerr level) |
| void | annMaxPtsVisit (int maxPts) |
Variables | |
| int | ANNmaxPtsVisited = 0 |
| int | ANNptsVisited |
Definition at line 108 of file ANN.cpp.
Referenced by ANNorthRect::ANNorthRect(), annReadDump(), mitk::PointLocator::InitANN(), and ipMITKSegmentationGetCutPoints().
| ANNpointArray annAllocPts | ( | int | n, |
| int | dim | ||
| ) |
Definition at line 115 of file ANN.cpp.
Referenced by annReadDump(), ipMITKSegmentationGetCutPoints(), and mitk::PointLocator::SetPoints().
{
ANNpointArray pa = new ANNpoint[n]; // allocate points
ANNpoint p = new ANNcoord[n*dim]; // allocate space for coords
for (int i = 0; i < n; i++) {
pa[i] = &(p[i*dim]);
}
return pa;
}
| void annAssignRect | ( | int | dim, |
| ANNorthRect & | dest, | ||
| const ANNorthRect & | source | ||
| ) |
Definition at line 146 of file ANN.cpp.
References ANNorthRect::hi, and ANNorthRect::lo.
Referenced by annBnds2Box(), and tryCentroidShrink().
Definition at line 138 of file ANN.cpp.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), and ANNorthRect::ANNorthRect().
| void annDeallocPt | ( | ANNpoint & | p ) |
Definition at line 125 of file ANN.cpp.
Referenced by mitk::PointLocator::DestroyANN(), ipMITKSegmentationGetCutPoints(), ANNkd_tree::~ANNkd_tree(), and ANNorthRect::~ANNorthRect().
{
delete [] p;
p = NULL;
}
| void annDeallocPts | ( | ANNpointArray & | pa ) |
Definition at line 131 of file ANN.cpp.
Referenced by mitk::PointLocator::DestroyANN(), and ipMITKSegmentationGetCutPoints().
{
delete [] pa[0]; // dealloc coordinate storage
delete [] pa; // dealloc points
pa = NULL;
}
Definition at line 44 of file ANN.cpp.
References ANN_COORD, ANN_FLOP, ANN_POW, ANN_PTS, ANN_SUM, and QuadProgPP::dist().
Referenced by ANNbruteForce::annkFRSearch(), and ANNbruteForce::annkSearch().
| void annError | ( | const char * | msg, |
| ANNerr | level | ||
| ) |
Definition at line 167 of file ANN.cpp.
References ANNabort.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), ANNkd_tree::annkSearch(), ANNbruteForce::annkSearch(), annReadDump(), annReadTree(), ANNpr_queue::insert(), and selectDecomp().
{
if (level == ANNabort) {
cerr << "ANN: ERROR------->" << msg << "<-------------ERROR\n";
exit(1);
}
else {
cerr << "ANN: WARNING----->" << msg << "<-------------WARNING\n";
}
}
| void annMaxPtsVisit | ( | int | maxPts ) |
| void annPrintPt | ( | ANNpoint | pt, |
| int | dim, | ||
| std::ostream & | out | ||
| ) |
| int ANNmaxPtsVisited = 0 |
Definition at line 188 of file ANN.cpp.
Referenced by ANNkd_split::ann_FR_search(), ANNbd_shrink::ann_FR_search(), ANNkd_split::ann_search(), ANNbd_shrink::ann_search(), ANNkd_tree::annkPriSearch(), and annMaxPtsVisit().
| int ANNptsVisited |
Definition at line 189 of file ANN.cpp.
Referenced by ANNbd_shrink::ann_FR_search(), ANNkd_leaf::ann_pri_search(), ANNkd_leaf::ann_search(), ANNkd_split::ann_search(), ANNbd_shrink::ann_search(), ANNkd_tree::annkPriSearch(), and ANNkd_tree::annkSearch().
1.7.2