ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkCenteredSimilarity2DTransform.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 itkCenteredSimilarity2DTransform_h
19 #define itkCenteredSimilarity2DTransform_h
20 
22 
23 namespace itk
24 {
54 template<typename TParametersValueType=double>
55 class ITK_TEMPLATE_EXPORT CenteredSimilarity2DTransform :
56  public Similarity2DTransform<TParametersValueType>
57 {
58 public:
64 
66  itkNewMacro(Self);
67 
70 
72  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
73  itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
74  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
75  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
77 
79  typedef typename Superclass::ScalarType ScalarType;
80 
82  typedef typename Superclass::FixedParametersType FixedParametersType;
83  typedef typename Superclass::FixedParametersValueType FixedParametersValueType;
84  typedef typename Superclass::ParametersType ParametersType;
85  typedef typename Superclass::ParametersValueType ParametersValueType;
86 
88  typedef typename Superclass::JacobianType JacobianType;
89 
91  typedef typename Superclass::OffsetType OffsetType;
93 
95  typedef typename Superclass::InputPointType InputPointType;
96  typedef typename Superclass::OutputPointType OutputPointType;
97  typedef typename InputPointType::ValueType InputPointValueType;
98 
100  typedef typename Superclass::InputVectorType InputVectorType;
101  typedef typename Superclass::OutputVectorType OutputVectorType;
102 
104  typedef typename Superclass::InputCovariantVectorType
106  typedef typename Superclass::OutputCovariantVectorType
108 
110  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
111  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
112 
115  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
116  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
117 
127  virtual void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
128 
138  virtual const ParametersType & GetParameters() const ITK_OVERRIDE;
139 
141  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
142 
145  virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE;
146 
149  virtual const FixedParametersType & GetFixedParameters() const ITK_OVERRIDE;
150 
154  void CloneInverseTo(Pointer & newinverse) const;
155 
157  bool GetInverse(Self *inverse) const;
158 
160  virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
161 
165  void CloneTo(Pointer & clone) const;
166 
167 protected:
169  CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
170 
171  virtual ~CenteredSimilarity2DTransform() ITK_OVERRIDE {}
172  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
173 
174 private:
175  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredSimilarity2DTransform);
176 };
177 
178 } // end namespace itk
179 
180 #ifndef ITK_MANUAL_INSTANTIATION
181 #include "itkCenteredSimilarity2DTransform.hxx"
182 #endif
183 
184 #endif /* itkCenteredSimilarity2DTransform_h */
Superclass::ParametersValueType ParametersValueType
Superclass::FixedParametersValueType FixedParametersValueType
Light weight base class for most itk classes.
Similarity2DTransform of a vector space (e.g. space coordinates)
signed long OffsetValueType
Definition: itkIntTypes.h:154
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
Superclass::InputCovariantVectorType InputCovariantVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::FixedParametersType FixedParametersType
Similarity2DTransform< TParametersValueType > Superclass