ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkScaleLogarithmicTransform.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 __itkScaleLogarithmicTransform_h
19 #define __itkScaleLogarithmicTransform_h
20 
21 #include "itkScaleTransform.h"
22 
23 namespace itk
24 {
34 template <
35  class TScalarType = float, // Type for cordinate representation type (float or
36  // double)
37  unsigned int NDimensions = 3>
38 // Number of dimensions
39 class ITK_EXPORT ScaleLogarithmicTransform :
40  public ScaleTransform<TScalarType,
41  NDimensions>
42 {
43 public:
49 
51  itkNewMacro(Self);
52 
55 
57  itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
58  itkStaticConstMacro(ParametersDimension, unsigned int, NDimensions);
60 
62  typedef typename Superclass::ScalarType ScalarType;
63 
65  typedef typename Superclass::ParametersType ParametersType;
66  typedef typename ParametersType::ValueType ParametersValueType;
67 
69  typedef typename Superclass::JacobianType JacobianType;
70 
72  typedef typename Superclass::ScaleType ScaleType;
73  typedef typename ScaleType::ValueType ScalesValueType;
74 
76  typedef typename Superclass::InputVectorType InputVectorType;
77  typedef typename Superclass::OutputVectorType OutputVectorType;
78 
80  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
81  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
82 
84  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
85  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
86 
88  typedef typename Superclass::InputPointType InputPointType;
89  typedef typename Superclass::OutputPointType OutputPointType;
90 
94  void SetParameters(const ParametersType & parameters);
95 
101  const ParametersType & GetParameters(void) const;
102 
105  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
106 
107 protected:
110 
113 
115  void PrintSelf(std::ostream & os, Indent indent) const;
116 
117 private:
118  ScaleLogarithmicTransform(const Self & other); // purposely not implemented
119  const Self & operator=(const Self &); // purposely not implemented
120 
121 }; // class
122  // ScaleLogarithmicTransform
123 } // namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkScaleLogarithmicTransform.hxx"
127 #endif
128 
129 #endif /* __itkScaleLogarithmicTransform_h */
130