ITK  4.8.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>
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 
80 
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  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() {}
172  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
173 
174 private:
175  CenteredSimilarity2DTransform(const Self &); // purposely not implemented
176  void operator=(const Self &); // purposely not implemented
177 };
178 
179 } // end namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 #include "itkCenteredSimilarity2DTransform.hxx"
183 #endif
184 
185 #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)
virtual const ParametersType & GetParameters() const override
Superclass::InputPointType InputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
virtual InverseTransformBasePointer GetInverseTransform() const override
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
virtual void SetFixedParameters(const FixedParametersType &) override
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::ScalarType ScalarType
Superclass::OffsetType OffsetType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::FixedParametersType FixedParametersType
Superclass::ParametersValueType ParametersValueType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
bool GetInverse(Self *inverse) const
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::OffsetValueType OffsetValueType
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
Superclass::InputVectorType InputVectorType
void CloneTo(Pointer &clone) const
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
void CloneInverseTo(Pointer &newinverse) const
virtual const FixedParametersType & GetFixedParameters() const override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void SetParameters(const ParametersType &parameters) override
Superclass::JacobianType JacobianType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::FixedParametersType FixedParametersType
Superclass::InputVnlVectorType InputVnlVectorType
Similarity2DTransform< TParametersValueType > Superclass