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 > >
176 void GenerateData() ITK_OVERRIDE;
178 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
187 #ifndef ITK_MANUAL_INSTANTIATION
188 #include "itkClampImageFilter.hxx"
bool operator!=(const ImageRegionCopier< D1, D2 > &c1, const ImageRegionCopier< D1, D2 > &c2)
virtual ~ClampImageFilter() override
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.
Functor used to clamp a value to a specified range.
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.
SmartPointer< const Self > ConstPointer
#define itkConceptMacro(name, concept)
bool ITKIOXML_EXPORT operator==(itk::FancyString &s, const std::string &)
SmartPointer< Self > Pointer