18 #ifndef itkClampImageFilter_h 19 #define itkClampImageFilter_h 41 template<
typename TInput,
typename TOutput = TInput >
65 void SetBounds(
const OutputType lowerBound,
const OutputType upperBound);
70 OutputType
operator()(
const InputType & A )
const;
72 #ifdef ITK_USE_CONCEPT_CHECKING 89 template<
typename TInput,
typename TOutput >
95 const double dA =
static_cast< double >( A );
107 return static_cast< OutputType
>( A );
137 template <
typename TInputImage,
typename TOutputImage>
140 Functor::Clamp< typename TInputImage::PixelType,
141 typename TOutputImage::PixelType > >
148 typename TOutputImage::PixelType > >
170 void SetBounds(
const OutputPixelType lowerBound,
const OutputPixelType upperBound);
176 void GenerateData() ITK_OVERRIDE;
178 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Casts input pixels to output pixel type and clamps the output pixel values to a specified range...
bool operator==(const Self &other) const
Functor used to clamp a value to a specified range.
OutputType GetUpperBound() const
TOutputImage::PixelType OutputPixelType
OutputType operator()(const InputType &A) const
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Clamp< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
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)
SmartPointer< Self > Pointer