18#ifndef itkClampImageFilter_h
19#define itkClampImageFilter_h
42template <
typename TInput,
typename TOutput = TInput>
78#ifdef ITK_USE_CONCEPT_CHECKING
91template <
typename TInput,
typename TOutput>
95 const auto dA =
static_cast<double>(A);
97 if (dA < m_LowerBound)
102 if (dA > m_UpperBound)
138template <
typename TInputImage,
typename TOutputImage>
142 Functor::Clamp<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
167 GetLowerBound()
const;
169 GetUpperBound()
const;
183 GenerateData()
override;
186 PrintSelf(std::ostream & os,
Indent indent)
const override;
191#ifndef ITK_MANUAL_INSTANTIATION
192# include "itkClampImageFilter.hxx"
Casts input pixels to output pixel type and clamps the output pixel values to a specified range.
typename TInputImage::PixelType InputPixelType
typename TOutputImage::PixelType OutputPixelType
Functor used to clamp a value to a specified range.
bool operator==(const Self &other) const
OutputType GetUpperBound() const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
OutputType GetLowerBound() const
void SetBounds(const OutputType lowerBound, const OutputType upperBound)
OutputType operator()(const InputType &A) const
Base class for all process objects that output image data.
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements pixel-wise generic operation on one image.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....