ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkUnconstrainedRegionBasedLevelSetFunctionSharedData.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkUnconstrainedRegionBasedLevelSetFunctionSharedData_h
19 #define itkUnconstrainedRegionBasedLevelSetFunctionSharedData_h
20 
22 
23 namespace itk
24 {
60 template< typename TInputImage, typename TFeatureImage, typename TSingleData >
62  public RegionBasedLevelSetFunctionSharedData< TInputImage, TFeatureImage, TSingleData >
63 {
64 public:
65 
67  using Superclass =
71 
72  static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
73 
75  itkNewMacro(Self);
76 
78 
79  using InputImageType = TInputImage;
90 
91  using FeatureImageType = TFeatureImage;
101 
114 
119  using TreeType = typename Superclass::TreeType;
121 
122  using LevelSetDataType = TSingleData;
126 
127  void PopulateListImage() override
128  {
129  ListPixelType L;
130 
131  for ( unsigned int i = 0; i < this->m_FunctionCount; i++ )
132  {
133  L.push_back(i);
134  }
135  this->m_NearestNeighborListImage->FillBuffer(L);
136  }
137 
138 protected:
141 
142 private:
144  // not
145  // implemented
146  void operator=(const Self &); //purposely
147  // not
148  // implemented
149 };
150 } //end namespace itk
151 
152 #endif
ImageRegionIteratorWithIndex< ListImageType > ListIteratorType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
Light weight base class for most itk classes.
Helper class used to share data in the ScalarChanAndVeseLevelSetFunction.
Image< ListPixelType, Self::ImageDimension > ListImageType
itk::Statistics::ListSample< CentroidVectorType > SampleType
Helper class used to share data in the ScalarChanAndVeseLevelSetFunction.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
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:51
typename LevelSetDataPointerVector::iterator LevelSetDataPointerVectorIterator
Templated n-dimensional image class.
Definition: itkImage.h:75
itk::Statistics::KdTreeGenerator< SampleType > TreeGeneratorType