23 #ifndef otbSubsampledImageRegionConstIterator_h
24 #define otbSubsampledImageRegionConstIterator_h
26 #include "itkImageRegionConstIterator.h"
43 template <
class TImage>
50 typedef itk::ImageRegionConstIterator<TImage>
Superclass;
59 itkStaticConstMacro(ImageIteratorDimension,
unsigned int, Superclass::ImageIteratorDimension);
67 typedef typename Superclass::SizeType
SizeType;
128 void SetSubsampleFactor(
const IndexType& factor);
132 return this->m_SubsampleFactor;
151 return (this->m_Offset <= m_SubSampledBeginOffset);
163 return (this->m_Offset >= m_SubSampledEndOffset);
169 void SetIndex(
const IndexType& ind)
override;
174 return Superclass::GetIndex();
188 if (this->m_Offset + m_SubsampleFactor[0] >= this->m_SpanEndOffset)
195 this->m_Offset += m_SubsampleFactor[0];
212 if (this->m_Offset < this->m_SpanBeginOffset + m_SubsampleFactor[0])
219 this->m_Offset -= m_SubsampleFactor[0];
228 void SetOffset(
const OffsetType& offset);
231 return this->m_Offset;
238 RegionType GenerateOutputInformation()
const;
255 #ifndef OTB_MANUAL_INSTANTIATION