18 #ifndef sitkMaskImageFilter_h
19 #define sitkMaskImageFilter_h
83 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
double OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetMaskingValue (
double MaskingValue ) { this->m_MaskingValue = MaskingValue;
return *
this; }
99 std::string
GetName()
const {
return std::string (
"MaskImageFilter"); }
102 std::string ToString()
const;
110 Image Execute (
const Image & image,
const Image & maskImage,
double outsideValue,
double maskingValue );
115 typedef Image (Self::*MemberFunctionType)(
const Image * image,
const Image * maskImage );
118 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * image,
const Image * maskImage );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
Image Mask(const Image &image, const Image &maskImage, double outsideValue=0, double maskingValue=0)
Mask an image with a mask.
Mask an image with a mask.
Self & SetOutsideValue(double OutsideValue)
Self & SetMaskingValue(double MaskingValue)
NonLabelPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
std::string GetName() const
The Image class for SimpleITK.
double GetMaskingValue() const
double GetOutsideValue() const
The base interface for SimpleITK filters that take one input image.