ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBlockMatchingMultiResolutionIterationDisplacementCalculatorCommand.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 itkBlockMatchingMultiResolutionIterationDisplacementCalculatorCommand_h
19#define itkBlockMatchingMultiResolutionIterationDisplacementCalculatorCommand_h
20
22
24
25namespace itk
26{
27namespace BlockMatching
28{
29
36template <typename TMultiResolutionMethod>
38 : public MultiResolutionIterationCommand<TMultiResolutionMethod>
39{
40public:
42
46
47 itkNewMacro(Self);
48
49 void
50 Execute(itk::Object * caller, const itk::EventObject & event) override
51 {
52 Execute((const itk::Object *)caller, event);
53 }
54
55 void
56 Execute(const itk::Object * object, const itk::EventObject & event) override;
57
58 using MultiResolutionMethod = TMultiResolutionMethod;
59 using MetricImageType = typename MultiResolutionMethod::MetricImageType;
60 using DisplacementImageType = typename MultiResolutionMethod::DisplacementImageType;
61
62 using ImageRegistrationMethodType = typename MultiResolutionMethod::ImageRegistrationMethodType;
63 typedef typename ImageRegistrationMethodType::MetricImageToDisplacementCalculatorType
65 using MetricImageToDisplacementCalculatorPointer = typename MetricImageToDisplacementCalculatorType::Pointer;
66
69
70 itkSetObjectMacro(Level0ToNMinus1DisplacementCalculator, MetricImageToDisplacementCalculatorType);
71 itkGetConstObjectMacro(Level0ToNMinus1DisplacementCalculator, MetricImageToDisplacementCalculatorType);
72
73 itkSetObjectMacro(LevelNDisplacementCalculator, MetricImageToDisplacementCalculatorType);
74 itkGetConstObjectMacro(LevelNDisplacementCalculator, MetricImageToDisplacementCalculatorType);
75
77 itkSetObjectMacro(Regularizer, RegularizerType);
78 itkGetConstObjectMacro(Regularizer, RegularizerType);
79
80 itkSetMacro(Level0ToNMinus1RegularizerIterations, unsigned int);
81 itkGetConstMacro(Level0ToNMinus1RegularizerIterations, unsigned int);
82
83 itkSetMacro(LevelNRegularizerIterations, unsigned int);
84 itkGetConstMacro(LevelNRegularizerIterations, unsigned int);
85
86protected:
94
97
99
102
103private:
104};
105
106} // end namespace BlockMatching
107} // end namespace itk
108
109#include "itkBlockMatchingMultiResolutionIterationDisplacementCalculatorCommand.hxx"
110
111#endif
The metric image is regularized by neighboring metric images according to a Bayesian model before dis...
void Execute(const itk::Object *object, const itk::EventObject &event) override
Abstraction of the Events used to communicating among filters and with GUIs.
Base class for most ITK classes.
Definition itkObject.h:62
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)