ITK  6.0.0
Insight Toolkit
itkLevelSetDomainPartitionImageWithKdTree.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkLevelSetDomainPartitionImageWithKdTree_h
19#define itkLevelSetDomainPartitionImageWithKdTree_h
20
22
23#include "itkListSample.h"
24#include "itkKdTreeGenerator.h"
25
26namespace itk
27{
34template <typename TImage>
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(LevelSetDomainPartitionImageWithKdTree);
39
44
45 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
46
48 itkNewMacro(Self);
49
50 itkOverrideGetNameOfClassMacro(LevelSetDomainPartitionImageWithKdTree);
51
52 using ImageType = TImage;
53 using typename Superclass::ListIndexType;
54 using typename Superclass::ListRegionType;
55 using typename Superclass::ListPointType;
56 using typename Superclass::ListIteratorType;
57 using typename Superclass::IdentifierListType;
58
63 using TreeType = typename TreeGeneratorType::KdTreeType;
65
67 itkSetObjectMacro(KdTree, TreeType);
68
70 using NeighborsIdType = unsigned int;
71
73 itkSetMacro(NumberOfNeighbors, NeighborsIdType);
74 itkGetMacro(NumberOfNeighbors, NeighborsIdType);
79 void
81
82protected:
85
88 void
90
91private:
92 KdTreePointer m_KdTree{};
93 NeighborsIdType m_NumberOfNeighbors{ 10 };
94};
95
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkLevelSetDomainPartitionImageWithKdTree.hxx"
100#endif
101
102#endif
Helper class used to share data in the ScalarChanAndVeseLevelSetFunction.
typename Statistics::ListSample< CentroidVectorType > SampleType
typename Statistics::KdTreeGenerator< SampleType > TreeGeneratorType
~LevelSetDomainPartitionImageWithKdTree() override=default
Helper class used to partition domain and efficiently compute overlap.
Light weight base class for most itk classes.
This class generates a KdTree object without centroid information.
This class is the native implementation of the a Sample with an STL container.
Definition: itkListSample.h:52
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....