Loading...
Searching...
No Matches
itkANNkDTree.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 itkANNkDTree_h
#define itkANNkDTree_h
#include "itkBinaryANNTreeBase.h"
namespace itk
{
template <class TListSample>
class ITK_TEMPLATE_EXPORT ANNkDTree : public BinaryANNTreeBase<TListSample>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ANNkDTree);
using Self = ANNkDTree;
using Superclass = BinaryANNTreeBase<TListSample>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(ANNkDTree, BinaryANNTreeBase);
using typename Superclass::SampleType;
using typename Superclass::MeasurementVectorType;
using typename Superclass::MeasurementVectorSizeType;
using typename Superclass::TotalAbsoluteFrequencyType;
using ANNPointSetType = ANNpointSet;
using ANNkDTreeType = ANNkd_tree;
using SplittingRuleType = ANNsplitRule;
using BucketSizeType = unsigned int;
itkSetMacro(BucketSize, BucketSizeType);
itkGetConstMacro(BucketSize, BucketSizeType);
itkSetMacro(SplittingRule, SplittingRuleType);
itkGetConstMacro(SplittingRule, SplittingRuleType);
void
SetSplittingRule(const std::string & rule);
std::string
GetSplittingRule();
// void SetMaximumNumberOfPointsToVisit( unsigned int num )
//{
// annMaxPtsVisit( static_cast<int>( num ) );
//}
void
GenerateTree() override;
ANNPointSetType *
GetANNTree() const override
{
return this->m_ANNTree;
}
protected:
ANNkDTree();
~ANNkDTree() override;
void
PrintSelf(std::ostream & os, Indent indent) const override;
ANNkDTreeType * m_ANNTree{};
SplittingRuleType m_SplittingRule{};
BucketSizeType m_BucketSize{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkANNkDTree.hxx"
#endif
#endif // end #ifndef itkANNkDTree_h
ANNsplitRule
ANNsplitRule
Definition ANN.h:575
ANNkd_tree
Definition ANN.h:684
ANNpointSet
Definition ANN.h:470
int
itk::ANNkDTree::GetSplittingRule
std::string GetSplittingRule()
itk::ANNkDTree< ListSampleType >::m_SplittingRule
SplittingRuleType m_SplittingRule
Definition itkANNkDTree.h:109
itk::ANNkDTree< ListSampleType >::Pointer
SmartPointer< Self > Pointer
Definition itkANNkDTree.h:44
itk::ANNkDTree< ListSampleType >::ANNPointSetType
ANNpointSet ANNPointSetType
Definition itkANNkDTree.h:60
itk::ANNkDTree< ListSampleType >::Superclass
BinaryANNTreeBase< ListSampleType > Superclass
Definition itkANNkDTree.h:43
itk::ANNkDTree< ListSampleType >::m_BucketSize
BucketSizeType m_BucketSize
Definition itkANNkDTree.h:110
itk::ANNkDTree::GetANNTree
ANNPointSetType * GetANNTree() const override
Definition itkANNkDTree.h:90
itk::ANNkDTree< ListSampleType >::ANNkDTreeType
ANNkd_tree ANNkDTreeType
Definition itkANNkDTree.h:61
itk::ANNkDTree< ListSampleType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkANNkDTree.h:45
itk::ANNkDTree::~ANNkDTree
~ANNkDTree() override
itk::ANNkDTree< ListSampleType >::Self
ANNkDTree Self
Definition itkANNkDTree.h:42
itk::ANNkDTree::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::ANNkDTree::SetSplittingRule
void SetSplittingRule(const std::string &rule)
itk::ANNkDTree< ListSampleType >::SplittingRuleType
ANNsplitRule SplittingRuleType
Definition itkANNkDTree.h:62
itk::ANNkDTree< ListSampleType >::m_ANNTree
ANNkDTreeType * m_ANNTree
Definition itkANNkDTree.h:108
itk::ANNkDTree::ANNkDTree
ANNkDTree()
itk::ANNkDTree< ListSampleType >::BucketSizeType
unsigned int BucketSizeType
Definition itkANNkDTree.h:63
itk::ANNkDTree::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ANNkDTree)
itk::ANNkDTree::GenerateTree
void GenerateTree() override
itk::BinaryANNTreeBase< ListSampleType >::SampleType
ListSampleType SampleType
itk::BinaryANNTreeBase::BinaryANNTreeBase
BinaryANNTreeBase()=default
itk::BinaryANNTreeBase< ListSampleType >::MeasurementVectorSizeType
typename SampleType::MeasurementVectorSizeType MeasurementVectorSizeType
itk::BinaryANNTreeBase< ListSampleType >::TotalAbsoluteFrequencyType
typename SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
itk::BinaryANNTreeBase< ListSampleType >::MeasurementVectorType
typename SampleType::MeasurementVectorType MeasurementVectorType
itkBinaryANNTreeBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |