ITK  4.3.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 {
39 class ITK_EXPORT TransformBase:public Object
40 {
41 public:
44  typedef Object Superclass;
47 
49  typedef double ParametersValueType;
51 
53  itkTypeMacro(TransformBase, Object);
54 
58 
60  virtual NumberOfParametersType GetNumberOfParameters(void) const = 0;
61 
63  virtual const ParametersType & GetParameters(void) const = 0;
64 
66  virtual unsigned int GetInputSpaceDimension(void) const = 0;
67 
69  virtual unsigned int GetOutputSpaceDimension(void) const = 0;
70 
72  virtual void SetParameters(const ParametersType &) = 0;
73 
81  virtual void SetParametersByValue(const ParametersType & p) = 0;
82 
84  virtual void SetFixedParameters(const ParametersType &) = 0;
85 
87  virtual const ParametersType & GetFixedParameters() const = 0;
88 
90  virtual std::string GetTransformTypeAsString() const = 0;
91 
92  typedef enum {
93  UnknownTransformCategory=0,
94  Linear=1,
95  BSpline=2,
96  Spline=3,
97  DisplacementField=4,
98  VelocityField=5
99  } TransformCategoryType;
100 
102  virtual TransformCategoryType GetTransformCategory() const = 0;
103 
104 protected:
106  virtual ~TransformBase() {}
107 
108 private:
109  TransformBase(const Self &); //purposely not implemented
110  void operator=(const Self &); //purposely not implemented
111 };
112 } // end namespace itk
113 
114 #endif
115