SimpleITK  1.1.0
sitkResampleImageFilter.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 sitkResampleImageFilter_h
19 #define sitkResampleImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkDualImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkImageFilter.h"
31 #include "sitkBasicFilters.h"
32 
33 namespace itk {
34  namespace simple {
35 
64  public:
66 
68  virtual ~ResampleImageFilter();
69 
73 
76 
77 
78 
82  SITK_RETURN_SELF_TYPE_HEADER SetSize ( const std::vector<uint32_t> & Size ) { this->m_Size = Size; return *this; }
83 
87  std::vector<uint32_t> GetSize() const { return this->m_Size; }
88 
92  SITK_RETURN_SELF_TYPE_HEADER SetTransform ( Transform Transform ) { this->m_Transform = Transform; return *this; }
93 
97  Transform GetTransform() const { return this->m_Transform; }
98 
102  SITK_RETURN_SELF_TYPE_HEADER SetInterpolator ( InterpolatorEnum Interpolator ) { this->m_Interpolator = Interpolator; return *this; }
103 
107  InterpolatorEnum GetInterpolator() const { return this->m_Interpolator; }
108 
112  SITK_RETURN_SELF_TYPE_HEADER SetOutputOrigin ( const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin; return *this; }
113 
117  std::vector<double> GetOutputOrigin() const { return this->m_OutputOrigin; }
118 
122  SITK_RETURN_SELF_TYPE_HEADER SetOutputSpacing ( const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = OutputSpacing; return *this; }
123 
127  std::vector<double> GetOutputSpacing() const { return this->m_OutputSpacing; }
128 
132  SITK_RETURN_SELF_TYPE_HEADER SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection; return *this; }
133 
137  std::vector<double> GetOutputDirection() const { return this->m_OutputDirection; }
138 
142  SITK_RETURN_SELF_TYPE_HEADER SetDefaultPixelValue ( double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue; return *this; }
143 
147  double GetDefaultPixelValue() const { return this->m_DefaultPixelValue; }
148 
152  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
153 
157  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }
159  std::string GetName() const { return std::string ("ResampleImageFilter"); }
160 
162  std::string ToString() const;
163 
164 
166  Image Execute ( const Image& image1 );
167 
168 
170  Image Execute ( const Image& image1, const std::vector<uint32_t> & size, Transform transform, InterpolatorEnum interpolator, const std::vector<double> & outputOrigin, const std::vector<double> & outputSpacing, std::vector<double> outputDirection, double defaultPixelValue, PixelIDValueEnum outputPixelType );
171 
172 
174  void SetReferenceImage(const Image & refImage );
175 
176 
177  private:
179  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
180 
181  friend struct detail::DualExecuteInternalAddressor<MemberFunctionType>;
182  template <class TImageType1, class TImageType2> Image DualExecuteInternal ( const Image& image1 );
183  friend struct detail::DualExecuteInternalVectorAddressor<MemberFunctionType>;
184  template <class TImageType1, class TImageType2> Image DualExecuteInternalVector ( const Image& image1 );
185 
186  nsstd::auto_ptr<detail::DualMemberFunctionFactory<MemberFunctionType> > m_DualMemberFactory;
187 
188 
189 
190  /* */
191  std::vector<uint32_t> m_Size;
193  /* */
195  /* */
196  std::vector<double> m_OutputOrigin;
197  /* */
198  std::vector<double> m_OutputSpacing;
199  /* Passing a zero sized array, defaults to identiy matrix. The size of the array must exactly match the direction matrix for the dimension of the image. */
200  std::vector<double> m_OutputDirection;
203  };
204 
205 
206 
207  }
208 }
209 #endif
itk::simple::Image
The main Image class for SimpleITK.
Definition: sitkImage.h:54
itk::simple::ResampleImageFilter::GetOutputDirection
std::vector< double > GetOutputDirection() const
Definition: sitkResampleImageFilter.h:137
itk::simple::ResampleImageFilter::GetOutputOrigin
std::vector< double > GetOutputOrigin() const
Definition: sitkResampleImageFilter.h:117
sitkBasicFilters.h
itk::simple::ResampleImageFilter::GetName
std::string GetName() const
Definition: sitkResampleImageFilter.h:159
itk::simple::InterpolatorEnum
InterpolatorEnum
Definition: sitkInterpolator.h:30
itk::simple::ResampleImageFilter::SetSize
Self & SetSize(const std::vector< uint32_t > &Size)
Definition: sitkResampleImageFilter.h:82
itk::Size
itk::simple::Transform
A simplified wrapper around a variety of ITK transforms.
Definition: sitkTransform.h:84
itk::simple::ResampleImageFilter::m_Size
std::vector< uint32_t > m_Size
Definition: sitkResampleImageFilter.h:191
itk::simple::ResampleImageFilter::m_OutputOrigin
std::vector< double > m_OutputOrigin
Definition: sitkResampleImageFilter.h:196
itk::simple::ResampleImageFilter::GetTransform
Transform GetTransform() const
Definition: sitkResampleImageFilter.h:97
itk::simple::ResampleImageFilter::SetDefaultPixelValue
Self & SetDefaultPixelValue(double DefaultPixelValue)
Definition: sitkResampleImageFilter.h:142
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:82
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::ResampleImageFilter::m_OutputPixelType
PixelIDValueEnum m_OutputPixelType
Definition: sitkResampleImageFilter.h:202
itk::simple::ResampleImageFilter::GetOutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Definition: sitkResampleImageFilter.h:157
itk::simple::ResampleImageFilter::Self
ResampleImageFilter Self
Definition: sitkResampleImageFilter.h:65
itk::simple::ResampleImageFilter::SetOutputOrigin
Self & SetOutputOrigin(const std::vector< double > &OutputOrigin)
Definition: sitkResampleImageFilter.h:112
itk::simple::detail::DualExecuteInternalVectorAddressor
Definition: sitkDetail.h:75
itk::simple::ResampleImageFilter::m_DualMemberFactory
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Definition: sitkResampleImageFilter.h:186
itk::simple::ResampleImageFilter
Resample an image via a coordinate transform.
Definition: sitkResampleImageFilter.h:63
sitkDualMemberFunctionFactory.h
itk::simple::ResampleImageFilter::GetDefaultPixelValue
double GetDefaultPixelValue() const
Definition: sitkResampleImageFilter.h:147
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:50
itk::simple::ResampleImageFilter::m_DefaultPixelValue
double m_DefaultPixelValue
Definition: sitkResampleImageFilter.h:201
itk::simple::ResampleImageFilter::m_Transform
Transform m_Transform
Definition: sitkResampleImageFilter.h:192
itk::simple::ResampleImageFilter::m_Interpolator
InterpolatorEnum m_Interpolator
Definition: sitkResampleImageFilter.h:194
itk::simple::ResampleImageFilter::SetTransform
Self & SetTransform(Transform Transform)
Definition: sitkResampleImageFilter.h:92
itk::simple::ResampleImageFilter::GetOutputSpacing
std::vector< double > GetOutputSpacing() const
Definition: sitkResampleImageFilter.h:127
itk::simple::detail::DualExecuteInternalAddressor
Definition: sitkDetail.h:44
itk::simple::ResampleImageFilter::SetOutputPixelType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
Definition: sitkResampleImageFilter.h:152
itk::simple::ResampleImageFilter::GetInterpolator
InterpolatorEnum GetInterpolator() const
Definition: sitkResampleImageFilter.h:107
itk
itk::simple::ResampleImageFilter::SetOutputDirection
Self & SetOutputDirection(std::vector< double > OutputDirection)
Definition: sitkResampleImageFilter.h:132
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:37
itk::simple::ProcessObject
Base class for SimpleITK classes based on ProcessObject.
Definition: sitkProcessObject.h:50
itk::simple::ResampleImageFilter::m_OutputSpacing
std::vector< double > m_OutputSpacing
Definition: sitkResampleImageFilter.h:198
itk::simple::ResampleImageFilter::GetSize
std::vector< uint32_t > GetSize() const
Definition: sitkResampleImageFilter.h:87
itk::simple::ResampleImageFilter::m_OutputDirection
std::vector< double > m_OutputDirection
Definition: sitkResampleImageFilter.h:200
itk::simple::ResampleImageFilter::SetOutputSpacing
Self & SetOutputSpacing(const std::vector< double > &OutputSpacing)
Definition: sitkResampleImageFilter.h:122
itk::simple::ResampleImageFilter::SetInterpolator
Self & SetInterpolator(InterpolatorEnum Interpolator)
Definition: sitkResampleImageFilter.h:102
itk::simple::ResampleImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkResampleImageFilter.h:75