23 #ifndef otbDecimateImageFilter_h
24 #define otbDecimateImageFilter_h
26 #include "itkImageToImageFilter.h"
43 template <
class TInputImage,
class TOutputImage>
49 using Superclass = itk::ImageToImageFilter<TInputImage, TOutputImage>;
60 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
61 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
73 itkGetMacro(DecimationFactor,
unsigned int);
74 itkSetMacro(DecimationFactor,
unsigned int);
80 m_DecimationFactor = 1;
81 this->DynamicMultiThreadingOn();
95 void GenerateOutputInformation()
override;
100 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
111 #ifndef OTB_MANUAL_INSTANTIATION
Performs a down sampling of an image.
DecimateImageFilter(const Self &)=delete
typename InputImageType::RegionType InputImageRegionType
void operator=(const Self &)=delete
virtual ~DecimateImageFilter()=default
TOutputImage OutputImageType
unsigned int m_DecimationFactor
itk::SmartPointer< Self > Pointer
TInputImage InputImageType
itk::SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputImageRegionType
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename OutputImageType::PixelType OutputPixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.