SimpleITK  2.0.0rc1.post255
sitkInverseDisplacementFieldImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright NumFOCUS
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 
68  SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<uint32_t> Size ) { this->m_Size = std::move(Size); return *this; }
69 
73  std::vector<uint32_t> GetSize() const { return this->m_Size; }\
74 
78  SITK_RETURN_SELF_TYPE_HEADER SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin); return *this; }
79 
83  std::vector<double> GetOutputOrigin() const { return this->m_OutputOrigin; }\
84 
88  SITK_RETURN_SELF_TYPE_HEADER SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing); return *this; }
89 
93  std::vector<double> GetOutputSpacing() const { return this->m_OutputSpacing; }\
94 
98  SITK_RETURN_SELF_TYPE_HEADER SetSubsamplingFactor ( unsigned int SubsamplingFactor ) { this->m_SubsamplingFactor = SubsamplingFactor; return *this; }
99 
103  unsigned int GetSubsamplingFactor() const { return this->m_SubsamplingFactor; }
104 
106  std::string GetName() const { return std::string ("InverseDisplacementFieldImageFilter"); }
107 
109  std::string ToString() const;
110 
111 
114  Image Execute ( const Image& image1 );
115 
116 
118  void SetReferenceImage(const Image & refImage );
119 
120  private:
121 
124  using MemberFunctionType = Image (Self::*)( const Image& image1 );
125  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
126 
127 
129 
130  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
131 
132 
133  /* */
134  std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
135 
136  /* */
137  std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
138 
139  /* */
140  std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
141 
142  unsigned int m_SubsamplingFactor{16u};
143 
144 
145 
146  };
147 
158  SITKBasicFilters_EXPORT Image InverseDisplacementField ( const Image& image1, std::vector<uint32_t> size = std::vector<uint32_t>(3, 0), std::vector<double> outputOrigin = std::vector<double>(3, 0.0), std::vector<double> outputSpacing = std::vector<double>(3, 1.0), unsigned int subsamplingFactor = 16u );
159 
161  }
162 }
163 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::Size
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::InverseDisplacementFieldImageFilter::PixelIDTypeList
RealVectorPixelIDTypeList PixelIDTypeList
Definition: sitkInverseDisplacementFieldImageFilter.h:62
itk::simple::InverseDisplacementFieldImageFilter::SetSubsamplingFactor
Self & SetSubsamplingFactor(unsigned int SubsamplingFactor)
Definition: sitkInverseDisplacementFieldImageFilter.h:98
itk::simple::InverseDisplacementFieldImageFilter::SetOutputSpacing
Self & SetOutputSpacing(std::vector< double > OutputSpacing)
Definition: sitkInverseDisplacementFieldImageFilter.h:88
sitkImageFilter.h
itk::simple::InverseDisplacementFieldImageFilter::GetSubsamplingFactor
unsigned int GetSubsamplingFactor() const
Definition: sitkInverseDisplacementFieldImageFilter.h:103
itk::simple::InverseDisplacementFieldImageFilter::GetOutputSpacing
std::vector< double > GetOutputSpacing() const
Definition: sitkInverseDisplacementFieldImageFilter.h:93
itk::simple::InverseDisplacementFieldImageFilter::SetSize
Self & SetSize(std::vector< uint32_t > Size)
Definition: sitkInverseDisplacementFieldImageFilter.h:68
itk::simple::InverseDisplacementFieldImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkInverseDisplacementFieldImageFilter.h:130
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::InverseDisplacementFieldImageFilter::GetSize
std::vector< uint32_t > GetSize() const
Definition: sitkInverseDisplacementFieldImageFilter.h:73
itk::simple::InverseDisplacementFieldImageFilter::GetOutputOrigin
std::vector< double > GetOutputOrigin() const
Definition: sitkInverseDisplacementFieldImageFilter.h:83
itk::simple::InverseDisplacementFieldImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkInverseDisplacementFieldImageFilter.h:124
itk
itk::simple::InverseDisplacementFieldImageFilter::SetOutputOrigin
Self & SetOutputOrigin(std::vector< double > OutputOrigin)
Definition: sitkInverseDisplacementFieldImageFilter.h:78
itk::simple::InverseDisplacementFieldImageFilter
Computes the inverse of a displacement field.
Definition: sitkInverseDisplacementFieldImageFilter.h:50
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::InverseDisplacementField
Image InverseDisplacementField(const Image &image1, std::vector< uint32_t > size=std::vector< uint32_t >(3, 0), std::vector< double > outputOrigin=std::vector< double >(3, 0.0), std::vector< double > outputSpacing=std::vector< double >(3, 1.0), unsigned int subsamplingFactor=16u)
Computes the inverse of a displacement field.
itk::simple::RealVectorPixelIDTypeList
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:142
itk::simple::InverseDisplacementFieldImageFilter::GetName
std::string GetName() const
Definition: sitkInverseDisplacementFieldImageFilter.h:106