SimpleITK  
sitkVectorIndexSelectionCastImageFilter.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 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::simple {
34 
47  public:
49 
52 
56 
59 
60 \
61 
65  SITK_RETURN_SELF_TYPE_HEADER SetIndex ( unsigned int Index ) { this->m_Index = Index; return *this; }
66 
69  unsigned int GetIndex() const { return this->m_Index; }\
70 
74  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
75 
79  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }
80 
82  std::string GetName() const { return std::string ("VectorIndexSelectionCastImageFilter"); }
83 
85  std::string ToString() const;
86 
87 
89 #ifndef SWIG
90  Image Execute ( Image&& image1 );
91 #endif
92  Image Execute ( const Image& image1 );
93 
94 
95  private:
97  using MemberFunctionType = Image (Self::*)( const Image& image1 );
98 
100  template <class TImageType1, class TImageType2> Image DualExecuteInternal ( const Image& image1 );
101 
102 
103  std::unique_ptr<detail::DualMemberFunctionFactory<MemberFunctionType> > m_DualMemberFactory;
104 
105 
106 
107  /* */
108  unsigned int m_Index{0u};
109 
111 
112 
113  bool m_InPlace{false};
114  };
115 
125 #ifndef SWIG
126  SITKBasicFilters_EXPORT Image VectorIndexSelectionCast ( Image&& image1, unsigned int index = 0u, PixelIDValueEnum outputPixelType = itk::simple::sitkUnknown );
127 #endif
128  SITKBasicFilters_EXPORT Image VectorIndexSelectionCast ( const Image& image1, unsigned int index = 0u, PixelIDValueEnum outputPixelType = itk::simple::sitkUnknown );
129 
131 }
132 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::VectorIndexSelectionCastImageFilter::SetIndex
Self & SetIndex(unsigned int Index)
Definition: sitkVectorIndexSelectionCastImageFilter.h:65
itk::Index
itk::simple::VectorPixelIDTypeList
typelist2::typelist< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > > VectorPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:136
itk::simple::VectorIndexSelectionCastImageFilter::SetOutputPixelType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type of the scalar component to extract.
Definition: sitkVectorIndexSelectionCastImageFilter.h:74
itk::simple::VectorIndexSelectionCastImageFilter::GetName
std::string GetName() const
Definition: sitkVectorIndexSelectionCastImageFilter.h:82
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:100
sitkImageFilter.h
itk::simple::VectorIndexSelectionCastImageFilter::m_DualMemberFactory
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Definition: sitkVectorIndexSelectionCastImageFilter.h:103
sitkDualMemberFunctionFactory.h
itk::simple::VectorIndexSelectionCast
Image VectorIndexSelectionCast(Image &&image1, unsigned int index=0u, PixelIDValueEnum outputPixelType=itk::simple::sitkUnknown)
Extracts the selected index of the vector that is the input pixel type.
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::detail::DualExecuteInternalAddressor
Definition: sitkDetail.h:42
itk::simple::VectorIndexSelectionCastImageFilter
Extracts the selected index of the vector that is the input pixel type.
Definition: sitkVectorIndexSelectionCastImageFilter.h:46
itk::simple::VectorIndexSelectionCastImageFilter::PixelIDTypeList
VectorPixelIDTypeList PixelIDTypeList
Definition: sitkVectorIndexSelectionCastImageFilter.h:58
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::VectorIndexSelectionCastImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkVectorIndexSelectionCastImageFilter.h:97
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::sitkUnknown
@ sitkUnknown
Definition: sitkPixelIDValues.h:102
itk::simple::VectorIndexSelectionCastImageFilter::GetIndex
unsigned int GetIndex() const
Definition: sitkVectorIndexSelectionCastImageFilter.h:69
itk::simple::VectorIndexSelectionCastImageFilter::GetOutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Definition: sitkVectorIndexSelectionCastImageFilter.h:79