ITK  4.4.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 <class TFixedImage, class TMovingImage, class TVirtualImage = TFixedImage,
41  class TMetricTraits = DefaultImageToImageMetricTraitsv4<TFixedImage,TMovingImage,TVirtualImage>
42  >
44  public ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage, TMetricTraits>
45 {
46 public:
49 
51 
54 
56  itkNewMacro(Self);
57 
60 
62  typedef typename Superclass::MeasureType MeasureType;
63  typedef typename Superclass::DerivativeType DerivativeType;
64 
65  typedef typename Superclass::FixedImagePointType FixedImagePointType;
66  typedef typename Superclass::FixedImagePixelType FixedImagePixelType;
67  typedef typename Superclass::FixedImageGradientType FixedImageGradientType;
68 
69  typedef typename Superclass::MovingImagePointType MovingImagePointType;
70  typedef typename Superclass::MovingImagePixelType MovingImagePixelType;
71  typedef typename Superclass::MovingImageGradientType MovingImageGradientType;
72 
73  typedef typename Superclass::MovingTransformType MovingTransformType;
74  typedef typename Superclass::JacobianType JacobianType;
75  typedef typename Superclass::VirtualImageType VirtualImageType;
76  typedef typename Superclass::VirtualIndexType VirtualIndexType;
77  typedef typename Superclass::VirtualPointType VirtualPointType;
78  typedef typename Superclass::VirtualPointSetType VirtualPointSetType;
79 
80  /* Image dimension accessors */
81  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType, TVirtualImage::ImageDimension);
82  itkStaticConstMacro(FixedImageDimension, ImageDimensionType, TFixedImage::ImageDimension);
83  itkStaticConstMacro(MovingImageDimension, ImageDimensionType, TMovingImage::ImageDimension);
84 
85 protected:
88 
90  friend class MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >;
91  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedImageRegionPartitioner< Superclass::VirtualImageDimension >, Superclass, Self >
93  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >
95 
96  void PrintSelf(std::ostream& os, Indent indent) const;
97 
98 private:
99  MeanSquaresImageToImageMetricv4(const Self &); //purposely not implemented
100  void operator = (const Self &); //purposely not implemented
101 };
102 
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkMeanSquaresImageToImageMetricv4.hxx"
107 #endif
108 
109 #endif
110