ITK  5.2.0
Insight Toolkit
itkScalarChanAndVeseLevelSetFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 {
75 template <typename TInputImage,
76  typename TFeatureImage,
77  typename TSharedData = ConstrainedRegionBasedLevelSetFunctionSharedData<
78  TInputImage,
79  TFeatureImage,
80  ScalarChanAndVeseLevelSetFunctionData<TInputImage, TFeatureImage>>>
81 class ITK_TEMPLATE_EXPORT ScalarChanAndVeseLevelSetFunction
82  : public ScalarRegionBasedLevelSetFunction<TInputImage, TFeatureImage, TSharedData>
83 {
84 public:
85  ITK_DISALLOW_COPY_AND_MOVE(ScalarChanAndVeseLevelSetFunction);
86 
91 
93  itkNewMacro(Self);
94 
96  itkTypeMacro(ScalarChanAndVeseLevelSetFunction, ScalarLevelSetFunction);
97 
98  static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
99 
100  using InputImageType = TInputImage;
110 
111  using FeatureImageType = TFeatureImage;
112  using FeatureImageConstPointer = typename FeatureImageType::ConstPointer;
116 
125 
128 
133 
138 
139 protected:
141  : Superclass()
142  {}
143  ~ScalarChanAndVeseLevelSetFunction() override = default;
144 
145  void
146  ComputeParameters() override;
147 
148  void
149  UpdateSharedDataParameters() override;
150 
151  ScalarValueType
152  ComputeInternalTerm(const FeaturePixelType & iValue, const FeatureIndexType & iIdx) override;
153 
154  ScalarValueType
155  ComputeExternalTerm(const FeaturePixelType & iValue, const FeatureIndexType & iIdx) override;
156 
157  void
158  UpdateSharedDataInsideParameters(const unsigned int & iId,
159  const FeaturePixelType & iVal,
160  const ScalarValueType & iChange) override;
161 
162  void
163  UpdateSharedDataOutsideParameters(const unsigned int & iId,
164  const FeaturePixelType & iVal,
165  const ScalarValueType & iChange) override;
166 };
167 } // namespace itk
168 
169 #ifndef ITK_MANUAL_INSTANTIATION
170 # include "itkScalarChanAndVeseLevelSetFunction.hxx"
171 #endif
172 
173 #endif
itk::ScalarRegionBasedLevelSetFunction::InputSizeValueType
typename Superclass::InputSizeValueType InputSizeValueType
Definition: itkScalarRegionBasedLevelSetFunction.h:91
itk::ScalarRegionBasedLevelSetFunction::InputRegionType
typename Superclass::InputRegionType InputRegionType
Definition: itkScalarRegionBasedLevelSetFunction.h:92
itk::ScalarChanAndVeseLevelSetFunction::PixelType
typename Superclass::PixelType PixelType
Definition: itkScalarChanAndVeseLevelSetFunction.h:123
itk::ScalarChanAndVeseLevelSetFunction::InputIndexValueType
typename Superclass::InputIndexValueType InputIndexValueType
Definition: itkScalarChanAndVeseLevelSetFunction.h:105
itk::ScalarChanAndVeseLevelSetFunction::InputRegionType
typename Superclass::InputRegionType InputRegionType
Definition: itkScalarChanAndVeseLevelSetFunction.h:108
itk::ScalarRegionBasedLevelSetFunction::InputSizeType
typename Superclass::InputSizeType InputSizeType
Definition: itkScalarRegionBasedLevelSetFunction.h:90
itk::ScalarChanAndVeseLevelSetFunction::FeatureImageIteratorType
typename Superclass::FeatureImageIteratorType FeatureImageIteratorType
Definition: itkScalarChanAndVeseLevelSetFunction.h:131
itk::ScalarRegionBasedLevelSetFunction::InputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Definition: itkScalarRegionBasedLevelSetFunction.h:86
itk::ImageRegionConstIteratorWithIndex
A multi-dimensional iterator templated over image type that walks an image region and is specialized ...
Definition: itkImageRegionConstIteratorWithIndex.h:130
itk::ScalarChanAndVeseLevelSetFunction::ImageIteratorType
typename Superclass::ImageIteratorType ImageIteratorType
Definition: itkScalarChanAndVeseLevelSetFunction.h:129
itk::ScalarRegionBasedLevelSetFunction::InputIndexValueType
typename Superclass::InputIndexValueType InputIndexValueType
Definition: itkScalarRegionBasedLevelSetFunction.h:89
itk::ScalarChanAndVeseLevelSetFunction::InputSizeType
typename Superclass::InputSizeType InputSizeType
Definition: itkScalarChanAndVeseLevelSetFunction.h:106
itkConstrainedRegionBasedLevelSetFunctionSharedData.h
itk::ScalarChanAndVeseLevelSetFunction::VectorType
typename Superclass::VectorType VectorType
Definition: itkScalarChanAndVeseLevelSetFunction.h:124
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itk::ScalarChanAndVeseLevelSetFunction::ScalarValueType
typename Superclass::ScalarValueType ScalarValueType
Definition: itkScalarChanAndVeseLevelSetFunction.h:117
itk::ScalarRegionBasedLevelSetFunction::ListPixelIterator
typename ListPixelType::iterator ListPixelIterator
Definition: itkScalarRegionBasedLevelSetFunction.h:120
itk::ScalarChanAndVeseLevelSetFunction::SharedDataType
typename Superclass::SharedDataType SharedDataType
Definition: itkScalarChanAndVeseLevelSetFunction.h:126
itk::ScalarRegionBasedLevelSetFunction::SharedDataType
typename Superclass::SharedDataType SharedDataType
Definition: itkScalarRegionBasedLevelSetFunction.h:110
itk::SmartPointer< Self >
itk::ScalarRegionBasedLevelSetFunction::GlobalDataStruct
typename Superclass::GlobalDataStruct GlobalDataStruct
Definition: itkScalarRegionBasedLevelSetFunction.h:106
itk::ScalarChanAndVeseLevelSetFunction::InputPixelType
typename Superclass::InputPixelType InputPixelType
Definition: itkScalarChanAndVeseLevelSetFunction.h:103
itk::ScalarRegionBasedLevelSetFunction::FloatOffsetType
typename Superclass::FloatOffsetType FloatOffsetType
Definition: itkScalarRegionBasedLevelSetFunction.h:103
itk::ScalarChanAndVeseLevelSetFunction::TimeStepType
typename Superclass::TimeStepType TimeStepType
Definition: itkScalarChanAndVeseLevelSetFunction.h:121
itk::ScalarChanAndVeseLevelSetFunction::ListPixelIterator
typename Superclass::ListPixelIterator ListPixelIterator
Definition: itkScalarChanAndVeseLevelSetFunction.h:136
itk::ScalarRegionBasedLevelSetFunction::SharedDataPointer
typename Superclass::SharedDataPointer SharedDataPointer
Definition: itkScalarRegionBasedLevelSetFunction.h:111
itk::ScalarChanAndVeseLevelSetFunction::FeatureImageType
TFeatureImage FeatureImageType
Definition: itkScalarChanAndVeseLevelSetFunction.h:111
itk::ScalarRegionBasedLevelSetFunction::NeighborhoodType
typename Superclass::NeighborhoodType NeighborhoodType
Definition: itkScalarRegionBasedLevelSetFunction.h:102
itk::ScalarRegionBasedLevelSetFunction::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkScalarRegionBasedLevelSetFunction.h:93
itk::ScalarChanAndVeseLevelSetFunction::FeatureImageConstPointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
Definition: itkScalarChanAndVeseLevelSetFunction.h:112
itk::ScalarRegionBasedLevelSetFunction::FeatureIndexType
typename Superclass::FeatureIndexType FeatureIndexType
Definition: itkScalarRegionBasedLevelSetFunction.h:98
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::ScalarRegionBasedLevelSetFunction::FeatureOffsetType
typename Superclass::FeatureOffsetType FeatureOffsetType
Definition: itkScalarRegionBasedLevelSetFunction.h:99
itk::ScalarRegionBasedLevelSetFunction::InputImageConstPointer
typename Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkScalarRegionBasedLevelSetFunction.h:85
itk::ScalarChanAndVeseLevelSetFunction::ListImageType
typename Superclass::ListImageType ListImageType
Definition: itkScalarChanAndVeseLevelSetFunction.h:137
itk::ScalarChanAndVeseLevelSetFunction::RadiusType
typename Superclass::RadiusType RadiusType
Definition: itkScalarChanAndVeseLevelSetFunction.h:120
itk::ScalarChanAndVeseLevelSetFunction::SharedDataPointer
typename Superclass::SharedDataPointer SharedDataPointer
Definition: itkScalarChanAndVeseLevelSetFunction.h:127
itk::ScalarRegionBasedLevelSetFunction
LevelSet function that computes a speed image based on regional integrals.
Definition: itkScalarRegionBasedLevelSetFunction.h:66
itk::ScalarChanAndVeseLevelSetFunction::ListPixelType
typename Superclass::ListPixelType ListPixelType
Definition: itkScalarChanAndVeseLevelSetFunction.h:134
itk::ScalarRegionBasedLevelSetFunction::InputIndexType
typename Superclass::InputIndexType InputIndexType
Definition: itkScalarRegionBasedLevelSetFunction.h:88
itk::ScalarRegionBasedLevelSetFunction::InputPixelType
typename Superclass::InputPixelType InputPixelType
Definition: itkScalarRegionBasedLevelSetFunction.h:87
itk::ScalarChanAndVeseLevelSetFunction::InputSizeValueType
typename Superclass::InputSizeValueType InputSizeValueType
Definition: itkScalarChanAndVeseLevelSetFunction.h:107
itk::ScalarChanAndVeseLevelSetFunction::FeaturePixelType
typename Superclass::FeaturePixelType FeaturePixelType
Definition: itkScalarChanAndVeseLevelSetFunction.h:113
itk::ScalarChanAndVeseLevelSetFunction::ScalarChanAndVeseLevelSetFunction
ScalarChanAndVeseLevelSetFunction()
Definition: itkScalarChanAndVeseLevelSetFunction.h:140
itk::ScalarRegionBasedLevelSetFunction::ListPixelType
std::list< unsigned int > ListPixelType
Definition: itkScalarRegionBasedLevelSetFunction.h:118
itk::ImageRegionIteratorWithIndex
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
Definition: itkImageRegionIteratorWithIndex.h:73
itk::ScalarChanAndVeseLevelSetFunction::ListPixelConstIterator
typename Superclass::ListPixelConstIterator ListPixelConstIterator
Definition: itkScalarChanAndVeseLevelSetFunction.h:135
itk::ScalarChanAndVeseLevelSetFunction::FeatureIndexType
typename Superclass::FeatureIndexType FeatureIndexType
Definition: itkScalarChanAndVeseLevelSetFunction.h:114
itk::ScalarChanAndVeseLevelSetFunction
LevelSet function that computes a speed image based on regional integrals of probabilities.
Definition: itkScalarChanAndVeseLevelSetFunction.h:81
itk::ScalarChanAndVeseLevelSetFunction::ConstImageIteratorType
typename Superclass::ConstImageIteratorType ConstImageIteratorType
Definition: itkScalarChanAndVeseLevelSetFunction.h:130
itk::ScalarRegionBasedLevelSetFunction::ScalarValueType
typename Superclass::ScalarValueType ScalarValueType
Definition: itkScalarRegionBasedLevelSetFunction.h:101
itkScalarChanAndVeseLevelSetFunctionData.h
itk::ScalarChanAndVeseLevelSetFunction::InputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Definition: itkScalarChanAndVeseLevelSetFunction.h:102
itk::ScalarChanAndVeseLevelSetFunction::NeighborhoodType
typename Superclass::NeighborhoodType NeighborhoodType
Definition: itkScalarChanAndVeseLevelSetFunction.h:118
itk::ScalarChanAndVeseLevelSetFunction::InputImageType
TInputImage InputImageType
Definition: itkScalarChanAndVeseLevelSetFunction.h:100
itk::ScalarRegionBasedLevelSetFunction::ListPixelConstIterator
typename ListPixelType::const_iterator ListPixelConstIterator
Definition: itkScalarRegionBasedLevelSetFunction.h:119
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ScalarChanAndVeseLevelSetFunction::ConstFeatureIteratorType
typename Superclass::ConstFeatureIteratorType ConstFeatureIteratorType
Definition: itkScalarChanAndVeseLevelSetFunction.h:132
itk::ScalarChanAndVeseLevelSetFunction::FeatureOffsetType
typename Superclass::FeatureOffsetType FeatureOffsetType
Definition: itkScalarChanAndVeseLevelSetFunction.h:115
itk::ImageRegionConstIterator
A multi-dimensional iterator templated over image type that walks a region of pixels.
Definition: itkImageRegionConstIterator.h:109
itk::ScalarChanAndVeseLevelSetFunction::InputIndexType
typename Superclass::InputIndexType InputIndexType
Definition: itkScalarChanAndVeseLevelSetFunction.h:104
itk::ScalarChanAndVeseLevelSetFunction::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkScalarChanAndVeseLevelSetFunction.h:109
itkScalarRegionBasedLevelSetFunction.h
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::ScalarChanAndVeseLevelSetFunction::InputImageConstPointer
typename Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkScalarChanAndVeseLevelSetFunction.h:101
itk::ScalarChanAndVeseLevelSetFunction::GlobalDataStruct
typename Superclass::GlobalDataStruct GlobalDataStruct
Definition: itkScalarChanAndVeseLevelSetFunction.h:122
itk::ScalarRegionBasedLevelSetFunction::FeaturePixelType
typename Superclass::FeaturePixelType FeaturePixelType
Definition: itkScalarRegionBasedLevelSetFunction.h:97
itk::ScalarChanAndVeseLevelSetFunction::FloatOffsetType
typename Superclass::FloatOffsetType FloatOffsetType
Definition: itkScalarChanAndVeseLevelSetFunction.h:119
itk::ScalarRegionBasedLevelSetFunction::PixelType
typename Superclass::PixelType PixelType
Definition: itkScalarRegionBasedLevelSetFunction.h:107
itk::ScalarRegionBasedLevelSetFunction::TimeStepType
typename Superclass::TimeStepType TimeStepType
Definition: itkScalarRegionBasedLevelSetFunction.h:105
itk::ScalarRegionBasedLevelSetFunction::RadiusType
typename Superclass::RadiusType RadiusType
Definition: itkScalarRegionBasedLevelSetFunction.h:104