go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
itkBinaryANNTreeSearchBase.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 itkBinaryANNTreeSearchBase_h
19#define itkBinaryANNTreeSearchBase_h
20
23#include "ANN/ANN.h"
24
25namespace itk
26{
27
37template <class TListSample>
38class ITK_TEMPLATE_EXPORT BinaryANNTreeSearchBase : public BinaryTreeSearchBase<TListSample>
39{
40public:
42
46 using Pointer = SmartPointer<Self>;
47 using ConstPointer = SmartPointer<const Self>;
48
51
53 using typename Superclass::ListSampleType;
54 using typename Superclass::BinaryTreeType;
55 using typename Superclass::BinaryTreePointer;
57 using typename Superclass::IndexArrayType;
58 using typename Superclass::DistanceArrayType;
59
61 using ANNPointType = ANNpoint; // double *
62 using ANNIndexType = ANNidx; // int
64 using ANNDistanceType = ANNdist; // double
66
69
71 void
72 SetBinaryTree(BinaryTreeType * tree) override;
73
74 // const BinaryTreeType * GetBinaryTree() const;
75
76protected:
78 ~BinaryANNTreeSearchBase() override = default;
79
81 typename BinaryANNTreeType::Pointer m_BinaryTreeAsITKANNType{};
82};
83
84} // end namespace itk
85
86#ifndef ITK_MANUAL_INSTANTIATION
87# include "itkBinaryANNTreeSearchBase.hxx"
88#endif
89
90#endif // end #ifndef itkBinaryANNTreeSearchBase_h
ANNidx * ANNidxArray
Definition ANN.h:356
double ANNdist
Definition ANN.h:135
int ANNidx
Definition ANN.h:151
ANNcoord * ANNpoint
Definition ANN.h:353
ANNdist * ANNdistArray
Definition ANN.h:355
void SetBinaryTree(BinaryTreeType *tree) override
ITK_DISALLOW_COPY_AND_MOVE(BinaryANNTreeSearchBase)
~BinaryANNTreeSearchBase() override=default
SmartPointer< const Self > ConstPointer
BinaryANNTreeBase< ListSampleType > BinaryANNTreeType
typename BinaryTreeType::MeasurementVectorType MeasurementVectorType
typename BinaryTreeType::Pointer BinaryTreePointer


Generated on 1739326392 for elastix by doxygen 1.9.8 elastix logo