Orfeo Toolbox  4.0
itkSimilarity2DTransform.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 __itkSimilarity2DTransform_h
19 #define __itkSimilarity2DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid2DTransform.h"
23 
24 namespace itk
25 {
61 template< typename TScalar = double >
62 // Data type for scalars (float or double)
64  public Rigid2DTransform< TScalar >
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
80  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
81  itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
82  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
83  itkStaticConstMacro(ParametersDimension, unsigned int, 4);
84 
87  typedef TScalar ScaleType;
88 
92 
95 
99 
103 
107 
111 
115 
119 
124 
126  void SetScale(ScaleType scale);
127 
128  itkGetConstReferenceMacro(Scale, ScaleType);
129 
139  void SetParameters(const ParametersType & parameters);
140 
150  const ParametersType & GetParameters(void) const;
151 
155  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
156 
158  virtual void SetIdentity(void);
159 
164  void CloneInverseTo(Pointer & newinverse) const;
165 
167  bool GetInverse(Self *inverse) const;
168 
171 
176  void CloneTo(Pointer & clone) const;
177 
191  virtual void SetMatrix(const MatrixType & matrix);
192 
193 protected:
194  Similarity2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
195  Similarity2DTransform(unsigned int parametersDimension);
197 
199  {
200  }
201  void PrintSelf(std::ostream & os, Indent indent) const;
202 
206  virtual void ComputeMatrix(void);
207 
212  virtual void ComputeMatrixParameters(void);
213 
215  void SetVarScale(ScaleType scale)
216  {
217  m_Scale = scale;
218  }
219 
220 private:
221  Similarity2DTransform(const Self &); // purposely not implemented
222  void operator=(const Self &); // purposely not implemented
223 
225 }; // class Similarity2DTransform
226 } // namespace itk
227 
228 #ifndef ITK_MANUAL_INSTANTIATION
230 #endif
231 
232 #endif /* __itkSimilarity2DTransform_h */

Generated at Sat Mar 8 2014 15:33:13 for Orfeo Toolbox with doxygen 1.8.3.1