ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkRayCastInterpolateImageFunction.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 itkRayCastInterpolateImageFunction_h
19 #define itkRayCastInterpolateImageFunction_h
20 
22 #include "itkTransform.h"
23 
24 namespace itk
25 {
38 template< typename TInputImage, typename TCoordRep = double >
39 class ITK_TEMPLATE_EXPORT RayCastInterpolateImageFunction:
40  public InterpolateImageFunction< TInputImage, TCoordRep >
41 {
42 public:
48 
50  itkStaticConstMacro(InputImageDimension, unsigned int,
51  TInputImage::ImageDimension);
52 
58 
64 
65  typedef typename Superclass::InputPixelType PixelType;
66 
67  typedef typename TInputImage::SizeType SizeType;
68 
70 
73 
75 
78 
80  itkNewMacro(Self);
81 
83  typedef typename Superclass::OutputType OutputType;
84 
86  typedef typename Superclass::InputImageType InputImageType;
87 
89  typedef typename Superclass::RealType RealType;
90 
92  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
93 
95  typedef typename Superclass::PointType PointType;
96 
98  typedef typename Superclass::IndexType IndexType;
99 
101  typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
102 
113  virtual OutputType Evaluate(const PointType & point) const ITK_OVERRIDE;
114 
126  virtual OutputType EvaluateAtContinuousIndex(
127  const ContinuousIndexType & index) const ITK_OVERRIDE;
128 
132  itkSetObjectMacro(Transform, TransformType);
133  itkGetModifiableObjectMacro(Transform, TransformType);
135 
137  itkSetObjectMacro(Interpolator, InterpolatorType);
138 
140  itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
141 
143  itkSetMacro(FocalPoint, InputPointType);
144  itkGetConstMacro(FocalPoint, InputPointType);
146 
148  itkSetMacro(Threshold, double);
149  itkGetConstMacro(Threshold, double);
151 
155  bool IsInsideBuffer(const PointType &) const ITK_OVERRIDE
156  {
157  return true;
158  }
159 
160  bool IsInsideBuffer(const ContinuousIndexType &) const ITK_OVERRIDE
161  {
162  return true;
163  }
164 
165  bool IsInsideBuffer(const IndexType &) const ITK_OVERRIDE
166  {
167  return true;
168  }
169 
170 protected:
172  virtual ~RayCastInterpolateImageFunction() ITK_OVERRIDE {}
173 
174  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
175 
178  double m_Threshold;
180 
181 private:
182  ITK_DISALLOW_COPY_AND_ASSIGN(RayCastInterpolateImageFunction);
183 };
184 } // namespace itk
185 
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkRayCastInterpolateImageFunction.hxx"
188 #endif
189 
190 #endif
InterpolateImageFunction< TInputImage, TCoordRep > InterpolatorType
Light weight base class for most itk classes.
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
Array2D class representing a 2D array with size defined at construction time.
Definition: itkArray2D.h:45
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
InterpolateImageFunction< TInputImage, TCoordRep > Superclass
Class to hold and manage different parameter types used during optimization.
bool IsInsideBuffer(const PointType &) const override
Superclass::ContinuousIndexType ContinuousIndexType
Base class for all image interpolaters.
Projective interpolation of an image at specified positions.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
bool IsInsideBuffer(const ContinuousIndexType &) const override
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:52
bool IsInsideBuffer(const IndexType &) const override