ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetEvolutionNumberOfIterationsStoppingCriterion.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 itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h
20 #define itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h
21 
22 #include "itkObjectFactory.h"
24 
25 namespace itk
26 {
30 template< typename TLevelSetContainer >
31 class ITK_TEMPLATE_EXPORT LevelSetEvolutionNumberOfIterationsStoppingCriterion :
32  public LevelSetEvolutionStoppingCriterion< TLevelSetContainer >
33 {
34 public:
35  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetEvolutionNumberOfIterationsStoppingCriterion);
36 
37  using Self = LevelSetEvolutionNumberOfIterationsStoppingCriterion;
38  using Superclass = LevelSetEvolutionStoppingCriterion< TLevelSetContainer >;
39  using Pointer = SmartPointer< Self >;
40  using ConstPointer = SmartPointer< const Self >;
41 
43  itkNewMacro( Self );
44 
46  itkTypeMacro( LevelSetEvolutionNumberOfIterationsStoppingCriterion,
47  LevelSetEvolutionStoppingCriterion );
48 
49  using LevelSetContainerType = TLevelSetContainer;
50  using LevelSetContainerPointer = typename LevelSetContainerType::Pointer;
51 
52  using LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType;
53  using LevelSetType = typename LevelSetContainerType::LevelSetType;
54  using LevelSetPointer = typename LevelSetContainerType::LevelSetPointer;
55 
56  using InputIndexType = typename LevelSetContainerType::InputIndexType;
57  using OutputType = typename LevelSetContainerType::OutputType;
58  using OutputRealType = typename LevelSetContainerType::OutputRealType;
59  using GradientType = typename LevelSetContainerType::GradientType;
60  using HessianType = typename LevelSetContainerType::HessianType;
61 
62  using HeavisideType = typename LevelSetContainerType::HeavisideType;
63  using HeavisidePointer = typename LevelSetContainerType::HeavisideType;
64 
65  bool IsSatisfied() const override;
66 
67  std::string GetDescription() const override;
68 
69 protected:
71  LevelSetEvolutionNumberOfIterationsStoppingCriterion() = default;
72