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 > >
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...
void operator=(const Self &)
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
#define itkConceptMacro(name, concept)
void PrintSelf(std::ostream &os, Indent indent) const
SmartPointer< Self > Pointer