ITK  4.9.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 
104  typedef ImageToImageMetricv4<TFixedImage, TMovingImage, TVirtualImage,
105  TInternalComputationValueType,TMetricTraits> Superclass;
108 
110  itkNewMacro(Self);
111 
113  itkTypeMacro(Self, Superclass);
114 
116  typedef typename Superclass::MeasureType MeasureType;
124  typedef typename FixedTransformType::JacobianType FixedImageJacobianType;
125 
130  typedef typename MovingTransformType::JacobianType MovingImageJacobianType;
132 
134 
140 
141  typedef typename Superclass::FixedTransformType::JacobianType
143  typedef typename Superclass::MovingTransformType::JacobianType
145 
148 
149  typedef typename VirtualImageType::RegionType ImageRegionType;
150  typedef typename VirtualImageType::SizeType RadiusType;
151  typedef typename VirtualImageType::IndexType IndexType;
152 
153  /* Image dimension accessors */
154  itkStaticConstMacro(FixedImageDimension, ImageDimensionType,
155  FixedImageType::ImageDimension);
156 
157  itkStaticConstMacro(MovingImageDimension, ImageDimensionType,
158  MovingImageType::ImageDimension);
159 
160  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType,
161  VirtualImageType::ImageDimension);
162 
163  // Set the radius of the neighborhood window centered at each pixel.
164  // See the note above about using a radius less than 2.
165  itkSetMacro(Radius, RadiusType);
166 
167  // Get the Radius of the neighborhood window centered at each pixel
168  itkGetMacro(Radius, RadiusType);
169  itkGetConstMacro(Radius, RadiusType);
170 
171  void Initialize(void) throw ( itk::ExceptionObject ) ITK_OVERRIDE;
172 
173 protected:
175  virtual ~ANTSNeighborhoodCorrelationImageToImageMetricv4();
176 
180 
182  typedef ANTSNeighborhoodCorrelationImageToImageMetricv4GetValueAndDerivativeThreader< ThreadedIndexedContainerPartitioner, Superclass, Self >
184 
185  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
186 
187 private:
188  ANTSNeighborhoodCorrelationImageToImageMetricv4( const Self & ) ITK_DELETE_FUNCTION;
189  void operator=(const Self &) ITK_DELETE_FUNCTION;
190 
191  // Radius of the neighborhood window centered at each pixel
193 };
194 
195 } // end namespace itk
196 
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkANTSNeighborhoodCorrelationImageToImageMetricv4.hxx"
199 #endif
200 
201 #endif
Light weight base class for most itk classes.
Superclass::JacobianType JacobianType
Superclass::MeasureType MeasureType
Computes normalized cross correlation using a small neighborhood for each voxel between two images...
Superclass::FixedTransformType FixedTransformType
Superclass::MovingTransformType MovingTransformType
Class for partitioning of an ImageRegion.
typedef(itk::Concept::IsFloatingPoint< FixedImagePixelValueType >) OnlyDefinedForFloatingPointTypes0
Superclass::DimensionType ImageDimensionType
Superclass::NumberOfParametersType NumberOfParametersType
MetricTraits::FixedImageGradientType FixedImageGradientType
Superclass::MovingOutputPointType MovingOutputPointType
DerivativeType::ValueType DerivativeValueType
FixedImageType::PixelType FixedImagePixelType
Superclass::VirtualPointType VirtualPointType
Superclass::DerivativeType DerivativeType
Standard exception handling object.
MovingImageType::PixelType MovingImagePixelType
MovingImageType::PointType MovingImagePointType
MetricTraits::VirtualImageGradientType VirtualImageGradientType
Superclass::FixedOutputPointType FixedOutputPointType
MetricTraits::MovingImageGradientType MovingImageGradientType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
ImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits > Superclass
virtual void PrintSelf(std::ostream &os, Indent indent) const override
FixedImageType::PointType FixedImagePointType
Superclass::VirtualImageType VirtualImageType