SimpleITK  1.0.1
sitkVectorIndexSelectionCastImageFilter.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 sitkVectorIndexSelectionCastImageFilter_h
19 #define sitkVectorIndexSelectionCastImageFilter_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 
54  public:
56 
60 
63 
66 
67 
68 
72  SITK_RETURN_SELF_TYPE_HEADER SetIndex ( unsigned int Index ) { this->m_Index = Index; return *this; }
73 
76  unsigned int GetIndex() const { return this->m_Index; }
77 
81  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
82 
86  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }
88  std::string GetName() const { return std::string ("VectorIndexSelectionCastImageFilter"); }
89 
91  std::string ToString() const;
92 
93 
95  Image Execute ( const Image& image1 );
96 
97 
99  Image Execute ( const Image& image1, unsigned int index, PixelIDValueEnum outputPixelType );
100 
101 
102  private:
104  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
105 
106  friend struct detail::DualExecuteInternalAddressor<MemberFunctionType>;
107  template <class TImageType1, class TImageType2> Image DualExecuteInternal ( const Image& image1 );
108 
109 
110  nsstd::auto_ptr<detail::DualMemberFunctionFactory<MemberFunctionType> > m_DualMemberFactory;
111 
112 
113 
114  /* */
115  unsigned int m_Index;
117  };
118 
119 
120 
129  SITKBasicFilters_EXPORT Image VectorIndexSelectionCast ( const Image& image1, unsigned int index = 0u, PixelIDValueEnum outputPixelType = itk::simple::sitkUnknown );
130 
131  }
132 }
133 #endif
#define SITKBasicFilters_EXPORT
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
PixelIDValueEnum
Enumerated values of pixelIDs.
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type of the scalar component to extract.
Image VectorIndexSelectionCast(const Image &image1, unsigned int index=0u, PixelIDValueEnum outputPixelType=itk::simple::sitkUnknown)
Extracts the selected index of the vector that is the input pixel type.
Extracts the selected index of the vector that is the input pixel type.
The main Image class for SimpleITK.
Definition: sitkImage.h:54
typelist::MakeTypeList< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > >::Type VectorPixelIDTypeList
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
The base interface for SimpleITK filters that take one input image.