18 #ifndef sitkClampImageFilter_h
19 #define sitkClampImageFilter_h
83 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBound (
double LowerBound ) { this->m_LowerBound = LowerBound;
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBound (
double UpperBound ) { this->m_UpperBound = UpperBound;
return *
this; }
97 std::string
GetName()
const {
return std::string (
"ClampImageFilter"); }
100 std::string ToString()
const;
113 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
116 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
PixelIDValueEnum m_OutputPixelType
#define SITKBasicFilters_EXPORT
Casts input pixels to output pixel type and clamps the output pixel values to a specified range...
BasicPixelIDTypeList PixelIDTypeList
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
Self & SetLowerBound(double LowerBound)
PixelIDValueEnum
Enumerated values of pixelIDs.
Image Clamp(const Image &image1, PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, double lowerBound=-std::numeric_limits< double >::max(), double upperBound=std::numeric_limits< double >::max())
Casts input pixels to output pixel type and clamps the output pixel values to a specified range...
PixelIDValueEnum GetOutputPixelType() const
The main Image class for SimpleITK.
double GetLowerBound() const
double GetUpperBound() const
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Self & SetUpperBound(double UpperBound)
The base interface for SimpleITK filters that take one input image.
std::string GetName() const