21 #ifndef otbImageSampleExtractorFilter_h
22 #define otbImageSampleExtractorFilter_h
40 template <
class TInputImage>
54 typedef typename InputImageType::PointType
PointType;
55 typedef typename InputImageType::IndexType
IndexType;
56 typedef typename InputImageType::PixelType
PixelType;
82 void Reset(
void)
override;
84 itkSetMacro(SampleFieldPrefix, std::string);
85 itkGetMacro(SampleFieldPrefix, std::string);
88 void SetSampleFieldNames(std::vector<std::string>& names);
91 const std::vector<std::string>& GetSampleFieldNames();
102 void GenerateOutputInformation()
override;
104 void GenerateInputRequestedRegion()
override;
107 void ThreadedGenerateVectorData(
const ogr::Layer& layerForThread, itk::ThreadIdType threadid)
override;
114 void InitializeFields();
133 template <
class TInputImage>
155 using Superclass::SetInput;
156 virtual void SetInput(
const TInputImage* image);
158 const TInputImage* GetInput();
166 void SetOutputFieldPrefix(
const std::string& key);
167 std::string GetOutputFieldPrefix();
170 void SetOutputFieldNames(std::vector<std::string>& names);
173 const std::vector<std::string>& GetOutputFieldNames();
175 void SetLayerIndex(
int index);
178 void SetClassFieldName(
const std::string& name);
179 std::string GetClassFieldName(
void);
199 #ifndef OTB_MANUAL_INSTANTIATION
This filter link a persistent filter with a StreamingImageVirtualWriter.
Base class for persistent filter doing sampling tasks.
Collection of geometric objects.
itk::SmartPointer< Self > Pointer
Layer of geometric objects.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.