ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkRegistrationParameterScalesFromShiftBase.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 __itkRegistrationParameterScalesFromShiftBase_h
19 #define __itkRegistrationParameterScalesFromShiftBase_h
20 
22 
23 namespace itk
24 {
25 
42 template < typename TMetric >
44  public RegistrationParameterScalesEstimator< TMetric >
45 {
46 public:
52 
55 
57  typedef typename Superclass::ScalesType ScalesType;
58 
62 
64  typedef typename Superclass::FloatType FloatType;
65 
72 
74  virtual void EstimateScales(ScalesType &scales);
75 
77  virtual FloatType EstimateStepScale(const ParametersType &step);
78 
80  virtual void EstimateLocalStepScales(const ParametersType &step,
81  ScalesType &localStepScales);
82 
84  itkSetMacro( SmallParameterVariation, ParametersValueType );
85  itkGetConstMacro( SmallParameterVariation, ParametersValueType );
87 
88 protected:
91 
92  virtual void PrintSelf(std::ostream &os, Indent indent) const;
93 
96  virtual FloatType ComputeMaximumVoxelShift(const ParametersType &deltaParameters);
97 
100  virtual void ComputeSampleShifts(const ParametersType &deltaParameters, ScalesType &localShifts) = 0;
101 
102 private:
103  RegistrationParameterScalesFromShiftBase(const Self&); //purposely not implemented
104  void operator=(const Self&); //purposely not implemented
105 
106  //A small variation of parameters
108 
109 }; //class RegistrationParameterScalesFromShiftBase
110 
111 
112 } // namespace itk
113 
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "itkRegistrationParameterScalesFromShiftBase.hxx"
117 #endif
118 
119 #endif /* __itkRegistrationParameterScalesFromShiftBase_h */
virtual void PrintSelf(std::ostream &os, Indent indent) const
Registration helper base class for estimating scales of transform parameters from the maximum voxel s...
RegistrationParameterScalesEstimator< TMetric > Superclass
virtual void EstimateScales(ScalesType &scales)
virtual FloatType ComputeMaximumVoxelShift(const ParametersType &deltaParameters)
virtual void ComputeSampleShifts(const ParametersType &deltaParameters, ScalesType &localShifts)=0
Implements a registration helper class for estimating scales of transform parameters and step sizes...
virtual void EstimateLocalStepScales(const ParametersType &step, ScalesType &localStepScales)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual FloatType EstimateStepScale(const ParametersType &step)