ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBlockMatchingStrainWindowBlockAffineTransformCommand.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 itkBlockMatchingStrainWindowBlockAffineTransformCommand_h
19#define itkBlockMatchingStrainWindowBlockAffineTransformCommand_h
20
21#include "itkCommand.h"
22
25
26namespace itk
27{
28namespace BlockMatching
29{
30
43template <typename TStrainWindowDisplacemenCalculator,
44 typename TBlockAffineTransformMetricImageFilter,
45 typename TStrainImageFilter>
46class ITK_TEMPLATE_EXPORT StrainWindowBlockAffineTransformCommand : public Command
47{
48public:
52
53 itkNewMacro(Self);
54
55 using StrainWindowDisplacementCalculatorType = TStrainWindowDisplacemenCalculator;
56
57 using BlockAffineTransformMetricImageFilterType = TBlockAffineTransformMetricImageFilter;
58 using StrainImageFilterType = TStrainImageFilter;
59
60 void
61 Execute(itk::Object * caller, const itk::EventObject & event) override
62 {
63 Execute((const itk::Object *)caller, event);
64 }
65
66 void
67 Execute(const itk::Object * object, const itk::EventObject & event) override;
68
70
74 itkSetMacro(UseStrainWindowStrain, bool);
75 itkGetConstMacro(UseStrainWindowStrain, bool);
76
77protected:
79
81 LinearLeastSquaresGradientImageFilter<typename StrainWindowDisplacementCalculatorType::MetricImageType,
82 typename StrainWindowDisplacementCalculatorType::MetricPixelType,
83 typename StrainWindowDisplacementCalculatorType::MetricPixelType>;
84
85 using BlockAffineTransformMetricImageFilterPointer = typename BlockAffineTransformMetricImageFilterType::Pointer;
86
88
90
91 typename StrainImageFilterType::Pointer m_StrainImageFilter;
92
94
95private:
97 void
98 operator=(const Self &);
99};
100
101} // end namespace BlockMatching
102} // end namespace itk
103
104#ifndef ITK_MANUAL_INSTANTIATION
105# include "itkBlockMatchingStrainWindowBlockAffineTransformCommand.hxx"
106#endif
107
108#endif
Modifies the fixed image block according to the affine transform implied by a strain image before pas...
void Execute(const itk::Object *object, const itk::EventObject &event) override
LinearLeastSquaresGradientImageFilter< typename StrainWindowDisplacementCalculatorType::MetricImageType, typename StrainWindowDisplacementCalculatorType::MetricPixelType, typename StrainWindowDisplacementCalculatorType::MetricPixelType > LeastSquaresFilterType
Abstraction of the Events used to communicating among filters and with GUIs.
Calculate the gradient using a linear least squares fit to values in the neighborhood slice.
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)