ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(ScalarChanAndVeseDenseLevelSetImageFilter);
71 
74  TFeatureImage, TOutputImage,
75  TFunction >;
78 
80  itkNewMacro(Self);
81 
85 
86  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
87 
89  using InputImageType = typename Superclass::InputImageType;
90  using InputImagePointer = typename Superclass::InputImagePointer;
91  using InputPointType = typename Superclass::InputPointType;
92  using ValueType = typename Superclass::ValueType;
93  using InputSpacingType = typename InputImageType::SpacingType;
94 
95  using FeatureImageType = TFeatureImage;
96  using FeatureImagePointer = typename FeatureImageType::Pointer;
97  using FeaturePixelType = typename FeatureImageType::PixelType;
101 
103  using OutputImageType = TOutputImage;
105  using OutputPixelType = typename OutputImageType::PixelType;
106 
107  using TimeStepType = typename Superclass::TimeStepType;
108  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
109 
110  using FunctionType = TFunction;
111  using FunctionPointer = typename FunctionType::Pointer;
112 
113  using SharedDataType = TSharedData;
114  using SharedDataPointer = typename SharedDataType::Pointer;
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  void Initialize() override;
144 
145  void InitializeIteration() override;
146 };
147 } //end namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkScalarChanAndVeseDenseLevelSetImageFilter.hxx"
151 #endif
152 
153 #endif
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
TOutputImage OutputImageType
signed long IndexValueType
Definition: itkIntTypes.h:90
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Extract a region of interest from the input image.
Dense implementation of the Chan and Vese multiphase level set image filter.
#define itkConceptMacro(name, concept)