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
26namespace itk
27{
28
38template <class TListSample>
39class ITK_TEMPLATE_EXPORT BinaryTreeSearchBase : public Object
40{
41public:
43
46 using Superclass = Object;
47 using Pointer = SmartPointer<Self>;
48 using ConstPointer = SmartPointer<const Self>;
49
51 itkTypeMacro(BinaryTreeSearchBase, Object);
52
54 using ListSampleType = TListSample;
58 using IndexArrayType = Array<int>;
59 using DistanceArrayType = Array<double>;
60
62 virtual void
64
65 const BinaryTreeType *
67
69 itkSetMacro(KNearestNeighbors, unsigned int);
70 itkGetConstMacro(KNearestNeighbors, unsigned int);
71
73 virtual void
75
76protected:
78 ~BinaryTreeSearchBase() override = default;
79
81 BinaryTreePointer m_BinaryTree{};
82 unsigned int m_KNearestNeighbors{};
83 unsigned int m_DataDimension{};
84};
85
86} // end namespace itk
87
88#ifndef ITK_MANUAL_INSTANTIATION
89# include "itkBinaryTreeSearchBase.hxx"
90#endif
91
92#endif // end #ifndef itkBinaryTreeSearchBase_h
typename SampleType::MeasurementVectorType MeasurementVectorType
typename BinaryTreeType::MeasurementVectorType MeasurementVectorType
typename BinaryTreeType::Pointer BinaryTreePointer
~BinaryTreeSearchBase() override=default
const BinaryTreeType * GetBinaryTree() const
ITK_DISALLOW_COPY_AND_MOVE(BinaryTreeSearchBase)
SmartPointer< const Self > ConstPointer
virtual void Search(const MeasurementVectorType &qp, IndexArrayType &ind, DistanceArrayType &dists)=0
virtual void SetBinaryTree(BinaryTreeType *tree)


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo