|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbOGRDataToClassStatisticsFilter_h
22 #define otbOGRDataToClassStatisticsFilter_h
26 #include "itkSimpleDataObjectDecorator.h"
39 template <
class TInputImage,
class TMaskImage>
53 typedef typename InputImageType::PointType
PointType;
69 void Synthetize(
void)
override;
72 void Reset(
void)
override;
87 using Superclass::MakeOutput;
99 void ProcessSample(
const ogr::Feature& feature,
typename TInputImage::IndexType& imgIndex,
typename TInputImage::PointType& imgPoint,
100 itk::ThreadIdType& threadid)
override;
103 void PrepareFeature(
const ogr::Feature& feature, itk::ThreadIdType& threadid)
override;
107 void operator=(
const Self&) =
delete;
134 template <
class TInputImage,
class TMaskImage>
161 using Superclass::SetInput;
162 virtual void SetInput(
const TInputImage* image);
164 const TInputImage* GetInput();
169 void SetMask(
const TMaskImage* mask);
170 const TMaskImage* GetMask();
172 void SetFieldName(std::string& key);
173 std::string GetFieldName();
175 void SetLayerIndex(
int index);
197 void operator=(
const Self&) =
delete;
202 #ifndef OTB_MANUAL_INSTANTIATION
itk::SmartPointer< const Self > ConstPointer
PersistentFilterStreamingDecorator< PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage > > Superclass
Superclass::FilterType FilterType
std::vector< unsigned long > m_CurrentFID
std::vector< std::string > m_CurrentClass
itk::DataObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
InputImageType::Pointer InputImagePointer
InputImageType::PointType PointType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::SimpleDataObjectDecorator< ClassCountMapType > ClassCountObjectType
Collection of geometric objects.
Persistent filter to compute class statistics based on vectors.
std::vector< PolygonSizeMapType > m_PolygonThread
Computes class statistics based on vectors using a persistent filter.
FilterType::ClassCountObjectType ClassCountObjectType
std::map< std::string, unsigned long > ClassCountMapType
FilterType::PolygonSizeObjectType PolygonSizeObjectType
Base class for persistent filter doing sampling tasks.
OGRDataToClassStatisticsFilter()
PersistentOGRDataToClassStatisticsFilter Self
itk::SmartPointer< Self > Pointer
std::vector< ClassCountMapType > m_ElmtsInClassThread
itk::SmartPointer< Self > Pointer
~OGRDataToClassStatisticsFilter() override
TInputImage InputImageType
~PersistentOGRDataToClassStatisticsFilter() override
This filter link a persistent filter with a StreamingImageVirtualWriter.
PersistentSamplingFilterBase< TInputImage, TMaskImage > Superclass
itk::SmartPointer< const Self > ConstPointer
itk::SimpleDataObjectDecorator< PolygonSizeMapType > PolygonSizeObjectType
InputImageType::RegionType RegionType
std::map< unsigned long, unsigned long > PolygonSizeMapType
std::vector< unsigned long > m_NbPixelsThread
Geometric object with descriptive fields.
FilterType::PolygonSizeMapType PolygonSizeMapType
FilterType::ClassCountMapType ClassCountMapType
OGRDataToClassStatisticsFilter Self
TInputImage InputImageType
otb::ogr::DataSource OGRDataType