ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBlockMatchingMetricImageFilter.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 itkBlockMatchingMetricImageFilter_h
19#define itkBlockMatchingMetricImageFilter_h
20
22
23namespace itk
24{
25namespace BlockMatching
26{
27
54template <typename TFixedImage, typename TMovingImage, typename TMetricImage>
55class ITK_TEMPLATE_EXPORT MetricImageFilter : public ImageToImageFilter<TFixedImage, TMetricImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(MetricImageFilter);
59
65
67 itkOverrideGetNameOfClassMacro(MetricImageFilter);
68
70 static constexpr unsigned int ImageDimension = TFixedImage::ImageDimension;
71
73 using FixedImageType = TFixedImage;
74 using FixedImageRegionType = typename FixedImageType::RegionType;
75
77 using MovingImageType = TMovingImage;
78 using MovingImageRegionType = typename MovingImageType::RegionType;
79
81 using MetricImageType = TMetricImage;
82 using MetricImageSpacingType = typename MetricImageType::SpacingType;
83 using MetricImageRegionType = typename MetricImageType::RegionType;
84
86 using RadiusType = typename FixedImageType::SizeType;
87
89 void
91
93 void
95
100 void
102 itkGetConstReferenceMacro(FixedImageRegion, FixedImageRegionType);
103
107 void
109 itkGetConstReferenceMacro(MovingImageRegion, MovingImageRegionType);
110
111protected:
113 ~MetricImageFilter() override = default;
114
115 void
117
121 void
123
125 void
127
130
133
134 // This is closely tied to m_FixedImageRegion. It gets set when setting
135 // FixedImageRegion.
137 // This is again determined by m_FixedImageRegion, but it is the radius of the
138 // block in the moving image, which may be different if the spacing is
139 // different.
141
142private:
143};
144
145} // end namespace BlockMatching
146} // end namespace itk
147
148#ifndef ITK_MANUAL_INSTANTIATION
149# include "itkBlockMatchingMetricImageFilter.hxx"
150#endif
151
152#endif
void SetMovingImage(MovingImageType *movingImage)
void SetFixedImageRegion(const FixedImageRegionType &region)
void SetFixedImage(FixedImageType *fixedImage)
void EnlargeOutputRequestedRegion(DataObject *data) override
void SetMovingImageRegion(const MovingImageRegionType &region)
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....