18 #ifndef sitkGradientMagnitudeImageFilter_h
19 #define sitkGradientMagnitudeImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
84 std::string
GetName()
const {
return std::string (
"GradientMagnitudeImageFilter"); }
87 std::string ToString()
const;
95 Image Execute (
const Image& image1,
bool useImageSpacing );
102 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
103 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
GradientMagnitudeImageFilter Self
Image GradientMagnitude(const Image &image1, bool useImageSpacing=true)
Computes the gradient magnitude of an image region at each pixel.
#define SITKBasicFilters_EXPORT
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Computes the gradient magnitude of an image region at each pixel.
std::string GetName() const
Self & UseImageSpacingOn()
The main Image class for SimpleITK.
Self & UseImageSpacingOff()
Self & SetUseImageSpacing(bool UseImageSpacing)
bool GetUseImageSpacing() const
The base interface for SimpleITK filters that take one input image.