ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
59 using CentroidVectorType = typename ListPointType::VectorType;
62 using TreePointer = typename TreeGeneratorType::Pointer;
63 using TreeType = typename TreeGeneratorType::KdTreeType;
64 using KdTreePointer = typename TreeType::Pointer;
65
67 itkSetObjectMacro(KdTree, TreeType);
68
70 using NeighborsIdType = unsigned int;
71
73 itkSetMacro(NumberOfNeighbors, NeighborsIdType);
74 itkGetMacro(NumberOfNeighbors, NeighborsIdType);
76
79 void
81
82protected:
85
88 void
90
91private:
94};
95
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkLevelSetDomainPartitionImageWithKdTree.hxx"
100#endif
101
102#endif
typename Statistics::ListSample< CentroidVectorType > SampleType
typename Statistics::KdTreeGenerator< SampleType > TreeGeneratorType
~LevelSetDomainPartitionImageWithKdTree() override=default
typename ListImageType::IndexType ListIndexType
typename ListImageType::PointType ListPointType
ImageRegionIteratorWithIndex< ListImageType > ListIteratorType
typename ListImageType::RegionType ListRegionType
Implements transparent reference counting.
This class generates a KdTree object without centroid information.
This class is the native implementation of the a Sample with an STL container.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....