SimpleITK  1.2.4
sitkInverseDisplacementFieldImageFilter.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 sitkInverseDisplacementFieldImageFilter_h
19 #define sitkInverseDisplacementFieldImageFilter_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 sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
51  public:
53 
56 
60 
63 
64 
65 
69  SITK_RETURN_SELF_TYPE_HEADER SetSize ( const std::vector<uint32_t> & Size ) { this->m_Size = Size; return *this; }
70 
74  std::vector<uint32_t> GetSize() const { return this->m_Size; }
75 
79  SITK_RETURN_SELF_TYPE_HEADER SetOutputOrigin ( const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin; return *this; }
80 
84  std::vector<double> GetOutputOrigin() const { return this->m_OutputOrigin; }
85 
89  SITK_RETURN_SELF_TYPE_HEADER SetOutputSpacing ( const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = OutputSpacing; return *this; }
90 
94  std::vector<double> GetOutputSpacing() const { return this->m_OutputSpacing; }
95 
99  SITK_RETURN_SELF_TYPE_HEADER SetSubsamplingFactor ( unsigned int SubsamplingFactor ) { this->m_SubsamplingFactor = SubsamplingFactor; return *this; }
100 
104  unsigned int GetSubsamplingFactor() const { return this->m_SubsamplingFactor; }
106  std::string GetName() const { return std::string ("InverseDisplacementFieldImageFilter"); }
107 
109  std::string ToString() const;
110 
111 
113  Image Execute ( const Image& image1 );
114 
115 
117  Image Execute ( const Image& image1, const std::vector<uint32_t> & size, const std::vector<double> & outputOrigin, const std::vector<double> & outputSpacing, unsigned int subsamplingFactor );
118 
119 
121  void SetReferenceImage(const Image & refImage );
122 
123  private:
124 
127  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
128  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
129 
130 
131  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
132 
133  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
134 
135 
136  /* */
137  std::vector<uint32_t> m_Size;
138  /* */
139  std::vector<double> m_OutputOrigin;
140  /* */
141  std::vector<double> m_OutputSpacing;
142  unsigned int m_SubsamplingFactor;
143 
144  };
145 
146 
155  SITKBasicFilters_EXPORT Image InverseDisplacementField ( const Image& image1, const std::vector<uint32_t> & size = std::vector<uint32_t>(3, 0), const std::vector<double> & outputOrigin = std::vector<double>(3, 0.0), const std::vector<double> & outputSpacing = std::vector<double>(3, 1.0), unsigned int subsamplingFactor = 16u );
156 
157  }
158 }
159 #endif
Self & SetOutputSpacing(const std::vector< double > &OutputSpacing)
#define SITKBasicFilters_EXPORT
Image InverseDisplacementField(const Image &image1, const std::vector< uint32_t > &size=std::vector< uint32_t >(3, 0), const std::vector< double > &outputOrigin=std::vector< double >(3, 0.0), const std::vector< double > &outputSpacing=std::vector< double >(3, 1.0), unsigned int subsamplingFactor=16u)
Computes the inverse of a displacement field.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetOutputOrigin(const std::vector< double > &OutputOrigin)
The Image class for SimpleITK.
Definition: sitkImage.h:78
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
The base interface for SimpleITK filters that take one input image.