SimpleITK  1.0.1
sitkTileImageFilter.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 sitkTileImageFilter_h
19 #define sitkTileImageFilter_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 sitkMultiInputImageFilterTemplate.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 
54  : public ImageFilter<3>
55  {
56  public:
58 
62 
64  ~TileImageFilter();
65 
68 
69 
70 
71 
74  SITK_RETURN_SELF_TYPE_HEADER SetLayout ( const std::vector<uint32_t> & Layout ) { this->m_Layout = Layout; return *this; }
75 
78  std::vector<uint32_t> GetLayout() const { return this->m_Layout; }
79 
82  SITK_RETURN_SELF_TYPE_HEADER SetDefaultPixelValue ( double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue; return *this; }
83 
86  double GetDefaultPixelValue() const { return this->m_DefaultPixelValue; }
88  std::string GetName() const { return std::string ("TileImageFilter"); }
89 
91  std::string ToString() const;
92 
94  Image Execute ( const std::vector<Image> &images);
95  Image Execute ( const Image& image1 );
96  Image Execute ( const Image& image1, const Image& image2 );
97  Image Execute ( const Image& image1, const Image& image2, const Image& image3 );
98  Image Execute ( const Image& image1, const Image& image2, const Image& image3, const Image& image4 );
99  Image Execute ( const Image& image1, const Image& image2, const Image& image3, const Image& image4, const Image& image5 );
100 
101 
102 
104  Image Execute ( const std::vector<Image> &images, const std::vector<uint32_t> & layout, double defaultPixelValue );
105  Image Execute ( const Image& image1, const std::vector<uint32_t> & layout, double defaultPixelValue );
106  Image Execute ( const Image& image1, const Image& image2, const std::vector<uint32_t> & layout, double defaultPixelValue );
107  Image Execute ( const Image& image1, const Image& image2, const Image& image3, const std::vector<uint32_t> & layout, double defaultPixelValue );
108  Image Execute ( const Image& image1, const Image& image2, const Image& image3, const Image& image4, const std::vector<uint32_t> & layout, double defaultPixelValue );
109  Image Execute ( const Image& image1, const Image& image2, const Image& image3, const Image& image4, const Image& image5, const std::vector<uint32_t> & layout, double defaultPixelValue );
110 
111 
112 
113 
114  private:
115 
118  typedef Image (Self::*MemberFunctionType)( const std::vector<Image> & );
119  template <class TImageType> Image ExecuteInternal ( const std::vector<Image> &images );
120 
121 
122 
123  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
124 
125  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
126 
127 
128  std::vector<uint32_t> m_Layout;
130  };
131 
132 
142  SITKBasicFilters_EXPORT Image Tile ( const std::vector<Image> &images , const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
143 
144  SITKBasicFilters_EXPORT Image Tile ( const Image& image1, const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
145  SITKBasicFilters_EXPORT Image Tile ( const Image& image1, const Image& image2, const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
146  SITKBasicFilters_EXPORT Image Tile ( const Image& image1, const Image& image2, const Image& image3, const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
147  SITKBasicFilters_EXPORT Image Tile ( const Image& image1, const Image& image2, const Image& image3, const Image& image4, const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
148  SITKBasicFilters_EXPORT Image Tile ( const Image& image1, const Image& image2, const Image& image3, const Image& image4, const Image& image5, const std::vector<uint32_t> & layout = std::vector<uint32_t>(3, 100), double defaultPixelValue = 0.0 );
149 
152 }
153 }
154 #endif
Image Tile(const std::vector< Image > &images, const std::vector< uint32_t > &layout=std::vector< uint32_t >(3, 100), double defaultPixelValue=0.0)
Tile multiple input images into a single output image.
#define SITKBasicFilters_EXPORT
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
std::vector< uint32_t > m_Layout
std::vector< uint32_t > GetLayout() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BasicPixelIDTypeList PixelIDTypeList
The main Image class for SimpleITK.
Definition: sitkImage.h:54
Tile multiple input images into a single output image.
Self & SetDefaultPixelValue(double DefaultPixelValue)
Self & SetLayout(const std::vector< uint32_t > &Layout)
The base interface for SimpleITK filters that take one input image.