ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkTransformBase.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 __itkTransformBase_h
19 #define __itkTransformBase_h
20 
21 #include "itkObject.h"
22 #include "itkPoint.h"
23 #include "itkCovariantVector.h"
24 #include "vnl/vnl_vector_fixed.h"
25 #include "itkArray2D.h"
26 #include "itkOptimizerParameters.h"
27 
28 #include "itkObjectFactory.h"
29 #include "itkIntTypes.h"
30 
31 namespace itk
32 {
42 template< typename TScalar >
44 {
45 public:
48  typedef Object Superclass;
51 
53  typedef TScalar ParametersValueType;
55 
57  itkTypeMacro(TransformBaseTemplate, Object);
58 
62 
64  virtual NumberOfParametersType GetNumberOfParameters(void) const = 0;
65 
67  virtual const ParametersType & GetParameters(void) const = 0;
68 
70  virtual unsigned int GetInputSpaceDimension(void) const = 0;
71 
73  virtual unsigned int GetOutputSpaceDimension(void) const = 0;
74 
76  virtual void SetParameters(const ParametersType &) = 0;
77 
85  virtual void SetParametersByValue(const ParametersType & p) = 0;
86 
88  virtual void SetFixedParameters(const ParametersType &) = 0;
89 
91  virtual const ParametersType & GetFixedParameters() const = 0;
92 
94  virtual std::string GetTransformTypeAsString() const = 0;
95 
96  typedef enum {
98  Linear=1,
104 
106  virtual TransformCategoryType GetTransformCategory() const = 0;
107 
108 protected:
111 
112 private:
113  TransformBaseTemplate(const Self &); //purposely not implemented
114  void operator=(const Self &); //purposely not implemented
115 };
116 
119 
120 } // end namespace itk
121 
122 #endif
virtual NumberOfParametersType GetNumberOfParameters(void) const =0
virtual unsigned int GetInputSpaceDimension(void) const =0
virtual void SetParametersByValue(const ParametersType &p)=0
SmartPointer< const Self > ConstPointer
TransformBaseTemplate< double > TransformBase
virtual void SetFixedParameters(const ParametersType &)=0
SmartPointer< Self > Pointer
virtual const ParametersType & GetParameters(void) const =0
OptimizerParameters< ParametersValueType > ParametersType
virtual unsigned int GetOutputSpaceDimension(void) const =0
SizeValueType IdentifierType
Definition: itkIntTypes.h:147
IdentifierType NumberOfParametersType
virtual const ParametersType & GetFixedParameters() const =0
Class to hold and manage different parameter types used during optimization.
TransformBaseTemplate Self
virtual void SetParameters(const ParametersType &)=0
virtual std::string GetTransformTypeAsString() const =0
void operator=(const Self &)
Base class for most ITK classes.
Definition: itkObject.h:57
virtual TransformCategoryType GetTransformCategory() const =0