ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkMeanSquaresImageToImageMetricv4.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 itkMeanSquaresImageToImageMetricv4_h
19 #define itkMeanSquaresImageToImageMetricv4_h
20 
24 
25 namespace itk
26 {
27 
40 template <typename TFixedImage, typename TMovingImage, typename TVirtualImage = TFixedImage,
41  typename TInternalComputationValueType = double,
42  typename TMetricTraits = DefaultImageToImageMetricTraitsv4<TFixedImage,TMovingImage,TVirtualImage,TInternalComputationValueType>
43  >
44 class ITK_TEMPLATE_EXPORT MeanSquaresImageToImageMetricv4 :
45  public ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits>
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_ASSIGN(MeanSquaresImageToImageMetricv4);
49 
55 
57  itkNewMacro(Self);
58 
61 
62  using DerivativeType = typename Superclass::DerivativeType;
63 
64  using FixedImagePointType = typename Superclass::FixedImagePointType;
65  using FixedImagePixelType = typename Superclass::FixedImagePixelType;
66  using FixedImageGradientType = typename Superclass::FixedImageGradientType;
67 
68  using MovingImagePointType = typename Superclass::MovingImagePointType;
69  using MovingImagePixelType = typename Superclass::MovingImagePixelType;
70  using MovingImageGradientType = typename Superclass::MovingImageGradientType;
71 
72  using MovingTransformType = typename Superclass::MovingTransformType;
73  using JacobianType = typename Superclass::JacobianType;
74  using VirtualImageType = typename Superclass::VirtualImageType;
75  using VirtualIndexType = typename Superclass::VirtualIndexType;
76  using VirtualPointType = typename Superclass::VirtualPointType;
77  using VirtualPointSetType = typename Superclass::VirtualPointSetType;
78 
79  /* Image dimension accessors */
80  static constexpr typename TVirtualImage::ImageDimensionType VirtualImageDimension = TVirtualImage::ImageDimension;
81  static constexpr typename TFixedImage::ImageDimensionType FixedImageDimension = TFixedImage::ImageDimension;
82  static constexpr typename TMovingImage::ImageDimensionType MovingImageDimension = TMovingImage::ImageDimension;
83 
84 protected:
86  ~MeanSquaresImageToImageMetricv4() override = default;
87 
89  friend class MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >;
91  MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedImageRegionPartitioner< Superclass::VirtualImageDimension >, Superclass, Self >;
93  MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >;
94 
95  void PrintSelf(std::ostream& os, Indent indent) const override;
96 };
97 
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkMeanSquaresImageToImageMetricv4.hxx"
102 #endif
103 
104 #endif
Light weight base class for most itk classes.
typename Superclass::MovingTransformType MovingTransformType
Class for partitioning of an ImageRegion.
typename MetricTraits::FixedImageGradientType FixedImageGradientType
typename MetricTraits::MovingImageGradientType MovingImageGradientType
typename FixedImageType::PointType FixedImagePointType
typename Superclass::VirtualImageType VirtualImageType
Class implementing a mean squares metric.
typename MovingImageType::PixelType MovingImagePixelType
typename Superclass::VirtualPointType VirtualPointType
typename MovingImageType::PointType MovingImagePointType
typename Superclass::VirtualPointSetType VirtualPointSetType
typename Superclass::VirtualIndexType VirtualIndexType
typename FixedImageType::PixelType FixedImagePixelType
typename Superclass::DerivativeType DerivativeType
typename Superclass::JacobianType JacobianType