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,
52 SITK_RETURN_SELF_TYPE_HEADER SetHashFunction ( HashFunction hashFunction );
53 HashFunction GetHashFunction ()
const;
56 std::string
GetName()
const {
return std::string (
"Hash"); }
59 std::string ToString()
const;
61 std::string Execute (
const Image& );
67 template <
class TImageType> std::string ExecuteInternal (
const Image& image );
68 template <
class TImageType> std::string ExecuteInternalLabelImage (
const Image& image );
74 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 main 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