ITK  4.6.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 
21 #include <iostream>
23 
24 namespace itk
25 {
55 template< typename TScalar = double >
56 // Data type for scalars
58  public Similarity2DTransform<TScalar>
59 {
60 public:
66 
68  itkNewMacro(Self);
69 
72 
74  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
75  itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
76  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
77  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
79 
82 
86 
89 
93 
97  typedef typename InputPointType::ValueType InputPointValueType;
98 
102 
104  typedef typename Superclass::InputCovariantVectorType
108 
112 
116  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
117 
127  void SetParameters(const ParametersType & parameters);
128 
138  const ParametersType & GetParameters(void) const;
139 
141  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
142 
145  virtual void SetFixedParameters(const ParametersType &);
146 
149  virtual const ParametersType & GetFixedParameters(void) const;
150 
154  void CloneInverseTo(Pointer & newinverse) const;
155 
157  bool GetInverse(Self *inverse) const;
158 
161 
165  void CloneTo(Pointer & clone) const;
166 
167 protected:
169  CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
170 
172  {
173  }
174  void PrintSelf(std::ostream & os, Indent indent) const;
175 
176 private:
177  CenteredSimilarity2DTransform(const Self &); // purposely not implemented
178  void operator=(const Self &); // purposely not implemented
179 
180 }; // class
181  // CenteredSimilarity2DTransform
182 } // namespace itk
183 
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkCenteredSimilarity2DTransform.hxx"
186 #endif
187 
188 #endif /* __itkCenteredSimilarity2DTransform_h */
virtual const ParametersType & GetFixedParameters(void) const
Superclass::ParametersType ParametersType
Light weight base class for most itk classes.
Similarity2DTransform of a vector space (e.g. space coordinates)
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVectorType OutputVectorType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputCovariantVectorType OutputCovariantVectorType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
bool GetInverse(Self *inverse) const
void CloneTo(Pointer &clone) const
Superclass::OffsetValueType OffsetValueType
Superclass::InputPointType InputPointType
void CloneInverseTo(Pointer &newinverse) const
Superclass::JacobianType JacobianType
Superclass::ScalarType ScalarType
Superclass::ParametersValueType ParametersValueType
const ParametersType & GetParameters(void) const
Superclass::InverseTransformBaseType InverseTransformBaseType
void SetParameters(const ParametersType &parameters)
Superclass::OutputPointType OutputPointType
virtual InverseTransformBasePointer GetInverseTransform() const
Superclass::InputCovariantVectorType InputCovariantVectorType
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVectorType InputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void SetFixedParameters(const ParametersType &)
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::OffsetType OffsetType
Superclass::ParametersValueType ParametersValueType
Superclass::OutputVnlVectorType OutputVnlVectorType