ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetEvolutionStoppingCriterion.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 
19 #ifndef itkLevelSetEvolutionStoppingCriterion_h
20 #define itkLevelSetEvolutionStoppingCriterion_h
21 
23 #include "itkNumericTraits.h"
24 #include "itkIntTypes.h"
25 
26 namespace itk
27 {
31  template< typename TLevelSetContainer >
32  class ITK_TEMPLATE_EXPORT LevelSetEvolutionStoppingCriterion : public StoppingCriterionBase
33  {
34  public:
35  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetEvolutionStoppingCriterion);
36 
41 
44 
45  using LevelSetContainerType = TLevelSetContainer;
46  using LevelSetContainerPointer = typename LevelSetContainerType::Pointer;
47 
48  using LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType;
49 
50  using LevelSetType = typename LevelSetContainerType::LevelSetType;
51  using LevelSetPointer = typename LevelSetContainerType::LevelSetPointer;
52 
53  using InputIndexType = typename LevelSetContainerType::InputIndexType;
54  using OutputType = typename LevelSetContainerType::OutputType;
55  using OutputRealType = typename LevelSetContainerType::OutputRealType;
56  using GradientType = typename LevelSetContainerType::GradientType;
57  using HessianType = typename LevelSetContainerType::HessianType;
58 
59  using HeavisideType = typename LevelSetContainerType::HeavisideType;
60  using HeavisidePointer = typename LevelSetContainerType::HeavisideType;
61 
63 
64  itkSetObjectMacro( LevelSetContainer, LevelSetContainerType );
65  itkGetModifiableObjectMacro(LevelSetContainer, LevelSetContainerType );
66 
67  itkSetMacro( NumberOfIterations, IterationIdType );
68  itkGetMacro( NumberOfIterations, IterationIdType );
69 
70  itkSetMacro( CurrentIteration, IterationIdType );
71  itkGetMacro( CurrentIteration, IterationIdType );
72 
73  itkSetMacro( RMSChangeAccumulator, OutputRealType );
74  itkGetMacro( RMSChangeAccumulator, OutputRealType );
75 
76  protected:
79 
81  ~LevelSetEvolutionStoppingCriterion() override = default;
82 
87  };
88  }
89 #ifndef ITK_MANUAL_INSTANTIATION
90 #include "itkLevelSetEvolutionStoppingCriterion.hxx"
91 #endif
92 #endif
Light weight base class for most itk classes.
typename LevelSetContainerType::LevelSetType LevelSetType
typename LevelSetContainerType::OutputType OutputType
typename LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
typename LevelSetContainerType::InputIndexType InputIndexType
typename LevelSetContainerType::OutputRealType OutputRealType
SizeValueType IdentifierType
Definition: itkIntTypes.h:87
typename LevelSetContainerType::HeavisideType HeavisidePointer
typename LevelSetContainerType::HessianType HessianType
Container of Level-Sets.
typename LevelSetContainerType::GradientType GradientType
typename LevelSetContainerType::Pointer LevelSetContainerPointer
typename LevelSetContainerType::HeavisideType HeavisideType
typename LevelSetContainerType::LevelSetPointer LevelSetPointer
An abstract base class to represent a stopping criterion for an iterative algorithm.