|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkClampImageFilter_h
19 #define itkClampImageFilter_h
42 template <
typename TInput,
typename TOutput = TInput>
59 GetLowerBound()
const;
61 GetUpperBound()
const;
78 #ifdef ITK_USE_CONCEPT_CHECKING
91 template <
typename TInput,
typename TOutput>
95 const auto dA = static_cast<double>(A);
97 if (dA < m_LowerBound)
102 if (dA > m_UpperBound)
107 return static_cast<OutputType>(A);
138 template <
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"
Implements pixel-wise generic operation on one image.
Control indentation during Print() invocation.
Base class for all process objects that output image data.
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
typename TOutputImage::PixelType OutputPixelType
TInputImage::PixelType InputType
bool operator!=(const Index< VDimension > &one, const Index< VDimension > &two)
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Functor used to clamp a value to a specified range.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Casts input pixels to output pixel type and clamps the output pixel values to a specified range.
OutputType operator()(const InputType &A) const
TOutputImage::PixelType OutputType
typename TInputImage::PixelType InputPixelType