ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWindowConvergenceMonitoringFunction.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 itkWindowConvergenceMonitoringFunction_h
19#define itkWindowConvergenceMonitoringFunction_h
20
22
23namespace itk::Function
24{
35
36template <typename TScalar = double>
37class ITK_TEMPLATE_EXPORT WindowConvergenceMonitoringFunction : public ConvergenceMonitoringFunction<TScalar, TScalar>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(WindowConvergenceMonitoringFunction);
41
46
48 itkNewMacro(Self);
49
51 itkOverrideGetNameOfClassMacro(WindowConvergenceMonitoringFunction);
52
53 using ScalarType = TScalar;
55
56 using typename Superclass::EnergyValueType;
59 using EnergyValueIterator = typename EnergyValueContainerType::iterator;
60 using EnergyValueConstIterator = typename EnergyValueContainerType::const_iterator;
61
63 void
65
66 /* Clear energy values and set total energy to 0 */
67 void
69
72 itkSetMacro(WindowSize, EnergyValueContainerSizeType);
73 itkGetConstMacro(WindowSize, EnergyValueContainerSizeType);
77 GetConvergenceValue() const override;
78
79protected:
81
83
84 void
85 PrintSelf(std::ostream & os, Indent indent) const override;
86
87private:
89
91};
92} // namespace itk::Function
93
94#ifndef ITK_MANUAL_INSTANTIATION
95# include "itkWindowConvergenceMonitoringFunction.hxx"
96#endif
97
98#endif
typename EnergyValueContainerType::size_type EnergyValueContainerSizeType
ConvergenceMonitoringFunction< TInternalComputationValueType, TInternalComputationValueType > Superclass
void AddEnergyValue(const EnergyValueType) override
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.