ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkANTSNeighborhoodCorrelationImageToImageMetricv4.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 itkANTSNeighborhoodCorrelationImageToImageMetricv4_h
19 #define itkANTSNeighborhoodCorrelationImageToImageMetricv4_h
20 
23 
24 namespace itk {
25 
93 template<typename TFixedImage, typename TMovingImage, typename TVirtualImage = TFixedImage,
94  typename TInternalComputationValueType = double,
95  typename TMetricTraits = DefaultImageToImageMetricTraitsv4<TFixedImage,TMovingImage,TVirtualImage,TInternalComputationValueType>
96  >
98  public ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits>
99 {
100 public:
101  ITK_DISALLOW_COPY_AND_ASSIGN(ANTSNeighborhoodCorrelationImageToImageMetricv4);
102 
105  using Superclass = ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage,
106  TInternalComputationValueType,TMetricTraits>;
109 
111  itkNewMacro(Self);
112 
114  itkTypeMacro(Self, Superclass);
115 
117  using MeasureType = typename Superclass::MeasureType;
118  using DerivativeType = typename Superclass::DerivativeType;
119  using DerivativeValueType = typename Superclass::DerivativeValueType;
120  using VirtualPointType = typename Superclass::VirtualPointType;
121  using FixedImagePointType = typename Superclass::FixedImagePointType;
122  using FixedImagePixelType = typename Superclass::FixedImagePixelType;
123  using FixedTransformType = typename Superclass::FixedTransformType;
124  using FixedImageGradientType = typename Superclass::FixedImageGradientType;
125  using FixedImageJacobianType = typename FixedTransformType::JacobianType;
126 
127  using MovingImagePointType = typename Superclass::MovingImagePointType;
128  using MovingImagePixelType = typename Superclass::MovingImagePixelType;
129  using MovingImageGradientType = typename Superclass::MovingImageGradientType;
130  using MovingTransformType = typename Superclass::MovingTransformType;
131  using MovingImageJacobianType = typename MovingTransformType::JacobianType;
132  using JacobianType = typename Superclass::JacobianType;
133 
134  using VirtualImageGradientType = typename Superclass::VirtualImageGradientType;
135 
136  using FixedImageType = typename Superclass::FixedImageType;
137  using MovingImageType = typename Superclass::MovingImageType;
138  using VirtualImageType = typename Superclass::VirtualImageType;
139  using FixedOutputPointType = typename Superclass::FixedOutputPointType;
140  using MovingOutputPointType = typename Superclass::MovingOutputPointType;
141 
142  using FixedTransformJacobianType = typename Superclass::FixedTransformType::JacobianType;
143  using MovingTransformJacobianType = typename Superclass::MovingTransformType::JacobianType;
144 
145  using NumberOfParametersType = typename Superclass::NumberOfParametersType;
146  using ImageDimensionType = typename Superclass::ImageDimensionType;
147 
151 
152  /* Image dimension accessors */
153  static constexpr ImageDimensionType FixedImageDimension = FixedImageType::ImageDimension;
154 
155  static constexpr ImageDimensionType MovingImageDimension = MovingImageType::ImageDimension;
156 
157  static constexpr ImageDimensionType VirtualImageDimension = VirtualImageType::ImageDimension;
158 
159  // Set the radius of the neighborhood window centered at each pixel.
160  // See the note above about using a radius less than 2.
161  itkSetMacro(Radius, RadiusType);
162 
163  // Get the Radius of the neighborhood window centered at each pixel
164  itkGetMacro(Radius, RadiusType);
165  itkGetConstMacro(Radius, RadiusType);
166 
167  void Initialize() override;
168 
169 protected:
172 
176 
180 
181  void PrintSelf(std::ostream & os, Indent indent) const override;
182 
183 private:
184  // Radius of the neighborhood window centered at each pixel
186 };
187 
188 } // end namespace itk
189 
190 #ifndef ITK_MANUAL_INSTANTIATION
191 #include "itkANTSNeighborhoodCorrelationImageToImageMetricv4.hxx"
192 #endif
193 
194 #endif
Light weight base class for most itk classes.
typename Superclass::FixedTransformType::JacobianType FixedTransformJacobianType
Computes normalized cross correlation using a small neighborhood for each voxel between two images...
Class for partitioning of an ImageRegion.
typename DerivativeType::ValueType DerivativeValueType
typename Superclass::MeasureType MeasureType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::MovingTransformType::JacobianType MovingTransformJacobianType
typename Superclass::DerivativeType DerivativeType