go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBSplineInterpolationSecondOrderDerivativeWeightFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
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 __itkBSplineInterpolationSecondOrderDerivativeWeightFunction_h
19 #define __itkBSplineInterpolationSecondOrderDerivativeWeightFunction_h
20 
22 #include "vnl/vnl_vector_fixed.h"
23 
24 namespace itk
25 {
26 
44 template< class TCoordRep = float,
45 unsigned int VSpaceDimension = 2,
46 unsigned int VSplineOrder = 3 >
49  TCoordRep, VSpaceDimension, VSplineOrder >
50 {
51 public:
52 
56  TCoordRep, VSpaceDimension, VSplineOrder > Superclass;
58  typedef SmartPointer< const Self > ConstPointer;
59 
61  itkNewMacro( Self );
62 
66 
68  itkStaticConstMacro( SpaceDimension, unsigned int, VSpaceDimension );
69 
71  itkStaticConstMacro( SplineOrder, unsigned int, VSplineOrder );
72 
75  typedef typename Superclass::IndexType IndexType;
76  typedef typename Superclass::SizeType SizeType;
78 
80  virtual void SetDerivativeDirections( unsigned int dir0, unsigned int dir1 );
81 
82 protected:
83 
86 
90  typedef typename Superclass
92  typedef typename Superclass::TableType TableType;
94 
104  virtual void Compute1DWeights(
105  const ContinuousIndexType & index,
106  const IndexType & startIndex,
107  OneDWeightsType & weights1D ) const;
108 
110  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
111 
112 private:
113 
114  BSplineInterpolationSecondOrderDerivativeWeightFunction( const Self & ); // purposely not implemented
115  void operator=( const Self & ); // purposely not implemented
116 
117  vnl_vector_fixed< double, 2 > m_DerivativeDirections;
119 
120 };
121 
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkBSplineInterpolationSecondOrderDerivativeWeightFunction.hxx"
126 #endif
127 
128 #endif
BSplineInterpolationWeightFunctionBase< TCoordRep, VSpaceDimension, VSplineOrder > Superclass
Matrix< double, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SplineOrder)+1 > OneDWeightsType
virtual void Compute1DWeights(const ContinuousIndexType &index, const IndexType &startIndex, OneDWeightsType &weights1D) const
virtual void PrintSelf(std::ostream &os, Indent indent) const
ContinuousIndex< TCoordRep, VSpaceDimension > ContinuousIndexType
virtual void SetDerivativeDirections(unsigned int dir0, unsigned int dir1)
BSplineDerivativeKernelFunction< Self::SplineOrder > DerivativeKernelType
Returns the weights over the support region used for B-spline interpolation/reconstruction.
B-spline kernel used for density estimation and nonparameteric regression.
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
Returns the weights over the support region used for B-spline interpolation/reconstruction.
Derivative of a B-spline kernel used for density estimation and nonparametric regression.


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo