Orfeo Toolbox  4.0
itkPointSetToImageRegistrationMethod.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 __itkPointSetToImageRegistrationMethod_h
19 #define __itkPointSetToImageRegistrationMethod_h
20 
21 #include "itkProcessObject.h"
22 #include "itkImage.h"
25 #include "itkDataObjectDecorator.h"
26 
27 namespace itk
28 {
63 template< typename TFixedPointSet, typename TMovingImage >
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
80  typedef TFixedPointSet FixedPointSetType;
81  typedef typename FixedPointSetType::ConstPointer FixedPointSetConstPointer;
82 
84  typedef TMovingImage MovingImageType;
85  typedef typename MovingImageType::ConstPointer MovingImageConstPointer;
86 
90 
94 
100 
104 
107 
111 
114 
116  itkSetConstObjectMacro(FixedPointSet, FixedPointSetType);
117  itkGetConstObjectMacro(FixedPointSet, FixedPointSetType);
118 
120  itkSetConstObjectMacro(MovingImage, MovingImageType);
121  itkGetConstObjectMacro(MovingImage, MovingImageType);
122 
124  itkSetObjectMacro(Optimizer, OptimizerType);
126 
128  itkSetObjectMacro(Metric, MetricType);
130 
132  itkSetObjectMacro(Transform, TransformType);
134 
136  itkSetObjectMacro(Interpolator, InterpolatorType);
138 
140  virtual void SetInitialTransformParameters(const ParametersType & param);
141 
142  itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
143 
146  itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
147 
149  void Initialize()
150  throw ( ExceptionObject );
151 
153  const TransformOutputType * GetOutput() const;
154 
158  using Superclass::MakeOutput;
159  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx);
160 
163  ModifiedTimeType GetMTime() const;
164 
165 #ifdef ITKV3_COMPATIBILITY
166 
167  // StartRegistration is an old API from before
168  // ImageRegistrationMethod was a subclass of ProcessObject.
169  // Historically, one could call StartRegistration() instead of
170  // calling Update(). However, when called directly by the user, the
171  // inputs to ImageRegistrationMethod may not be up to date. This
172  // may cause an unexpected behavior.
173  //
174  // Since we cannot eliminate StartRegistration for backward
175  // compatibility reasons, we check whether StartRegistration was
176  // called directly or whether Update() (which in turn called
177  // StartRegistration()).
178  void StartRegistration(void) { this->Update(); }
179 #endif
180 
181 protected:
184  void PrintSelf(std::ostream & os, Indent indent) const;
185 
188  void GenerateData();
189 
190 private:
191  PointSetToImageRegistrationMethod(const Self &); //purposely not implemented
192  void operator=(const Self &); //purposely not implemented
193 
196 
199 
202 
205 };
206 } // end namespace itk
207 
208 #ifndef ITK_MANUAL_INSTANTIATION
210 #endif
211 
212 #endif

Generated at Sat Mar 8 2014 15:23:20 for Orfeo Toolbox with doxygen 1.8.3.1