ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkScalarChanAndVeseDenseLevelSetImageFilter.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 __itkScalarChanAndVeseDenseLevelSetImageFilter_h
19 #define __itkScalarChanAndVeseDenseLevelSetImageFilter_h
20 
24 
25 namespace itk
26 {
62 template< class TInputImage, class TFeatureImage, class TOutputImage,
63  class TFunction = ScalarChanAndVeseLevelSetFunction< TInputImage, TFeatureImage >,
64  class TSharedData = typename TFunction::SharedDataType >
66  public MultiphaseDenseFiniteDifferenceImageFilter< TInputImage, TFeatureImage, TOutputImage,
67  TFunction >
68 {
69 public:
70 
72  typedef MultiphaseDenseFiniteDifferenceImageFilter< TInputImage,
73  TFeatureImage, TOutputImage,
74  TFunction > Superclass;
77 
79  itkNewMacro(Self);
80 
84 
85  itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
86 
88  typedef typename Superclass::InputImageType InputImageType;
89  typedef typename Superclass::InputImagePointer InputImagePointer;
90  typedef typename Superclass::InputPointType InputPointType;
91  typedef typename Superclass::ValueType ValueType;
92  typedef typename InputImageType::SpacingType InputSpacingType;
93 
94  typedef TFeatureImage FeatureImageType;
95  typedef typename FeatureImageType::Pointer FeatureImagePointer;
96  typedef typename FeatureImageType::PixelType FeaturePixelType;
97  typedef typename FeatureImageType::IndexType FeatureIndexType;
99  typedef typename FeatureImageType::RegionType FeatureRegionType;
100 
102  typedef TOutputImage OutputImageType;
103  typedef typename OutputImageType::IndexType IndexType;
104  typedef typename OutputImageType::PixelType OutputPixelType;
105 
106  typedef typename Superclass::TimeStepType TimeStepType;
107  typedef typename Superclass::FiniteDifferenceFunctionType
109 
110  typedef TFunction FunctionType;
111  typedef typename FunctionType::Pointer FunctionPointer;
112 
113  typedef TSharedData SharedDataType;
114  typedef typename SharedDataType::Pointer SharedDataPointer;
115 
118 
119 #ifdef ITK_USE_CONCEPT_CHECKING
120 
121  itkConceptMacro( OutputHasNumericTraitsCheck,
123 
125 #endif
126 
129  virtual void SetFeatureImage(const FeatureImagePointer f)
130  {
131  this->SetInput(f);
132  }
133 
134 protected:
136  {
137  this->m_SharedData = SharedDataType::New();
138  }
139 
141 
143 
144  virtual void Initialize();
145 
146  virtual void InitializeIteration();
147 
148 private:
149  ScalarChanAndVeseDenseLevelSetImageFilter(const Self &); //purposely not
150  // implemented
151  void operator=(const Self &); //purposely not
152 
153  // implemented
154 };
155 } //end namespace itk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkScalarChanAndVeseDenseLevelSetImageFilter.hxx"
159 #endif
160 
161 #endif
162