23 #ifndef otbSubsampleImageFilter_h
24 #define otbSubsampleImageFilter_h
26 #include "itkImageToImageFilter.h"
53 template <
class TInputImage,
class TOutputImage, Wavelet::WaveletDirection TDirectionOfTransformation>
59 typedef itk::ImageToImageFilter<TInputImage, TOutputImage>
Superclass;
70 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
71 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
97 indexFactor.Fill(factor);
98 SetSubSampleFactor(indexFactor);
105 m_SubsampleFactor.Fill(1);
112 bool IsSubsampleFactorOne()
const;
117 void CallCopyOutputRegionToInputRegion(InputImageRegionType& destRegion,
const OutputImageRegionType& srcRegion)
override;
118 void CallCopyInputRegionToOutputRegion(OutputImageRegionType& destRegion,
const InputImageRegionType& srcRegion)
override;
124 void GenerateOutputInformation()
override;
127 void BeforeThreadedGenerateData()
override;
130 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
132 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
136 void operator=(
const Self&) =
delete;
143 #ifndef OTB_MANUAL_INSTANTIATION