go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBinaryTreeSearchBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkBinaryTreeSearchBase_h
19 #define __itkBinaryTreeSearchBase_h
20 
21 #include "itkObject.h"
22 #include "itkArray.h"
23 
24 #include "itkBinaryTreeBase.h"
25 
26 namespace itk
27 {
28 
38 template< class TListSample >
39 class BinaryTreeSearchBase : public Object
40 {
41 public:
42 
45  typedef Object Superclass;
47  typedef SmartPointer< const Self > ConstPointer;
48 
50  itkTypeMacro( BinaryTreeSearchBase, Object );
51 
53  typedef TListSample ListSampleType;
56  typedef typename BinaryTreeType::
57  MeasurementVectorType MeasurementVectorType;
58  typedef Array< int > IndexArrayType;
59  typedef Array< double > DistanceArrayType;
60 
62  virtual void SetBinaryTree( BinaryTreeType * tree );
63 
64  const BinaryTreeType * GetBinaryTree( void ) const;
65 
67  itkSetMacro( KNearestNeighbors, unsigned int );
68  itkGetConstMacro( KNearestNeighbors, unsigned int );
69 
71  virtual void Search( const MeasurementVectorType & qp, IndexArrayType & ind,
72  DistanceArrayType & dists ) = 0;
73 
74 protected:
75 
78 
81  unsigned int m_KNearestNeighbors;
82  unsigned int m_DataDimension;
83 
84 private:
85 
86  BinaryTreeSearchBase( const Self & ); // purposely not implemented
87  void operator=( const Self & ); // purposely not implemented
88 
89 };
90 
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkBinaryTreeSearchBase.hxx"
95 #endif
96 
97 #endif // end #ifndef __itkBinaryTreeSearchBase_h
itk::BinaryTreeSearchBase::BinaryTreeSearchBase
BinaryTreeSearchBase(const Self &)
itk::BinaryTreeSearchBase::Superclass
Object Superclass
Definition: itkBinaryTreeSearchBase.h:45
itk::BinaryTreeSearchBase
Definition: itkBinaryTreeSearchBase.h:40
itk::BinaryTreeSearchBase::IndexArrayType
Array< int > IndexArrayType
Definition: itkBinaryTreeSearchBase.h:58
itk::BinaryTreeSearchBase::Search
virtual void Search(const MeasurementVectorType &qp, IndexArrayType &ind, DistanceArrayType &dists)=0
SmartPointer< Self >
itk::BinaryTreeSearchBase::~BinaryTreeSearchBase
virtual ~BinaryTreeSearchBase()
itk::BinaryTreeSearchBase::Pointer
SmartPointer< Self > Pointer
Definition: itkBinaryTreeSearchBase.h:46
itk::BinaryTreeSearchBase::DistanceArrayType
Array< double > DistanceArrayType
Definition: itkBinaryTreeSearchBase.h:59
itkBinaryTreeBase.h
itk::BinaryTreeSearchBase::m_BinaryTree
BinaryTreePointer m_BinaryTree
Definition: itkBinaryTreeSearchBase.h:80
itk::BinaryTreeSearchBase::m_DataDimension
unsigned int m_DataDimension
Definition: itkBinaryTreeSearchBase.h:82
itk::BinaryTreeSearchBase::operator=
void operator=(const Self &)
itk::BinaryTreeSearchBase::BinaryTreePointer
BinaryTreeType::Pointer BinaryTreePointer
Definition: itkBinaryTreeSearchBase.h:55
itk::BinaryTreeSearchBase::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkBinaryTreeSearchBase.h:47
itk::BinaryTreeSearchBase::Self
BinaryTreeSearchBase Self
Definition: itkBinaryTreeSearchBase.h:44
itk::BinaryTreeSearchBase::BinaryTreeSearchBase
BinaryTreeSearchBase()
itk::BinaryTreeSearchBase::m_KNearestNeighbors
unsigned int m_KNearestNeighbors
Definition: itkBinaryTreeSearchBase.h:81
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::BinaryTreeSearchBase::MeasurementVectorType
BinaryTreeType::MeasurementVectorType MeasurementVectorType
Definition: itkBinaryTreeSearchBase.h:57
itk::BinaryTreeBase
Definition: itkBinaryTreeBase.h:37
itk::BinaryTreeSearchBase::GetBinaryTree
const BinaryTreeType * GetBinaryTree(void) const
itk::BinaryTreeSearchBase::BinaryTreeType
BinaryTreeBase< ListSampleType > BinaryTreeType
Definition: itkBinaryTreeSearchBase.h:54
itk::BinaryTreeSearchBase::SetBinaryTree
virtual void SetBinaryTree(BinaryTreeType *tree)
itk::BinaryTreeSearchBase::ListSampleType
TListSample ListSampleType
Definition: itkBinaryTreeSearchBase.h:50


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo