go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkANNPriorityTreeSearch.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __itkANNPriorityTreeSearch_h
15 #define __itkANNPriorityTreeSearch_h
16 
18 
19 namespace itk
20 {
21 
31 template< class TListSample >
32 class ANNPriorityTreeSearch : public BinaryANNTreeSearchBase< TListSample >
33 {
34 public:
35 
39  typedef SmartPointer< Self > Pointer;
40  typedef SmartPointer< const Self > ConstPointer;
41 
43  itkNewMacro( Self );
44 
47 
54 
55  typedef typename Superclass::ANNPointType ANNPointType; // double *
56  typedef typename Superclass::ANNIndexType ANNIndexType; // int
58  typedef typename Superclass::ANNDistanceType ANNDistanceType; // double
60 
62 
64  typedef ANNkd_tree ANNkDTreeType;
65  typedef ANNpointSet ANNPointSetType;
66 
68  itkSetClampMacro( ErrorBound, double, 0.0, 1e14 );
69  itkGetConstMacro( ErrorBound, double );
70 
72  virtual void Search( const MeasurementVectorType & qp, IndexArrayType & ind,
73  DistanceArrayType & dists );
74 
75  virtual void SetBinaryTree( BinaryTreeType * tree );
76 
77 protected:
78 
80  virtual ~ANNPriorityTreeSearch();
81 
83  double m_ErrorBound;
85 
86 private:
87 
88  ANNPriorityTreeSearch( const Self & ); // purposely not implemented
89  void operator=( const Self & ); // purposely not implemented
90 
91 };
92 
93 } // end namespace itk
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 #include "itkANNPriorityTreeSearch.hxx"
97 #endif
98 
99 #endif // end #ifndef __itkANNPriorityTreeSearch_h
SmartPointer< const Self > ConstPointer
Superclass::ListSampleType ListSampleType
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::BinaryTreeType BinaryTreeType
Superclass::BinaryANNTreeType BinaryANNTreeType
BinaryANNTreeSearchBase< TListSample > Superclass
void operator=(const Self &)
Superclass::IndexArrayType IndexArrayType
Superclass::ANNDistanceArrayType ANNDistanceArrayType
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::ANNIndexArrayType ANNIndexArrayType
Superclass::DistanceArrayType DistanceArrayType
virtual void SetBinaryTree(BinaryTreeType *tree)
Superclass::ANNPointType ANNPointType
Superclass::IndexArrayType IndexArrayType
Superclass::ListSampleType ListSampleType
virtual void Search(const MeasurementVectorType &qp, IndexArrayType &ind, DistanceArrayType &dists)
Superclass::ANNDistanceType ANNDistanceType
Superclass::DistanceArrayType DistanceArrayType
Superclass::ANNIndexType ANNIndexType


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo