18 #ifndef itkClampImageFilter_h
19 #define itkClampImageFilter_h
41 template<
typename TInput,
typename TOutput = TInput >
72 #ifdef ITK_USE_CONCEPT_CHECKING
89 template<
typename TInput,
typename TOutput >
95 const double dA =
static_cast< double >( A );
97 if ( dA < m_LowerBound )
102 if ( dA > m_UpperBound )
137 template <
typename TInputImage,
typename TOutputImage>
140 Functor::Clamp< typename TInputImage::PixelType,
141 typename TOutputImage::PixelType > >
148 typename TOutputImage::PixelType > >
182 void operator=(const
Self&) ITK_DELETE_FUNCTION;
188 #ifndef ITK_MANUAL_INSTANTIATION
189 #include "itkClampImageFilter.hxx"
virtual ~ClampImageFilter()
OutputType GetLowerBound() const
bool operator!=(const Self &other) const
Casts input pixels to output pixel type and clamps the output pixel values to a specified range...
Base class for all process objects that output image data.
bool operator==(const Self &other) const
Functor used to clamp a value to a specified range.
void SetBounds(const OutputPixelType lowerBound, const OutputPixelType upperBound)
OutputType GetUpperBound() const
TOutputImage::PixelType OutputPixelType
OutputPixelType GetUpperBound() const
OutputType operator()(const InputType &A) const
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Clamp< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
OutputPixelType GetLowerBound() const
Implements pixel-wise generic operation on one image.
TInputImage::PixelType InputPixelType
Control indentation during Print() invocation.
void SetBounds(const OutputType lowerBound, const OutputType upperBound)
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
#define itkConceptMacro(name, concept)
void GenerateData() override
SmartPointer< Self > Pointer