18 #ifndef sitkHashImageFilter_h
19 #define sitkHashImageFilter_h
42 typedef std::string (Self::*MemberFunctionType)(
const Image& );
45 typedef typelist::Append<
46 typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList>::Type,
54 SITK_RETURN_SELF_TYPE_HEADER SetHashFunction ( HashFunction hashFunction );
55 HashFunction GetHashFunction ()
const;
58 std::string
GetName()
const {
return std::string (
"Hash"); }
61 std::string ToString()
const;
63 std::string Execute (
const Image& );
69 template <
class TImageType> std::string ExecuteInternal (
const Image& image );
70 template <
class TImageType> std::string ExecuteInternalLabelImage (
const Image& image );
76 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
#define SITKBasicFilters_EXPORT
std::string GetName() const
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type PixelIDTypeList
std::string Hash(const Image &image, HashImageFilter::HashFunction function=HashImageFilter::SHA1)
HashFunction m_HashFunction
The Image class for SimpleITK.
Base class for SimpleITK classes based on ProcessObject.
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
Compute the sha1 or md5 hash of an image.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory