Go to the documentation of this file.
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;
116 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
The main Image class for SimpleITK.
PixelIDValueEnum GetOutputPixelType() const
BasicPixelIDTypeList PixelIDTypeList
nsstd::auto_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 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.
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)
PixelIDValueEnum m_OutputPixelType
@ sitkFloat32
32 bit float
Self & SetUpperBound(double UpperBound)
#define SITKBasicFilters_EXPORT
std::string GetName() const
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
double GetUpperBound() const