go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedRayCastInterpolateImageFunction.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 /*=========================================================================
19 
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkAdvancedRayCastInterpolateImageFunction.h,v $
22 Language: C++
23 Date: $Date: 2009-04-23 03:53:36 $
24 Version: $Revision: 1.17 $
25 
26 Copyright (c) Insight Software Consortium. All rights reserved.
27 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
28 
29 This software is distributed WITHOUT ANY WARRANTY; without even
30 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
31 PURPOSE. See the above copyright notices for more information.
32 
33 =========================================================================*/
34 #ifndef __itkAdvancedRayCastInterpolateImageFunction_h
35 #define __itkAdvancedRayCastInterpolateImageFunction_h
36 
37 #include "itkInterpolateImageFunction.h"
38 #include "itkTransform.h"
39 #include "itkVector.h"
40 
41 namespace itk
42 {
43 
55 template< class TInputImage, class TCoordRep = double >
57  public InterpolateImageFunction< TInputImage, TCoordRep >
58 {
59 public:
60 
63  typedef InterpolateImageFunction< TInputImage, TCoordRep > Superclass;
65  typedef SmartPointer< const Self > ConstPointer;
66 
68  itkStaticConstMacro( InputImageDimension, unsigned int,
69  TInputImage::ImageDimension );
70 
75  typedef Transform< TCoordRep, InputImageDimension, InputImageDimension > TransformType;
76 
77  typedef typename TransformType::Pointer TransformPointer;
78  typedef typename TransformType::InputPointType InputPointType;
79  typedef typename TransformType::OutputPointType OutputPointType;
80  typedef typename TransformType::ParametersType TransformParametersType;
81  typedef typename TransformType::JacobianType TransformJacobianType;
82 
83  typedef typename Superclass::InputPixelType PixelType;
84 
85  typedef typename TInputImage::SizeType SizeType;
86 
87  typedef Vector< TCoordRep, InputImageDimension > DirectionType;
88 
90  typedef InterpolateImageFunction< TInputImage, TCoordRep > InterpolatorType;
91 
92  typedef typename InterpolatorType::Pointer InterpolatorPointer;
93 
95  itkTypeMacro( AdvancedRayCastInterpolateImageFunction, InterpolateImageFunction );
96 
98  itkNewMacro( Self );
99 
101  typedef typename Superclass::OutputType OutputType;
102 
104  typedef typename Superclass::InputImageType InputImageType;
105 
107  typedef typename Superclass::RealType RealType;
108 
110  itkStaticConstMacro( ImageDimension, unsigned int, Superclass::ImageDimension );
111 
113  typedef typename Superclass::PointType PointType;
114 
116  typedef typename Superclass::IndexType IndexType;
117 
119  typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
120 
131  virtual OutputType Evaluate( const PointType & point ) const;
132 
145  const ContinuousIndexType & index ) const;
146 
148  itkSetObjectMacro( Transform, TransformType );
150  itkGetObjectMacro( Transform, TransformType );
151 
153  itkSetObjectMacro( Interpolator, InterpolatorType );
155  itkGetObjectMacro( Interpolator, InterpolatorType );
156 
158  itkSetMacro( FocalPoint, InputPointType );
160  itkGetConstMacro( FocalPoint, InputPointType );
161 
163  itkSetMacro( Threshold, double );
165  itkGetConstMacro( Threshold, double );
166 
170  inline bool IsInsideBuffer( const PointType & ) const
171  {
172  return true;
173  }
174 
175 
176  bool IsInsideBuffer( const ContinuousIndexType & ) const
177  {
178  return true;
179  }
180 
181 
182  bool IsInsideBuffer( const IndexType & ) const
183  {
184  return true;
185  }
186 
187 
188 protected:
189 
192 
195 
197  void PrintSelf( std::ostream & os, Indent indent ) const;
198 
201 
204 
206  double m_Threshold;
207 
210 
211 private:
212 
213  AdvancedRayCastInterpolateImageFunction( const Self & ); // purposely not implemented
214  void operator=( const Self & ); // purposely not implemented
215 
216 };
217 
218 } // namespace itk
219 
220 #ifndef ITK_MANUAL_INSTANTIATION
221 #include "itkAdvancedRayCastInterpolateImageFunction.hxx"
222 #endif
223 
224 #endif
itk::AdvancedRayCastInterpolateImageFunction::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const
Print the object.
itk::AdvancedRayCastInterpolateImageFunction::DirectionType
Vector< TCoordRep, InputImageDimension > DirectionType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:87
itk::AdvancedRayCastInterpolateImageFunction::EvaluateAtContinuousIndex
virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const
itk::AdvancedRayCastInterpolateImageFunction::Self
AdvancedRayCastInterpolateImageFunction Self
Definition: itkAdvancedRayCastInterpolateImageFunction.h:62
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const PointType &) const
Definition: itkAdvancedRayCastInterpolateImageFunction.h:170
itk::AdvancedRayCastInterpolateImageFunction::Evaluate
virtual OutputType Evaluate(const PointType &point) const
Interpolate the image at a point position.
itk::AdvancedRayCastInterpolateImageFunction::InterpolatorPointer
InterpolatorType::Pointer InterpolatorPointer
Definition: itkAdvancedRayCastInterpolateImageFunction.h:92
SmartPointer< Self >
itk::AdvancedRayCastInterpolateImageFunction::InputPointType
TransformType::InputPointType InputPointType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:78
itk::AdvancedRayCastInterpolateImageFunction::TransformParametersType
TransformType::ParametersType TransformParametersType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:80
itk::AdvancedRayCastInterpolateImageFunction::operator=
void operator=(const Self &)
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const ContinuousIndexType &) const
Definition: itkAdvancedRayCastInterpolateImageFunction.h:176
itk::AdvancedRayCastInterpolateImageFunction::~AdvancedRayCastInterpolateImageFunction
~AdvancedRayCastInterpolateImageFunction()
Destructor.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:194
itk::AdvancedRayCastInterpolateImageFunction::InputImageType
Superclass::InputImageType InputImageType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:104
itk::AdvancedRayCastInterpolateImageFunction::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension)
itk::AdvancedRayCastInterpolateImageFunction::OutputPointType
TransformType::OutputPointType OutputPointType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:79
itk::AdvancedRayCastInterpolateImageFunction::IsInsideBuffer
bool IsInsideBuffer(const IndexType &) const
Definition: itkAdvancedRayCastInterpolateImageFunction.h:182
itk::AdvancedRayCastInterpolateImageFunction::m_Interpolator
InterpolatorPointer m_Interpolator
Pointer to the interpolator.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:209
itk::AdvancedRayCastInterpolateImageFunction
Projective interpolation of an image at specified positions.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:58
itk::AdvancedRayCastInterpolateImageFunction::SizeType
TInputImage::SizeType SizeType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:85
itk::AdvancedRayCastInterpolateImageFunction::ContinuousIndexType
Superclass::ContinuousIndexType ContinuousIndexType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:119
itk::AdvancedRayCastInterpolateImageFunction::OutputType
Superclass::OutputType OutputType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:98
itk::AdvancedRayCastInterpolateImageFunction::TransformType
Transform< TCoordRep, InputImageDimension, InputImageDimension > TransformType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:75
itk::AdvancedRayCastInterpolateImageFunction::RealType
Superclass::RealType RealType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:107
itk::AdvancedRayCastInterpolateImageFunction::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::AdvancedRayCastInterpolateImageFunction::Superclass
InterpolateImageFunction< TInputImage, TCoordRep > Superclass
Definition: itkAdvancedRayCastInterpolateImageFunction.h:63
itk::AdvancedRayCastInterpolateImageFunction::AdvancedRayCastInterpolateImageFunction
AdvancedRayCastInterpolateImageFunction()
Constructor.
itk::AdvancedRayCastInterpolateImageFunction::m_FocalPoint
InputPointType m_FocalPoint
The focal point or position of the ray source.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:203
itk::AdvancedRayCastInterpolateImageFunction::AdvancedRayCastInterpolateImageFunction
AdvancedRayCastInterpolateImageFunction(const Self &)
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::AdvancedRayCastInterpolateImageFunction::TransformPointer
TransformType::Pointer TransformPointer
Definition: itkAdvancedRayCastInterpolateImageFunction.h:77
itk::AdvancedRayCastInterpolateImageFunction::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAdvancedRayCastInterpolateImageFunction.h:65
itk::AdvancedRayCastInterpolateImageFunction::TransformJacobianType
TransformType::JacobianType TransformJacobianType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:81
itk::AdvancedRayCastInterpolateImageFunction::m_Transform
TransformPointer m_Transform
Transformation used to calculate the new focal point position.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:200
itk::AdvancedRayCastInterpolateImageFunction::PointType
Superclass::PointType PointType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:113
itk::AdvancedRayCastInterpolateImageFunction::Pointer
SmartPointer< Self > Pointer
Definition: itkAdvancedRayCastInterpolateImageFunction.h:64
itk::AdvancedRayCastInterpolateImageFunction::m_Threshold
double m_Threshold
The threshold above which voxels along the ray path are integrated.
Definition: itkAdvancedRayCastInterpolateImageFunction.h:206
itk::AdvancedRayCastInterpolateImageFunction::PixelType
Superclass::InputPixelType PixelType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:83
itk::AdvancedRayCastInterpolateImageFunction::IndexType
Superclass::IndexType IndexType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:116
itk::AdvancedRayCastInterpolateImageFunction::InterpolatorType
InterpolateImageFunction< TInputImage, TCoordRep > InterpolatorType
Definition: itkAdvancedRayCastInterpolateImageFunction.h:90


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo