ITK  4.2.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< class TInputImage, class TFeatureImage, class TSingleData >
62  public RegionBasedLevelSetFunctionSharedData< TInputImage, TFeatureImage, TSingleData >
63 {
64 public:
65 
71 
72  itkStaticConstMacro(ImageDimension, unsigned int, TFeatureImage::ImageDimension);
73 
75  itkNewMacro(Self);
76 
78 
79  typedef TInputImage InputImageType;
90 
91  typedef TFeatureImage FeatureImageType;
101 
114 
119  typedef typename Superclass::TreeType TreeType;
121 
122  typedef TSingleData LevelSetDataType;
126 
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 private:
143  // not
144  // implemented
145  void operator=(const Self &); //purposely
146  // not
147  // implemented
148 };
149 } //end namespace itk
150 
151 #endif
152