ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkVariationalRegistrationFastNCCFunction.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 itkVariationalRegistrationFastNCCFunction_h
19 #define itkVariationalRegistrationFastNCCFunction_h
20 
22 #include "itkCovariantVector.h"
26 
27 namespace itk {
28 
63 template< class TFixedImage, class TMovingImage, class TDisplacementField >
65  public VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >
66 {
67 public:
72 
75 
77  itkNewMacro(Self);
78 
81 
83  itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
84 
88 
92 
96 
99  typedef typename FixedImageType::SpacingType SpacingType;
100 
105 
111 
115 
118  virtual PixelType ComputeUpdate( const NeighborhoodType &neighborhood,
119  void *globalData,
120  const FloatOffsetType &offset = FloatOffsetType(0.0) ) ITK_OVERRIDE;
121 
124  virtual void *GetGlobalDataPointer() const ITK_OVERRIDE;
125 
127  virtual void ReleaseGlobalDataPointer(void *GlobalData) const ITK_OVERRIDE;
128 
129 protected:
131  ~VariationalRegistrationFastNCCFunction() {}
132 
134  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
135 
137 
141  {
147  unsigned int lastSliceIndex;
148  std::vector<double> sfSliceValueList;
149  std::vector<double> smSliceValueList;
150  std::vector<double> sffSliceValueList;
151  std::vector<double> smmSliceValueList;
152  std::vector<double> sfmSliceValueList;
153  double sfLastValue;
154  double smLastValue;
155  double sffLastValue;
156  double smmLastValue;
157  double sfmLastValue;
158  };
159 
160 private:
161  VariationalRegistrationFastNCCFunction(const Self&); //purposely not implemented
162  void operator=(const Self&); //purposely not implemented
163 };
164 
165 
166 } // end namespace itk
167 
168 #ifndef ITK_MANUAL_INSTANTIATION
169 #include "itkVariationalRegistrationFastNCCFunction.hxx"
170 #endif
171 
172 #endif
virtual PixelType ComputeUpdate(const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
This class computes NCC forces in the variational registration framework.
Light weight base class for most itk classes.
This class computes NCC forces in the variational registration framework.
Superclass::DisplacementFieldTypePointer DisplacementFieldTypePointer
Calculate the derivative by central differencing.
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
unsigned long SizeValueType
Definition: itkIntTypes.h:143
virtual void * GetGlobalDataPointer() const override
VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField > Superclass
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::DisplacementFieldTypePointer DisplacementFieldTypePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void ReleaseGlobalDataPointer(void *GlobalData) const override