ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkComplexBSplineInterpolateImageFunction.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 __itkComplexBSplineInterpolateImageFunction_h
19 #define __itkComplexBSplineInterpolateImageFunction_h
20 
24 
25 namespace itk
26 {
43 template< class TImageType, class TCoordRep = double, class TCoefficientType = double >
45  public InterpolateImageFunction< TImageType, TCoordRep >
46 {
47 public:
48 
51 
54 
57 
60 
63 
65  itkNewMacro(Self);
66 
68  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
69 
71  typedef typename Superclass::OutputType OutputType;
72 
74  typedef typename Superclass::InputImageType InputImageType;
75 
77  typedef typename Superclass::IndexType IndexType;
78 
80  typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
81 
83  typedef typename Superclass::PointType PointType;
84 
87 
91 
94 
103  virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType & index) const;
104 
106 /* typedef CovariantVector< OutputType, itkGetStaticConstMacro( ImageDimension ) > CovariantVectorType;
107 
108  CovariantVectorType EvaluateDerivative( const PointType & point ) const
109  {
110  ContinuousIndexType index;
111  this->GetInputImage()->TransformPhysicalPointToContinuousIndex( point, index );
112  return ( this->EvaluateDerivativeAtContinuousIndex( index ) );
113  }
114 
115  CovariantVectorType EvaluateDerivativeAtContinuousIndex( const ContinuousIndexType & x ) const;
116 */
117 
120  void SetSplineOrder(unsigned int SplineOrder);
121 
122  itkGetConstMacro(SplineOrder, int);
123 
126  virtual void SetInputImage(const TImageType *inputData);
127 
128 protected:
131  void operator=(const Self &); //purposely not implemented
132 
133  void PrintSelf(std::ostream & os, Indent indent) const;
134 
135 private:
136  ComplexBSplineInterpolateImageFunction(const Self &); //purposely not
137  // implemented
138 
139  unsigned int m_SplineOrder;
140 
143 
145 
147 }; // class
148 } // namespace
149 
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "itkComplexBSplineInterpolateImageFunction.hxx"
152 #endif
153 
154 #endif
155