ITK  4.8.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>
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 
80 
83 
86 
91 
96 
102 
106 
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()
164  {
165  }
166 
167  CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
168 
169  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
170 
171 private:
172  CenteredRigid2DTransform(const Self &); // purposely not implemented
173  void operator=(const Self &); // purposely not implemented
174 
175 }; // class CenteredRigid2DTransform
176 } // namespace itk
177 
178 #ifndef ITK_MANUAL_INSTANTIATION
179 #include "itkCenteredRigid2DTransform.hxx"
180 #endif
181 
182 #endif /* itkCenteredRigid2DTransform_h */
void operator=(const Self &)
virtual void SetParameters(const ParametersType &parameters) override
static const unsigned int ParametersDimension
Light weight base class for most itk classes.
Superclass::ParametersType ParametersType
virtual void SetFixedParameters(const FixedParametersType &) override
virtual InverseTransformBasePointer GetInverseTransform() const override
Superclass::OutputPointType OutputPointType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::FixedParametersType FixedParametersType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::ParametersValueType ParametersValueType
virtual const ParametersType & GetParameters() const override
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::ParametersType ParametersType
Superclass::OutputVectorValueType OutputVectorValueType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::JacobianType JacobianType
static const unsigned int OutputSpaceDimension
CenteredRigid2DTransform of a vector space (e.g. space coordinates)
Rigid2DTransform< TParametersValueType > Superclass
Superclass::InverseTransformBaseType InverseTransformBaseType
bool GetInverse(Self *inverse) const
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputVectorValueType OutputVectorValueType
Superclass::FixedParametersType FixedParametersType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputPointValueType InputPointValueType
Superclass::OutputPointType OutputPointType
Rigid2DTransform of a vector space (e.g. space coordinates)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::InputVectorType InputVectorType
void CloneTo(Pointer &clone) const
SmartPointer< const Self > ConstPointer
Superclass::ParametersValueType ParametersValueType
Superclass::InputVectorType InputVectorType
virtual const FixedParametersType & GetFixedParameters() const override
Superclass::OffsetType OffsetType
static const unsigned int SpaceDimension
Superclass::ScalarType ScalarType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::InverseTransformBaseType InverseTransformBaseType
void CloneInverseTo(Pointer &newinverse) const
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override