ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkCenteredRigid2DTransform.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 __itkCenteredRigid2DTransform_h
19 #define __itkCenteredRigid2DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid2DTransform.h"
23 
24 namespace itk
25 {
51 template <class TScalarType = double>
52 // Data type for scalars
53 class ITK_EXPORT CenteredRigid2DTransform :
54  public Rigid2DTransform<TScalarType>
55 {
56 public:
62 
64  itkNewMacro(Self);
65 
68 
70  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
71  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
72  itkStaticConstMacro(ParametersDimension, unsigned int, 5);
74 
76  typedef typename Superclass::ScalarType ScalarType;
77 
79  typedef typename Superclass::ParametersType ParametersType;
80  typedef typename Superclass::ParametersValueType ParametersValueType;
81 
83  typedef typename Superclass::JacobianType JacobianType;
84 
86  typedef typename Superclass::OffsetType OffsetType;
87 
89  typedef typename Superclass::InputPointType InputPointType;
90  typedef typename Superclass::OutputPointType OutputPointType;
91  typedef typename Superclass::InputPointValueType InputPointValueType;
92 
94  typedef typename Superclass::InputVectorType InputVectorType;
95  typedef typename Superclass::OutputVectorType OutputVectorType;
96  typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
97 
99  typedef typename Superclass::InputCovariantVectorType
101  typedef typename Superclass::OutputCovariantVectorType
103 
105  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
106  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
107 
110  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
111  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
112 
121  void SetParameters(const ParametersType & parameters);
122 
131  const ParametersType & GetParameters(void) const;
132 
136  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
137 
140  virtual void SetFixedParameters(const ParametersType &);
141 
144  virtual const ParametersType & GetFixedParameters(void) const;
145 
149  void CloneInverseTo(Pointer & newinverse) const;
150 
152  bool GetInverse(Self *inverse) const;
153 
155  virtual InverseTransformBasePointer GetInverseTransform() const;
156 
160  void CloneTo(Pointer & clone) const;
161 
162 protected:
165  {
166  }
167 
168  CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
169 
170  void PrintSelf(std::ostream & os, Indent indent) const;
171 
172 private:
173  CenteredRigid2DTransform(const Self &); // purposely not implemented
174  void operator=(const Self &); // purposely not implemented
175 
176 }; // class CenteredRigid2DTransform
177 } // namespace itk
178 
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkCenteredRigid2DTransform.hxx"
181 #endif
182 
183 #endif /* __itkCenteredRigid2DTransform_h */
184