Go to the documentation of this file.
18 #ifndef sitkClampImageFilter_h
19 #define sitkClampImageFilter_h
79 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBound (
double LowerBound ) { this->m_LowerBound = LowerBound;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBound (
double UpperBound ) { this->m_UpperBound = UpperBound;
return *
this; }
94 std::string
GetName()
const {
return std::string (
"ClampImageFilter"); }
97 std::string ToString()
const;
112 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
114 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
122 double m_LowerBound{-std::numeric_limits<double>::max()};
124 double m_UpperBound{std::numeric_limits<double>::max()};
127 bool m_InPlace{
false};
The Image class for SimpleITK.
PixelIDValueEnum GetOutputPixelType() const
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
double GetLowerBound() const
PixelIDValueEnum
Enumerated values of pixelIDs.
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
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Casts input pixels to output pixel type and clamps the output pixel values to a specified range.
Self & SetLowerBound(double LowerBound)
Self & SetUpperBound(double UpperBound)
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
std::string GetName() const
The base interface for SimpleITK filters that take one input image.
Image Clamp(Image &&image1, PixelIDValueEnum outputPixelType=itk::simple::sitkUnknown, 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.
double GetUpperBound() const