ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkIterateNeighborhoodOptimizer.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 itkIterateNeighborhoodOptimizer_h
19#define itkIterateNeighborhoodOptimizer_h
20
21#include "MinimalPathExtractionExport.h"
22
23#include "itkArray.h"
25
26namespace itk
27{
28
41class MinimalPathExtraction_EXPORT IterateNeighborhoodOptimizer : public SingleValuedNonLinearOptimizer
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(IterateNeighborhoodOptimizer);
45
51
53 itkNewMacro(Self);
54
56 itkOverrideGetNameOfClassMacro(IterateNeighborhoodOptimizer);
57
60 itkGetConstReferenceMacro(Maximize, bool);
61 itkSetMacro(Maximize, bool);
62 itkBooleanMacro(Maximize);
63 bool
65 {
66 return !m_Maximize;
67 }
68 void
70 {
71 this->SetMaximize(!v);
72 }
73 void
75 {
76 this->MaximizeOff();
77 }
78 void
80 {
81 this->MaximizeOn();
82 }
83
85 virtual void
87
89 void
91
94 void
96
99 void
101
106 itkSetMacro(FullyConnected, bool);
107 itkGetConstReferenceMacro(FullyConnected, bool);
108 itkBooleanMacro(FullyConnected);
109
115 itkGetConstReferenceMacro(NeighborhoodSize, NeighborhoodSizeType);
116
118 itkGetConstMacro(CurrentIteration, unsigned int);
119
121 itkGetConstReferenceMacro(CurrentValue, double);
122
123protected:
125 ~IterateNeighborhoodOptimizer() override = default;
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
129private:
130 bool m_Stop;
134 unsigned long m_CurrentIteration;
136};
137
138} // end namespace itk
139
140#endif
Array class with size defined at construction time.
Definition itkArray.h:48
Control indentation during Print() invocation.
Definition itkIndent.h:53
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetMaximize(bool _arg)
~IterateNeighborhoodOptimizer() override=default
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)