ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMinMaxCurvatureFlowFunction.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 * https://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 itkMinMaxCurvatureFlowFunction_h
19#define itkMinMaxCurvatureFlowFunction_h
20
23
24namespace itk
25{
42template <typename TImage>
43class ITK_TEMPLATE_EXPORT MinMaxCurvatureFlowFunction : public CurvatureFlowFunction<TImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(MinMaxCurvatureFlowFunction);
47
53
55 itkNewMacro(Self);
56
58 itkOverrideGetNameOfClassMacro(MinMaxCurvatureFlowFunction);
59
61 using typename Superclass::ImageType;
62 using typename Superclass::PixelType;
63 using typename Superclass::RadiusType;
64 using typename Superclass::NeighborhoodType;
65 using typename Superclass::FloatOffsetType;
66
68 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
69
71 using RadiusValueType = typename RadiusType::SizeValueType;
72
74 void
76
77 const RadiusValueType &
79 {
80 return m_StencilRadius;
81 }
82
84 const RadiusValueType &
86 {
87 return GetRadiusValueType();
88 }
89
91 PixelType
93 void * globalData,
94 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
95
96protected:
98 ~MinMaxCurvatureFlowFunction() override = default;
99
102
105 void
107
108private:
110
111 // To control overloaded versions of ComputeThreshold
113 {};
114 template <int VDimension>
115 struct Dispatch : public DispatchBase
116 {};
117
120 ComputeThreshold(const Dispatch<2> &, const NeighborhoodType & it) const;
121
123 ComputeThreshold(const Dispatch<3> &, const NeighborhoodType & it) const;
124
126 ComputeThreshold(const DispatchBase &, const NeighborhoodType & it) const;
127};
128} // end namespace itk
129
130#ifndef ITK_MANUAL_INSTANTIATION
131# include "itkMinMaxCurvatureFlowFunction.hxx"
132#endif
133
134#endif
ConstNeighborhoodIterator< TImageType, DefaultBoundaryConditionType > NeighborhoodType
Vector< float, Self::ImageDimension > FloatOffsetType
typename ImageType::PixelType PixelType
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
void SetStencilRadius(const RadiusValueType value)
Neighborhood< PixelType, Self::ImageDimension > StencilOperatorType
typename RadiusType::SizeValueType RadiusValueType
const RadiusValueType & GetRadiusValueType() const
PixelType ComputeThreshold(const Dispatch< 2 > &, const NeighborhoodType &it) const
PixelType ComputeThreshold(const DispatchBase &, const NeighborhoodType &it) const
PixelType ComputeUpdate(const NeighborhoodType &it, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
const RadiusValueType & GetStencilRadius() const
~MinMaxCurvatureFlowFunction() override=default
CurvatureFlowFunction< TImage > Superclass
PixelType ComputeThreshold(const Dispatch< 3 > &, const NeighborhoodType &it) const
A light-weight container object for storing an N-dimensional neighborhood of values.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....