ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkScalarChanAndVeseLevelSetFunction.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 itkScalarChanAndVeseLevelSetFunction_h
19 #define itkScalarChanAndVeseLevelSetFunction_h
20 
24 
25 namespace itk
26 {
73 template< typename TInputImage,
74  typename TFeatureImage,
75  typename TSharedData = ConstrainedRegionBasedLevelSetFunctionSharedData< TInputImage, TFeatureImage,
76  ScalarChanAndVeseLevelSetFunctionData<
77  TInputImage, TFeatureImage > > >
78 class ITK_TEMPLATE_EXPORT ScalarChanAndVeseLevelSetFunction:
79  public ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >
80 {
81 public:
82  ITK_DISALLOW_COPY_AND_ASSIGN(ScalarChanAndVeseLevelSetFunction);
83 
88 
90  itkNewMacro(Self);
91 
93  itkTypeMacro(ScalarChanAndVeseLevelSetFunction, ScalarLevelSetFunction);
94 
95  static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
96 
97  using InputImageType = TInputImage;
107 
108  using FeatureImageType = TFeatureImage;
109  using FeatureImageConstPointer = typename FeatureImageType::ConstPointer;
113 
122 
125 
130 
135 
136 protected:
139 
140  void ComputeParameters() override;
141 
142  void UpdateSharedDataParameters() override;
143 
144  ScalarValueType ComputeInternalTerm(const FeaturePixelType & iValue,
145  const FeatureIndexType & iIdx) override;
146 
147  ScalarValueType ComputeExternalTerm(const FeaturePixelType & iValue,
148  const FeatureIndexType & iIdx) override;
149 
150  void UpdateSharedDataInsideParameters(const unsigned int & iId,
151  const FeaturePixelType & iVal, const ScalarValueType & iChange) override;
152 
153  void UpdateSharedDataOutsideParameters(const unsigned int & iId,
154  const FeaturePixelType & iVal, const ScalarValueType & iChange) override;
155 };
156 }
157 
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkScalarChanAndVeseLevelSetFunction.hxx"
160 #endif
161 
162 #endif
typename Superclass::ListPixelIterator ListPixelIterator
Light weight base class for most itk classes.
typename Superclass::FeatureOffsetType FeatureOffsetType
LevelSet function that computes a speed image based on regional integrals of probabilities.
typename Superclass::FeatureIndexType FeatureIndexType
typename Superclass::NeighborhoodType NeighborhoodType
typename Superclass::GlobalDataStruct GlobalDataStruct
typename Superclass::InputImagePointer InputImagePointer
typename Superclass::ListPixelConstIterator ListPixelConstIterator
typename Superclass::InputSizeValueType InputSizeValueType
typename Superclass::FeatureOffsetType FeatureOffsetType
typename Superclass::ConstImageIteratorType ConstImageIteratorType
typename Superclass::NeighborhoodType NeighborhoodType
typename Superclass::InputSizeValueType InputSizeValueType
typename Superclass::InputImagePointer InputImagePointer
typename Superclass::ConstFeatureIteratorType ConstFeatureIteratorType
typename Superclass::InputImageConstPointer InputImageConstPointer
typename Superclass::GlobalDataStruct GlobalDataStruct
A multi-dimensional iterator templated over image type that walks an image region and is specialized ...
typename Superclass::FeaturePixelType FeaturePixelType
typename Superclass::InputIndexValueType InputIndexValueType
A multi-dimensional iterator templated over image type that walks a region of pixels.
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
LevelSet function that computes a speed image based on regional integrals.
typename ListPixelType::const_iterator ListPixelConstIterator
typename Superclass::ImageIteratorType ImageIteratorType
typename Superclass::InputImageConstPointer InputImageConstPointer
typename Superclass::InputIndexValueType InputIndexValueType
typename Superclass::FeatureImageIteratorType FeatureImageIteratorType
typename Superclass::InputRegionType InputRegionType
typename Superclass::SharedDataPointer SharedDataPointer
typename Superclass::SharedDataPointer SharedDataPointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
typename Superclass::FeatureIndexType FeatureIndexType
Templated n-dimensional image class.
Definition: itkImage.h:75
typename Superclass::FeaturePixelType FeaturePixelType