ITK  4.8.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 TParametersValueType>
44 {
45 public:
48  typedef Object Superclass;
51 
54  typedef TParametersValueType ParametersValueType;
58 
60  itkTypeMacro(TransformBaseTemplate, Object);
61 
65 
67  virtual NumberOfParametersType GetNumberOfParameters(void) const = 0;
68 
70  virtual const ParametersType & GetParameters(void) const = 0;
71 
73  virtual unsigned int GetInputSpaceDimension(void) const = 0;
74 
76  virtual unsigned int GetOutputSpaceDimension(void) const = 0;
77 
79  virtual void SetParameters(const ParametersType &) = 0;
80 
88  virtual void SetParametersByValue(const ParametersType & p) = 0;
89 
91  virtual void SetFixedParameters(const FixedParametersType &) = 0;
92 
97  virtual void CopyInParameters(const ParametersValueType * const begin,
98  const ParametersValueType * const end) = 0;
99 
104  virtual void CopyInFixedParameters(const FixedParametersValueType * const begin,
105  const FixedParametersValueType * const end) = 0;
106 
108  virtual const FixedParametersType & GetFixedParameters() const = 0;
109 
111  virtual std::string GetTransformTypeAsString() const = 0;
112 
113  typedef enum {
121 
123  virtual TransformCategoryType GetTransformCategory() const = 0;
124 
125 protected:
128 
129 private:
130  TransformBaseTemplate(const Self &); //purposely not implemented
131  void operator=(const Self &); //purposely not implemented
132 };
133 
136 
137 } // end namespace itk
138 
139 #endif
virtual void CopyInParameters(const ParametersValueType *const begin, const ParametersValueType *const end)=0
OptimizerParameters< FixedParametersValueType > FixedParametersType
TransformBaseTemplate< double > TransformBase
IdentifierType NumberOfParametersType
virtual const ParametersType & GetParameters(void) const =0
SmartPointer< const Self > ConstPointer
TParametersValueType ParametersValueType
virtual NumberOfParametersType GetNumberOfParameters(void) const =0
TransformBaseTemplate Self
virtual void CopyInFixedParameters(const FixedParametersValueType *const begin, const FixedParametersValueType *const end)=0
virtual TransformCategoryType GetTransformCategory() const =0
SizeValueType IdentifierType
Definition: itkIntTypes.h:147
ParametersValueType FixedParametersValueType
Class to hold and manage different parameter types used during optimization.
virtual void SetFixedParameters(const FixedParametersType &)=0
virtual void SetParameters(const ParametersType &)=0
SmartPointer< Self > Pointer
void operator=(const Self &)
OptimizerParameters< ParametersValueType > ParametersType
virtual const FixedParametersType & GetFixedParameters() const =0
virtual unsigned int GetOutputSpaceDimension(void) const =0
virtual std::string GetTransformTypeAsString() const =0
Base class for most ITK classes.
Definition: itkObject.h:57
virtual void SetParametersByValue(const ParametersType &p)=0
virtual unsigned int GetInputSpaceDimension(void) const =0