18 #ifndef sitkDanielssonDistanceMapImageFilter_h
19 #define sitkDanielssonDistanceMapImageFilter_h
91 SITK_RETURN_SELF_TYPE_HEADER
SetInputIsBinary (
bool InputIsBinary ) { this->m_InputIsBinary = InputIsBinary;
return *
this; }
94 SITK_RETURN_SELF_TYPE_HEADER
InputIsBinaryOn() {
return this->SetInputIsBinary(
true); }
95 SITK_RETURN_SELF_TYPE_HEADER
InputIsBinaryOff() {
return this->SetInputIsBinary(
false); }
105 SITK_RETURN_SELF_TYPE_HEADER
SetSquaredDistance (
bool SquaredDistance ) { this->m_SquaredDistance = SquaredDistance;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
130 std::string
GetName()
const {
return std::string (
"DanielssonDistanceMapImageFilter"); }
133 std::string ToString()
const;
141 Image Execute (
const Image& image1,
bool inputIsBinary,
bool squaredDistance,
bool useImageSpacing );
147 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
148 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SquaredDistanceOff()
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
This filter computes the distance map of the input image as an approximation with pixel accuracy to t...
Self & InputIsBinaryOff()
#define SITKBasicFilters_EXPORT
DanielssonDistanceMapImageFilter Self
Self & SquaredDistanceOn()
Self & SetUseImageSpacing(bool UseImageSpacing)
bool GetSquaredDistance() const
bool GetInputIsBinary() const
bool GetUseImageSpacing() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & UseImageSpacingOff()
std::string GetName() const
Self & SetInputIsBinary(bool InputIsBinary)
The Image class for SimpleITK.
Image DanielssonDistanceMap(const Image &image1, bool inputIsBinary=false, bool squaredDistance=false, bool useImageSpacing=false)
This filter computes the distance map of the input image as an approximation with pixel accuracy to t...
IntegerPixelIDTypeList PixelIDTypeList
Self & UseImageSpacingOn()
Self & SetSquaredDistance(bool SquaredDistance)
The base interface for SimpleITK filters that take one input image.