From b915a6645ed6be4f1ba28e2c39597b7b946af418 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Wed, 11 Jan 2017 17:50:17 +0100
Subject: [PATCH] ENH: add sub-sampling params to Haralick filter

---
 .../include/otbScalarImageToTexturesFilter.h    | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Modules/Feature/Textures/include/otbScalarImageToTexturesFilter.h b/Modules/Feature/Textures/include/otbScalarImageToTexturesFilter.h
index bb40e1766c..2a12f863a9 100644
--- a/Modules/Feature/Textures/include/otbScalarImageToTexturesFilter.h
+++ b/Modules/Feature/Textures/include/otbScalarImageToTexturesFilter.h
@@ -166,6 +166,18 @@ public:
   /** Get the input image maximum */
   itkGetMacro(InputImageMaximum, InputPixelType);
 
+  /** Set the sub-sampling factor */
+  itkSetMacro(SubsampleFactor, SizeType);
+
+  /** Get the sub-sampling factor */
+  itkGetMacro(SubsampleFactor, SizeType);
+
+  /** Set the sub-sampling offset */
+  itkSetMacro(SubsampleOffset, IndexType);
+
+  /** Get the sub-sampling offset */
+  itkGetMacro(SubsampleOffset, IndexType);
+
   /** Get the energy output image */
   OutputImageType * GetEnergyOutput();
 
@@ -230,6 +242,11 @@ private:
   //TODO: should we use constexpr? only c++11 and problem for msvc
   inline double GetPixelValueTolerance() const {return 0.0001; }
 
+  /** Sub-sampling factor */
+  SizeType m_SubsampleFactor;
+
+  /** Sub-sampling offset */
+  IndexType m_SubsampleOffset;
 };
 } // End namespace otb
 
-- 
GitLab