ITK  4.13.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< typename TInputImage, typename TFeatureImage, typename TOutputImage,
63  typename 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;
99  typedef typename FeatureImageType::RegionType FeatureRegionType;
100 
102  typedef TOutputImage OutputImageType;
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  // Begin concept checking
121  itkConceptMacro( OutputHasNumericTraitsCheck,
123  // End concept checking
124 #endif
125 
128  virtual void SetFeatureImage(const FeatureImagePointer f)
129  {
130  this->SetInput(f);
131  }
132 
133 protected:
135  {
136  this->m_SharedData = SharedDataType::New();
137  }
138 
140 
142 
143  virtual void Initialize() ITK_OVERRIDE;
144 
145  virtual void InitializeIteration() ITK_OVERRIDE;
146 
147 private:
148  ITK_DISALLOW_COPY_AND_ASSIGN(ScalarChanAndVeseDenseLevelSetImageFilter);
149 };
150 } //end namespace itk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkScalarChanAndVeseDenseLevelSetImageFilter.hxx"
154 #endif
155 
156 #endif
signed long IndexValueType
Definition: itkIntTypes.h:150
Base class for all process objects that output image data.
MultiphaseDenseFiniteDifferenceImageFilter< TInputImage, TFeatureImage, TOutputImage, TFunction > Superclass
Extract a region of interest from the input image.
Dense implementation of the Chan and Vese multiphase level set image filter.
RegionOfInterestImageFilter< FeatureImageType, FeatureImageType > ROIFilterType
#define itkConceptMacro(name, concept)