Go to the documentation of this file.
18 #ifndef sitkGradientImageFilter_h
19 #define sitkGradientImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageDirection (
bool UseImageDirection ) { this->m_UseImageDirection = UseImageDirection;
return *
this; }
98 std::string
GetName()
const {
return std::string (
"GradientImageFilter"); }
101 std::string ToString()
const;
113 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
121 bool m_UseImageSpacing{
true};
123 bool m_UseImageDirection{
false};
The Image class for SimpleITK.
Self & UseImageDirectionOff()
Computes the gradient of an image using directional derivatives.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Self & UseImageSpacingOn()
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
Image Gradient(const Image &image1, bool useImageSpacing=true, bool useImageDirection=false)
Computes the gradient of an image using directional derivatives.
Self & SetUseImageSpacing(bool UseImageSpacing)
BasicPixelIDTypeList PixelIDTypeList
Image(Self::*)(const Image &image1) MemberFunctionType
bool GetUseImageSpacing() const
Self & UseImageSpacingOff()
#define SITKBasicFilters_EXPORT
Self & SetUseImageDirection(bool UseImageDirection)
The base interface for SimpleITK filters that take one input image.
Self & UseImageDirectionOn()
bool GetUseImageDirection() const