Loading...
Searching...
No Matches
itkBinaryTreeSearchBase.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkBinaryTreeSearchBase_h
#define itkBinaryTreeSearchBase_h
#include "itkObject.h"
#include "itkArray.h"
#include "itkBinaryTreeBase.h"
namespace itk
{
template <class TListSample>
class ITK_TEMPLATE_EXPORT BinaryTreeSearchBase : public Object
{
public:
ITK_DISALLOW_COPY_AND_MOVE(BinaryTreeSearchBase);
using Self = BinaryTreeSearchBase;
using Superclass = Object;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkTypeMacro(BinaryTreeSearchBase, Object);
using ListSampleType = TListSample;
using BinaryTreeType = BinaryTreeBase<ListSampleType>;
using BinaryTreePointer = typename BinaryTreeType::Pointer;
using MeasurementVectorType = typename BinaryTreeType::MeasurementVectorType;
using IndexArrayType = Array<int>;
using DistanceArrayType = Array<double>;
virtual void
SetBinaryTree(BinaryTreeType * tree);
const BinaryTreeType *
GetBinaryTree() const;
itkSetMacro(KNearestNeighbors, unsigned int);
itkGetConstMacro(KNearestNeighbors, unsigned int);
virtual void
Search(const MeasurementVectorType & qp, IndexArrayType & ind, DistanceArrayType & dists) = 0;
protected:
BinaryTreeSearchBase();
~BinaryTreeSearchBase() override = default;
BinaryTreePointer m_BinaryTree{};
unsigned int m_KNearestNeighbors{};
unsigned int m_DataDimension{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkBinaryTreeSearchBase.hxx"
#endif
#endif // end #ifndef itkBinaryTreeSearchBase_h
itk::BinaryTreeBase
Definition itkBinaryTreeBase.h:37
itk::BinaryTreeBase< ListSampleType >::Pointer
SmartPointer< Self > Pointer
Definition itkBinaryTreeBase.h:44
itk::BinaryTreeBase< ListSampleType >::MeasurementVectorType
typename SampleType::MeasurementVectorType MeasurementVectorType
Definition itkBinaryTreeBase.h:54
itk::BinaryTreeSearchBase< ListSampleType >::Superclass
Object Superclass
Definition itkBinaryTreeSearchBase.h:46
itk::BinaryTreeSearchBase< ListSampleType >::MeasurementVectorType
typename BinaryTreeType::MeasurementVectorType MeasurementVectorType
Definition itkBinaryTreeSearchBase.h:57
itk::BinaryTreeSearchBase< ListSampleType >::IndexArrayType
Array< int > IndexArrayType
Definition itkBinaryTreeSearchBase.h:58
itk::BinaryTreeSearchBase< ListSampleType >::BinaryTreePointer
typename BinaryTreeType::Pointer BinaryTreePointer
Definition itkBinaryTreeSearchBase.h:56
itk::BinaryTreeSearchBase< ListSampleType >::Self
BinaryTreeSearchBase Self
Definition itkBinaryTreeSearchBase.h:45
itk::BinaryTreeSearchBase::~BinaryTreeSearchBase
~BinaryTreeSearchBase() override=default
itk::BinaryTreeSearchBase::GetBinaryTree
const BinaryTreeType * GetBinaryTree() const
itk::BinaryTreeSearchBase< ListSampleType >::DistanceArrayType
Array< double > DistanceArrayType
Definition itkBinaryTreeSearchBase.h:59
itk::BinaryTreeSearchBase::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(BinaryTreeSearchBase)
itk::BinaryTreeSearchBase< ListSampleType >::Pointer
SmartPointer< Self > Pointer
Definition itkBinaryTreeSearchBase.h:47
itk::BinaryTreeSearchBase< ListSampleType >::m_KNearestNeighbors
unsigned int m_KNearestNeighbors
Definition itkBinaryTreeSearchBase.h:82
itk::BinaryTreeSearchBase< ListSampleType >::BinaryTreeType
BinaryTreeBase< ListSampleType > BinaryTreeType
Definition itkBinaryTreeSearchBase.h:55
itk::BinaryTreeSearchBase< ListSampleType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkBinaryTreeSearchBase.h:48
itk::BinaryTreeSearchBase< ListSampleType >::ListSampleType
ListSampleType ListSampleType
Definition itkBinaryTreeSearchBase.h:54
itk::BinaryTreeSearchBase::BinaryTreeSearchBase
BinaryTreeSearchBase()
itk::BinaryTreeSearchBase< ListSampleType >::m_BinaryTree
BinaryTreePointer m_BinaryTree
Definition itkBinaryTreeSearchBase.h:81
itk::BinaryTreeSearchBase< ListSampleType >::m_DataDimension
unsigned int m_DataDimension
Definition itkBinaryTreeSearchBase.h:83
itk::BinaryTreeSearchBase::Search
virtual void Search(const MeasurementVectorType &qp, IndexArrayType &ind, DistanceArrayType &dists)=0
itk::BinaryTreeSearchBase::SetBinaryTree
virtual void SetBinaryTree(BinaryTreeType *tree)
itkBinaryTreeBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |