ITK  4.13.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<typename TParametersValueType=double>
52 class ITK_TEMPLATE_EXPORT CenteredRigid2DTransform :
53  public Rigid2DTransform<TParametersValueType>
54 {
55 public:
61 
63  itkNewMacro(Self);
64 
67 
69  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
70  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
71  itkStaticConstMacro(ParametersDimension, unsigned int, 5);
73 
75  typedef typename Superclass::ScalarType ScalarType;
76  typedef typename Superclass::FixedParametersType FixedParametersType;
77  typedef typename Superclass::FixedParametersValueType FixedParametersValueType;
78  typedef typename Superclass::ParametersType ParametersType;
79  typedef typename Superclass::ParametersValueType ParametersValueType;
80 
82  typedef typename Superclass::JacobianType JacobianType;
83 
85  typedef typename Superclass::OffsetType OffsetType;
86 
88  typedef typename Superclass::InputPointType InputPointType;
89  typedef typename Superclass::OutputPointType OutputPointType;
90  typedef typename Superclass::InputPointValueType InputPointValueType;
91 
93  typedef typename Superclass::InputVectorType InputVectorType;
94  typedef typename Superclass::OutputVectorType OutputVectorType;
95  typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
96 
98  typedef typename Superclass::InputCovariantVectorType
100  typedef typename Superclass::OutputCovariantVectorType
102 
104  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
105  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
106 
109  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
110  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
111 
120  virtual void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
121 
130  virtual const ParametersType & GetParameters() const ITK_OVERRIDE;
131 
135  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
136 
139  virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE;
140 
143  virtual const FixedParametersType & GetFixedParameters() const ITK_OVERRIDE;
144 
148  void CloneInverseTo(Pointer & newinverse) const;
149 
151  bool GetInverse(Self *inverse) const;
152 
154  virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
155 
159  void CloneTo(Pointer & clone) const;
160 
161 protected:
163  ~CenteredRigid2DTransform() ITK_OVERRIDE {}
164 
165  CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
166 
167  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
168 
169 private:
170  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredRigid2DTransform);
171 
172 }; // class CenteredRigid2DTransform
173 } // namespace itk
174 
175 #ifndef ITK_MANUAL_INSTANTIATION
176 #include "itkCenteredRigid2DTransform.hxx"
177 #endif
178 
179 #endif /* itkCenteredRigid2DTransform_h */
Light weight base class for most itk classes.
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::FixedParametersType FixedParametersType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::ParametersValueType ParametersValueType
Superclass::InputPointType InputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
CenteredRigid2DTransform of a vector space (e.g. space coordinates)
Rigid2DTransform< TParametersValueType > Superclass
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVectorValueType OutputVectorValueType
Superclass::InputPointValueType InputPointValueType
Rigid2DTransform of a vector space (e.g. space coordinates)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
Superclass::InputVectorType InputVectorType
InverseTransformBaseType::Pointer InverseTransformBasePointer