18 #ifndef sitkCastImageFilter_h
19 #define sitkCastImageFilter_h
58 std::string
GetName()
const {
return std::string (
"CastImageFilter"); }
61 std::string ToString()
const;
79 template<
typename TImageType,
typename TOutputImageType>
80 Image ExecuteInternalCast(
const Image& inImage );
82 template<
typename TImageType,
typename TOutputImageType>
83 Image ExecuteInternalToVector(
const Image& inImage );
85 template<
typename TImageType,
typename TOutputImageType>
86 Image ExecuteInternalToLabel(
const Image& inImage );
88 template<
typename TImageType,
typename TOutputImageType>
89 Image ExecuteInternalLabelToImage(
const Image& inImage );
98 template <
class TMemberFunctionPo
inter >
101 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
103 template<
typename TImageType1,
typename TImageType2 >
104 TMemberFunctionPointer operator() (
void )
const
106 return &ObjectType::template ExecuteInternalCast< TImageType1, TImageType2 >;
113 template <
class TMemberFunctionPo
inter >
116 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
118 template<
typename TImageType1,
typename TImageType2 >
119 TMemberFunctionPointer operator() (
void )
const
121 return &ObjectType::template ExecuteInternalToVector< TImageType1, TImageType2 >;
128 template <
class TMemberFunctionPo
inter >
131 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
133 template<
typename TImageType1,
typename TImageType2 >
134 TMemberFunctionPointer operator() (
void )
const
136 return &ObjectType::template ExecuteInternalToLabel< TImageType1, TImageType2 >;
143 template <
class TMemberFunctionPo
inter >
146 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
148 template<
typename TImageType1,
typename TImageType2 >
149 TMemberFunctionPointer operator() (
void )
const
151 return &ObjectType::template ExecuteInternalLabelToImage< TImageType1, TImageType2 >;
162 void RegisterMemberFactory2();
163 void RegisterMemberFactory2v();
164 void RegisterMemberFactory2l();
165 void RegisterMemberFactory3();
166 void RegisterMemberFactory3v();
167 void RegisterMemberFactory3l();
#define SITKBasicFilters_EXPORT
::detail::FunctionTraits< TMemberFunctionPointer >::ClassType ObjectType
std::string GetName() const
PixelIDValueEnum
Enumerated values of pixelIDs.
Image Cast(const Image &image, PixelIDValueEnum pixelID)
::detail::FunctionTraits< TMemberFunctionPointer >::ClassType ObjectType
PixelIDValueEnum m_OutputPixelType
::detail::FunctionTraits< TMemberFunctionPointer >::ClassType ObjectType
The main Image class for SimpleITK.
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
A hybrid cast image filter to convert images to other types of images.
::detail::FunctionTraits< TMemberFunctionPointer >::ClassType ObjectType
The base interface for SimpleITK filters that take one input image.