ITK  4.2.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 
22 
24 
25 namespace itk
26 {
27 
37 template <class TFixedImage, class TMovingImage, class TVirtualImage = TFixedImage >
39 public ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage>
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  typedef typename Superclass::MeasureType MeasureType;
56  typedef typename Superclass::DerivativeType DerivativeType;
57 
58  typedef typename Superclass::FixedImagePointType FixedImagePointType;
59  typedef typename Superclass::FixedImagePixelType FixedImagePixelType;
60  typedef typename Superclass::FixedImageGradientType FixedImageGradientType;
61 
62  typedef typename Superclass::MovingImagePointType MovingImagePointType;
63  typedef typename Superclass::MovingImagePixelType MovingImagePixelType;
64  typedef typename Superclass::MovingImageGradientType MovingImageGradientType;
65 
66  typedef typename Superclass::MovingTransformType MovingTransformType;
67  typedef typename Superclass::JacobianType JacobianType;
68  typedef typename Superclass::VirtualImageType VirtualImageType;
69  typedef typename Superclass::VirtualIndexType VirtualIndexType;
70  typedef typename Superclass::VirtualPointType VirtualPointType;
71  typedef typename Superclass::VirtualPointSetType VirtualPointSetType;
72 
73  /* Image dimension accessors */
74  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType, ::itk::GetImageDimension<TVirtualImage>::ImageDimension);
75  itkStaticConstMacro(FixedImageDimension, ImageDimensionType, ::itk::GetImageDimension<TFixedImage>::ImageDimension);
76  itkStaticConstMacro(MovingImageDimension, ImageDimensionType, ::itk::GetImageDimension<TMovingImage>::ImageDimension);
77 
78 protected:
81 
83  friend class MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >;
84  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedImageRegionPartitioner< Superclass::VirtualImageDimension >, Superclass, Self >
86  typedef MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >
88 
89  void PrintSelf(std::ostream& os, Indent indent) const;
90 
91 private:
92  MeanSquaresImageToImageMetricv4(const Self &); //purposely not implemented
93  void operator = (const Self &); //purposely not implemented
94 };
95 
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkMeanSquaresImageToImageMetricv4.hxx"
100 #endif
101 
102 #endif
103