![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbOGRDataToClassStatisticsFilter.h>
Inheritance diagram for otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >:
Collaboration diagram for otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >:Public Types | |
| typedef std::map< std::string, unsigned long > | ClassCountMapType |
| typedef itk::SimpleDataObjectDecorator< ClassCountMapType > | ClassCountObjectType |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef itk::DataObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
| typedef InputImageType::Pointer | InputImagePointer |
| typedef TInputImage | InputImageType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef InputImageType::PointType | PointType |
| typedef std::map< unsigned long, unsigned long > | PolygonSizeMapType |
| typedef itk::SimpleDataObjectDecorator< PolygonSizeMapType > | PolygonSizeObjectType |
| typedef InputImageType::RegionType | RegionType |
| typedef PersistentOGRDataToClassStatisticsFilter | Self |
| typedef PersistentSamplingFilterBase< TInputImage, TMaskImage > | Superclass |
Public Types inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage > | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef TInputImage | InputImageType |
| typedef TMaskImage | MaskImageType |
| typedef ogr::DataSource::Pointer | OGRDataPointer |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef TInputImage::RegionType | RegionType |
| typedef PersistentSamplingFilterBase | Self |
| typedef PersistentImageFilter< TInputImage, TInputImage > | Superclass |
Public Types inherited from otb::PersistentImageFilter< TInputImage, TInputImage > | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef TInputImage | InputImageType |
| typedef TInputImage | OutputImageType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef PersistentImageFilter | Self |
| typedef itk::ImageToImageFilter< TInputImage, TInputImage > | Superclass |
Public Member Functions | |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
| void | Reset (void) override |
| void | Synthetize (void) override |
Public Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage > | |
| const TMaskImage * | GetMask () |
| const ogr::DataSource * | GetOGRData () |
| const std::vector< std::string > & | GetOGRLayerCreationOptions () |
| void | SetMask (const TMaskImage *mask) |
| void | SetOGRData (const ogr::DataSource *vector) |
| void | SetOGRLayerCreationOptions (const std::vector< std::string > &options) |
| virtual void | SetFieldName (std::string _arg) |
| virtual std::string | GetFieldName () |
| virtual int | GetFieldIndex () |
| virtual void | SetLayerIndex (int _arg) |
| virtual int | GetLayerIndex () |
| virtual void | SetOutLayerName (std::string _arg) |
| virtual std::string | GetOutLayerName () |
Public Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage > | |
| virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
| static Pointer | New () |
| std::vector< unsigned long > | m_NbPixelsThread |
| std::vector< ClassCountMapType > | m_ElmtsInClassThread |
| std::vector< PolygonSizeMapType > | m_PolygonThread |
| std::vector< std::string > | m_CurrentClass |
| std::vector< unsigned long > | m_CurrentFID |
| const ClassCountObjectType * | GetClassCountOutput () const |
| ClassCountObjectType * | GetClassCountOutput () |
| const PolygonSizeObjectType * | GetPolygonSizeOutput () const |
| PolygonSizeObjectType * | GetPolygonSizeOutput () |
| itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| PersistentOGRDataToClassStatisticsFilter () | |
| ~PersistentOGRDataToClassStatisticsFilter () override | |
| void | ProcessSample (const ogr::Feature &feature, typename TInputImage::IndexType &imgIndex, typename TInputImage::PointType &imgPoint, itk::ThreadIdType &threadid) override |
| void | PrepareFeature (const ogr::Feature &feature, itk::ThreadIdType &threadid) override |
| PersistentOGRDataToClassStatisticsFilter (const Self &)=delete | |
| void | operator= (const Self &)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage > | |
| PersistentSamplingFilterBase () | |
| ~PersistentSamplingFilterBase () override | |
| void | GenerateOutputInformation () override |
| void | GenerateInputRequestedRegion () override |
| void | GenerateData (void) override |
| void | AllocateOutputs (void) override |
| virtual void | ThreadedGenerateVectorData (const ogr::Layer &layerForThread, itk::ThreadIdType threadid) |
| void | ExploreGeometry (const ogr::Feature &feature, OGRGeometry *geom, RegionType ®ion, itk::ThreadIdType &threadid) |
| virtual void | ProcessLine (const ogr::Feature &feature, OGRLineString *line, RegionType ®ion, itk::ThreadIdType &threadid) |
| virtual void | ProcessPolygon (const ogr::Feature &feature, OGRPolygon *polygon, RegionType ®ion, itk::ThreadIdType &threadid) |
| bool | IsSampleInsidePolygon (OGRPolygon *poly, OGRPoint *tmpPoint) |
| bool | IsSampleOnLine (OGRLineString *line, typename TInputImage::PointType &position, typename TInputImage::SpacingType &absSpacing, OGRPolygon &tmpPolygon) |
| RegionType | FeatureBoundingRegion (const TInputImage *image, otb::ogr::Layer::const_iterator &featIt) const |
| virtual void | DispatchInputVectors (void) |
| virtual void | GatherOutputVectors (void) |
| virtual void | FillOneOutput (unsigned int outIdx, ogr::DataSource *outDS, bool update) |
| virtual void | InitializeOutputDataSource (ogr::DataSource *inputDS, ogr::DataSource *outputDS) |
| void | ClearAdditionalFields () |
| void | CreateAdditionalField (std::string name, OGRFieldType type, int width=0, int precision=0) |
| const std::vector< SimpleFieldDefn > & | GetAdditionalFields () |
| ogr::Layer | GetInMemoryInput (unsigned int threadId) |
| ogr::Layer | GetInMemoryOutput (unsigned int threadId, unsigned int index=0) |
Protected Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage > | |
| PersistentImageFilter () | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| ~PersistentImageFilter () override | |
Static Protected Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage > | |
| static ITK_THREAD_RETURN_TYPE | VectorThreaderCallback (void *arg) |
Persistent filter to compute class statistics based on vectors.
Definition at line 40 of file otbOGRDataToClassStatisticsFilter.h.
| typedef std::map<std::string, unsigned long> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::ClassCountMapType |
Wrap output type as DataObject
Definition at line 56 of file otbOGRDataToClassStatisticsFilter.h.
| typedef itk::SimpleDataObjectDecorator<ClassCountMapType> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::ClassCountObjectType |
Definition at line 58 of file otbOGRDataToClassStatisticsFilter.h.
| typedef itk::SmartPointer<const Self> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::ConstPointer |
Definition at line 48 of file otbOGRDataToClassStatisticsFilter.h.
| typedef itk::DataObject::DataObjectPointerArraySizeType otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::DataObjectPointerArraySizeType |
Definition at line 61 of file otbOGRDataToClassStatisticsFilter.h.
| typedef InputImageType::Pointer otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::InputImagePointer |
Definition at line 51 of file otbOGRDataToClassStatisticsFilter.h.
| typedef TInputImage otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::InputImageType |
Definition at line 50 of file otbOGRDataToClassStatisticsFilter.h.
| typedef itk::SmartPointer<Self> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::Pointer |
Definition at line 47 of file otbOGRDataToClassStatisticsFilter.h.
| typedef InputImageType::PointType otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::PointType |
Definition at line 53 of file otbOGRDataToClassStatisticsFilter.h.
| typedef std::map<unsigned long, unsigned long> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::PolygonSizeMapType |
Definition at line 57 of file otbOGRDataToClassStatisticsFilter.h.
| typedef itk::SimpleDataObjectDecorator<PolygonSizeMapType> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::PolygonSizeObjectType |
Definition at line 59 of file otbOGRDataToClassStatisticsFilter.h.
| typedef InputImageType::RegionType otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::RegionType |
Definition at line 52 of file otbOGRDataToClassStatisticsFilter.h.
| typedef PersistentOGRDataToClassStatisticsFilter otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::Self |
Standard Self typedef
Definition at line 45 of file otbOGRDataToClassStatisticsFilter.h.
| typedef PersistentSamplingFilterBase<TInputImage, TMaskImage> otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::Superclass |
Definition at line 46 of file otbOGRDataToClassStatisticsFilter.h.
|
protected |
Constructor
Definition at line 31 of file otbOGRDataToClassStatisticsFilter.hxx.
|
inlineoverrideprotected |
Destructor
Definition at line 94 of file otbOGRDataToClassStatisticsFilter.h.
|
privatedelete |
Number of pixels in all the polygons (per thread)
| virtual::itk::LightObject::Pointer otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::CreateAnother | ( | void | ) | const |
| ClassCountObjectType* otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::GetClassCountOutput | ( | ) |
Number of pixels in all the polygons (per thread)
| PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::ClassCountObjectType * otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::GetClassCountOutput |
the class count map is stored as output #2
Definition at line 101 of file otbOGRDataToClassStatisticsFilter.hxx.
|
virtual |
Runtime information support.
Reimplemented from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >.
| PolygonSizeObjectType* otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::GetPolygonSizeOutput | ( | ) |
Number of pixels in all the polygons (per thread)
| PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::PolygonSizeObjectType * otb::PersistentOGRDataToClassStatisticsFilter< TInputImage, TMaskImage >::GetPolygonSizeOutput |
the polygon size map is stored as output #3
Definition at line 123 of file otbOGRDataToClassStatisticsFilter.hxx.
|
override |
Make a DataObject of the correct type to be used as the specified output.
Definition at line 144 of file otbOGRDataToClassStatisticsFilter.hxx.
|
static |
Method for creation through the object factory.
|
privatedelete |
Number of pixels in all the polygons (per thread)
|
overrideprotectedvirtual |
Prepare temporary variables for the current feature
Reimplemented from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >.
Definition at line 177 of file otbOGRDataToClassStatisticsFilter.hxx.
References otb::ogr::Feature::ogr().
|
overrideprotectedvirtual |
Implement generic method called at each candidate position
Reimplemented from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >.
Definition at line 165 of file otbOGRDataToClassStatisticsFilter.hxx.
|
overridevirtual |
Reset method called before starting the streaming
Implements otb::PersistentImageFilter< TInputImage, TInputImage >.
Definition at line 86 of file otbOGRDataToClassStatisticsFilter.hxx.
|
overridevirtual |
Synthesize the persistent data of the filter.
Implements otb::PersistentImageFilter< TInputImage, TInputImage >.
Definition at line 40 of file otbOGRDataToClassStatisticsFilter.hxx.
References otb::ogr::Layer::begin(), and otb::ogr::DataSource::GetLayer().
|
private |
Class name of the current feature (per thread)
Definition at line 119 of file otbOGRDataToClassStatisticsFilter.h.
|
private |
FID of the current feature (per thread)
Definition at line 122 of file otbOGRDataToClassStatisticsFilter.h.
|
private |
Number of pixels in each classes (per thread)
Definition at line 113 of file otbOGRDataToClassStatisticsFilter.h.
|
private |
Number of pixels in all the polygons (per thread)
Definition at line 110 of file otbOGRDataToClassStatisticsFilter.h.
|
private |
Number of pixels in each polygons (per thread)
Definition at line 116 of file otbOGRDataToClassStatisticsFilter.h.
1.8.17