18 #ifndef sitkCastImageFilter_h
19 #define sitkCastImageFilter_h
60 std::string
GetName()
const {
return std::string (
"CastImageFilter"); }
63 std::string ToString()
const;
81 template<
typename TImageType,
typename TOutputImageType>
82 Image ExecuteInternalCast(
const Image& inImage );
84 template<
typename TImageType,
typename TOutputImageType>
85 Image ExecuteInternalToVector(
const Image& inImage );
87 template<
typename TImageType,
typename TOutputImageType>
88 Image ExecuteInternalToLabel(
const Image& inImage );
90 template<
typename TImageType,
typename TOutputImageType>
91 Image ExecuteInternalLabelToImage(
const Image& inImage );
100 template <
class TMemberFunctionPo
inter >
103 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
105 template<
typename TImageType1,
typename TImageType2 >
106 TMemberFunctionPointer operator() (
void )
const
108 return &ObjectType::template ExecuteInternalCast< TImageType1, TImageType2 >;
115 template <
class TMemberFunctionPo
inter >
118 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
120 template<
typename TImageType1,
typename TImageType2 >
121 TMemberFunctionPointer operator() (
void )
const
123 return &ObjectType::template ExecuteInternalToVector< TImageType1, TImageType2 >;
130 template <
class TMemberFunctionPo
inter >
133 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
135 template<
typename TImageType1,
typename TImageType2 >
136 TMemberFunctionPointer operator() (
void )
const
138 return &ObjectType::template ExecuteInternalToLabel< TImageType1, TImageType2 >;
145 template <
class TMemberFunctionPo
inter >
148 typedef typename ::detail::FunctionTraits<TMemberFunctionPointer>::ClassType
ObjectType;
150 template<
typename TImageType1,
typename TImageType2 >
151 TMemberFunctionPointer operator() (
void )
const
153 return &ObjectType::template ExecuteInternalLabelToImage< TImageType1, TImageType2 >;
164 void RegisterMemberFactory2();
165 void RegisterMemberFactory2v();
166 void RegisterMemberFactory2l();
167 void RegisterMemberFactory3();
168 void RegisterMemberFactory3v();
169 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 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.