21 #ifndef otbClampImageFilter_h
22 #define otbClampImageFilter_h
25 #include "itkUnaryFunctorImageFilter.h"
47 template <
class TInputImage,
class TOutputImage = TInputImage>
49 :
public itk::ImageToImageFilter<TInputImage, TOutputImage>
54 using Superclass = itk::ImageToImageFilter<TInputImage, TOutputImage>;
97 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
101 Superclass::GenerateOutputInformation();
102 unsigned int sizeIn = this->GetInput()->GetNumberOfComponentsPerPixel();
103 this->GetFunctor().SetInputComponents(sizeIn);
104 this->GetOutput()->SetNumberOfComponentsPerPixel(this->GetFunctor().GetOutputSize());
107 void DynamicThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread)
override;
124 #ifndef OTB_MANUAL_INSTANTIATION
Clamp image values to be below, over, or between threshold values.
itk::SmartPointer< Self > Pointer
typename OutputImageType::InternalPixelType OutputInternalPixelType
FunctorType & GetFunctor() noexcept
ClampImageFilter(const Self &)=delete
~ClampImageFilter() override=default
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
void operator=(const Self &)=delete
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
FunctorType const & GetFunctor() const noexcept
typename itk::NumericTraits< OutputInternalPixelType >::ValueType OutputPixelValueType
OutputPixelValueType m_Upper
OutputPixelValueType m_Lower
TInputImage InputImageType
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
void GenerateOutputInformation(void) override
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.