ITK  4.13.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:
53 
55  itkNewMacro(Self);
56 
59 
60  typedef typename Superclass::DerivativeType DerivativeType;
61 
62  typedef typename Superclass::FixedImagePointType FixedImagePointType;
63  typedef typename Superclass::FixedImagePixelType FixedImagePixelType;
64  typedef typename Superclass::FixedImageGradientType FixedImageGradientType;
65 
66  typedef typename Superclass::MovingImagePointType MovingImagePointType;
67  typedef typename Superclass::MovingImagePixelType MovingImagePixelType;
68  typedef typename Superclass::MovingImageGradientType MovingImageGradientType;
69 
70  typedef typename Superclass::MovingTransformType MovingTransformType;
71  typedef typename Superclass::JacobianType JacobianType;
72  typedef typename Superclass::VirtualImageType VirtualImageType;
73  typedef typename Superclass::VirtualIndexType VirtualIndexType;
74  typedef typename Superclass::VirtualPointType VirtualPointType;
75  typedef typename Superclass::VirtualPointSetType VirtualPointSetType;
76 
77  /* Image dimension accessors */
78  itkStaticConstMacro(VirtualImageDimension, typename TVirtualImage::ImageDimensionType, TVirtualImage::ImageDimension);
79  itkStaticConstMacro(FixedImageDimension, typename TFixedImage::ImageDimensionType, TFixedImage::ImageDimension);
80  itkStaticConstMacro(MovingImageDimension, typename TMovingImage::ImageDimensionType, TMovingImage::ImageDimension);
81 
82 protected:
84  virtual ~MeanSquaresImageToImageMetricv4() ITK_OVERRIDE;
85 
88  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedImageRegionPartitioner< Superclass::VirtualImageDimension >, Superclass, Self >
90  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >
92 
93  void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
94 
95 private:
96  ITK_DISALLOW_COPY_AND_ASSIGN(MeanSquaresImageToImageMetricv4);
97 };
98 
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkMeanSquaresImageToImageMetricv4.hxx"
103 #endif
104 
105 #endif
Light weight base class for most itk classes.
Superclass::MovingImagePixelType MovingImagePixelType
Class for partitioning of an ImageRegion.
Class implementing a mean squares metric.
Superclass::MovingImagePointType MovingImagePointType
Superclass::MovingImageGradientType MovingImageGradientType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::FixedImageGradientType FixedImageGradientType
ImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits > Superclass