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.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkImageFilter.h"
31#include "sitkBasicFilters.h"
33
34namespace itk::simple {
35
50public:
52
55
59
62
63
64
65
69 void
70 SetIndex(unsigned int Index )
71 { this->m_Index = Index; }
72
74 unsigned int
75 GetIndex() const { return this->m_Index; }
76
77
81 void
83 { this->m_OutputPixelType = OutputPixelType; }
84
88 GetOutputPixelType() const { return this->m_OutputPixelType; }
89
90
92 std::string GetName() const { return std::string("VectorIndexSelectionCastImageFilter"); }
93
95 std::string ToString() const;
96
97
99#ifndef SWIG
100 Image Execute(Image&& image1);
101#endif
102 Image Execute(const Image &image1);
103
104private:
105
107 using MemberFunctionType = Image (Self::*)(const Image &image1);
108
110 template <class TImageType1, class TImageType2> Image DualExecuteInternal(const Image &image1);
111
112
114
115
116
117 unsigned int m_Index{ 0u };
118
120
121
122
123
124
125
126
127 bool m_InPlace{false};
128
129};
130
131
140#ifndef SWIG
142 Image&& image1, unsigned int index = 0u, PixelIDValueEnum outputPixelType = itk::simple::sitkUnknown
143);
144
145
146#endif
148 const Image &image1, unsigned int index = 0u, PixelIDValueEnum outputPixelType = itk::simple::sitkUnknown
149);
150
152
153}
154#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
static const detail::DualMemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Image DualExecuteInternal(const Image &image1)
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type of the scalar component to extract.
A class used to instantiate and generate function objects of templated member functions with two temp...
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.
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
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT