Go to the documentation of this file.
18 #ifndef sitkGradientMagnitudeImageFilter_h
19 #define sitkGradientMagnitudeImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
78 std::string
GetName()
const {
return std::string (
"GradientMagnitudeImageFilter"); }
81 std::string ToString()
const;
93 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
98 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
101 bool m_UseImageSpacing{
true};
The Image class for SimpleITK.
Computes the gradient magnitude of an image region at each pixel.
Image GradientMagnitude(const Image &image1, bool useImageSpacing=true)
Computes the gradient magnitude of an image region at each pixel.
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
std::string GetName() const
Self & SetUseImageSpacing(bool UseImageSpacing)
Self & UseImageSpacingOff()
Image(Self::*)(const Image &image1) MemberFunctionType
BasicPixelIDTypeList PixelIDTypeList
Self & UseImageSpacingOn()
#define SITKBasicFilters_EXPORT
bool GetUseImageSpacing() const
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.