Go to the documentation of this file.
18 #ifndef sitkClampImageFilter_h
19 #define sitkClampImageFilter_h
78 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBound (
double LowerBound ) { this->m_LowerBound = LowerBound;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBound (
double UpperBound ) { this->m_UpperBound = UpperBound;
return *
this; }
93 std::string
GetName()
const {
return std::string (
"ClampImageFilter"); }
96 std::string ToString()
const;
111 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
113 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
121 double m_LowerBound{-std::numeric_limits<double>::max()};
123 double m_UpperBound{std::numeric_limits<double>::max()};
126 bool m_InPlace{
false};
The Image class for SimpleITK.
PixelIDValueEnum GetOutputPixelType() const
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
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
double GetLowerBound() const
PixelIDValueEnum
Enumerated values of pixelIDs.
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