SimpleITK  1.1.0
sitkPasteImageFilter.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 sitkPasteImageFilter_h
19 #define sitkPasteImageFilter_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 
55  virtual ~PasteImageFilter();
56 
60 
63 
64 
65 
68  SITK_RETURN_SELF_TYPE_HEADER SetSourceSize ( const std::vector<unsigned int> & SourceSize ) { this->m_SourceSize = SourceSize; return *this; }
69 
72  std::vector<unsigned int> GetSourceSize() const { return this->m_SourceSize; }
73 
76  SITK_RETURN_SELF_TYPE_HEADER SetSourceIndex ( const std::vector<int> & SourceIndex ) { this->m_SourceIndex = SourceIndex; return *this; }
77 
80  std::vector<int> GetSourceIndex() const { return this->m_SourceIndex; }
81 
85  SITK_RETURN_SELF_TYPE_HEADER SetDestinationIndex ( const std::vector<int> & DestinationIndex ) { this->m_DestinationIndex = DestinationIndex; return *this; }
86 
90  std::vector<int> GetDestinationIndex() const { return this->m_DestinationIndex; }
92  std::string GetName() const { return std::string ("PasteImageFilter"); }
93 
95  std::string ToString() const;
96 
97 
99  Image Execute ( const Image& image1, const Image& image2 );
100 
101 
103  Image Execute ( const Image& image1, const Image& image2, const std::vector<unsigned int> & sourceSize, const std::vector<int> & sourceIndex, const std::vector<int> & destinationIndex );
104 
105  private:
106 
109  typedef Image (Self::*MemberFunctionType)( const Image& image1, const Image& image2 );
110  template <class TImageType> Image ExecuteInternal ( const Image& image1, const Image& image2 );
111 
112 
113  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
114 
115  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
116 
117 
118  std::vector<unsigned int> m_SourceSize;
119  std::vector<int> m_SourceIndex;
120  std::vector<int> m_DestinationIndex;
121  };
122 
123 
132  SITKBasicFilters_EXPORT Image Paste ( const Image& image1, const Image& image2, const std::vector<unsigned int> & sourceSize = std::vector<unsigned int>(3, 1), const std::vector<int> & sourceIndex = std::vector<int>(3, 0), const std::vector<int> & destinationIndex = std::vector<int>(3, 0) );
133 
134  }
135 }
136 #endif
itk::simple::Image
The main Image class for SimpleITK.
Definition: sitkImage.h:54
itk::simple::PasteImageFilter::m_MemberFactory
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkPasteImageFilter.h:115
sitkBasicFilters.h
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::NonLabelPixelIDTypeList
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:180
itk::simple::PasteImageFilter::GetSourceIndex
std::vector< int > GetSourceIndex() const
Definition: sitkPasteImageFilter.h:80
itk::simple::PasteImageFilter::m_SourceIndex
std::vector< int > m_SourceIndex
Definition: sitkPasteImageFilter.h:119
itk::simple::PasteImageFilter::SetDestinationIndex
Self & SetDestinationIndex(const std::vector< int > &DestinationIndex)
Definition: sitkPasteImageFilter.h:85
itk::simple::PasteImageFilter::m_SourceSize
std::vector< unsigned int > m_SourceSize
Definition: sitkPasteImageFilter.h:118
itk::simple::PasteImageFilter::GetDestinationIndex
std::vector< int > GetDestinationIndex() const
Definition: sitkPasteImageFilter.h:90
sitkImageFilter.h
itk::simple::Paste
Image Paste(const Image &image1, const Image &image2, const std::vector< unsigned int > &sourceSize=std::vector< unsigned int >(3, 1), const std::vector< int > &sourceIndex=std::vector< int >(3, 0), const std::vector< int > &destinationIndex=std::vector< int >(3, 0))
Paste an image into another image.
itk::simple::PasteImageFilter::PixelIDTypeList
NonLabelPixelIDTypeList PixelIDTypeList
Definition: sitkPasteImageFilter.h:62
itk::simple::PasteImageFilter
Paste an image into another image.
Definition: sitkPasteImageFilter.h:50
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:50
itk::simple::PasteImageFilter::Self
PasteImageFilter Self
Definition: sitkPasteImageFilter.h:52
itk
itk::simple::PasteImageFilter::m_DestinationIndex
std::vector< int > m_DestinationIndex
Definition: sitkPasteImageFilter.h:120
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::PasteImageFilter::GetSourceSize
std::vector< unsigned int > GetSourceSize() const
Definition: sitkPasteImageFilter.h:72
itk::simple::PasteImageFilter::SetSourceIndex
Self & SetSourceIndex(const std::vector< int > &SourceIndex)
Definition: sitkPasteImageFilter.h:76
itk::simple::PasteImageFilter::SetSourceSize
Self & SetSourceSize(const std::vector< unsigned int > &SourceSize)
Definition: sitkPasteImageFilter.h:68
itk::simple::PasteImageFilter::GetName
std::string GetName() const
Definition: sitkPasteImageFilter.h:92