21 #ifndef otbOGRDataToSamplePositionFilter_h
22 #define otbOGRDataToSamplePositionFilter_h
52 template <
class TInputImage,
class TMaskImage,
class TSampler>
66 typedef typename InputImageType::PointType
PointType;
94 void Reset(
void)
override;
97 SamplerMapType& GetSamplers(
unsigned int level);
109 unsigned int GetNumberOfLevels();
116 itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx)
override;
117 using Superclass::MakeOutput;
120 itkSetMacro(OriginFieldName, std::string);
121 itkGetMacro(OriginFieldName, std::string);
134 void ProcessSample(
const ogr::Feature& feature,
typename TInputImage::IndexType& imgIndex,
typename TInputImage::PointType& imgPoint,
135 itk::ThreadIdType& threadid)
override;
140 void DispatchInputVectors(
void)
override;
143 void FillOneOutput(
unsigned int outIdx,
ogr::DataSource* outDS,
bool update)
override;
147 void operator=(
const Self&) =
delete;
149 void ComputeClassPartition(
void);
174 template <
class TInputImage,
class TMaskImage = otb::Image<
unsigned char>,
class TSampler = otb::PeriodicSampler>
203 using Superclass::SetInput;
206 virtual void SetInput(
const TInputImage* image);
209 const TInputImage* GetInput();
218 void SetMask(
const TMaskImage* mask);
221 const TMaskImage* GetMask();
224 void SetFieldName(std::string key);
227 std::string GetFieldName();
230 void SetLayerIndex(
int index);
248 void SetOriginFieldName(std::string key);
251 std::string GetOriginFieldName();
266 void operator=(
const Self&) =
delete;
271 #ifndef OTB_MANUAL_INSTANTIATION