ITK  4.13.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< typename TImageType, typename TCoordRep = double, typename TCoefficientType = double >
44 class ITK_TEMPLATE_EXPORT ComplexBSplineInterpolateImageFunction:
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 ITK_OVERRIDE;
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) ITK_OVERRIDE;
127 
128 protected:
131 
132  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
133 
134 private:
135  ITK_DISALLOW_COPY_AND_ASSIGN(ComplexBSplineInterpolateImageFunction);
136 
137  unsigned int m_SplineOrder;
138 
141 
143 
145 }; // class
146 } // namespace
147 
148 #ifndef ITK_MANUAL_INSTANTIATION
149 #include "itkComplexBSplineInterpolateImageFunction.hxx"
150 #endif
151 
152 #endif
ComplexToRealImageFilter< InputImageType, InternalImageType > RealFilterType
Light weight base class for most itk classes.
InterpolateImageFunction< TImageType, TCoordRep > Superclass
Computes pixel-wise the imaginary part of a complex image.
ComplexToImaginaryImageFilter< InputImageType, InternalImageType > ImaginaryFilterType
Complex wrapper around BSplineInterpolateImageFunction.
BSplineInterpolateImageFunction< InternalImageType, TCoordRep, TCoefficientType > InterpolatorType
Base class for all image interpolaters.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Evaluates the B-Spline interpolation of an image. Spline order may be from 0 to 5.
Computes pixel-wise the real(x) part of a complex image.
Templated n-dimensional image class.
Definition: itkImage.h:75
Image< double, itkGetStaticConstMacro(ImageDimension) > InternalImageType