OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler > Class Template Reference

#include <otbOGRDataToSamplePositionFilter.h>

+ Inheritance diagram for otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >:
+ Collaboration diagram for otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >:

Public Types

typedef std::map< std::string,
unsigned int > 
ClassPartitionType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
itk::DataObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef TInputImage InputImageType
 
typedef MaskImageType::Pointer MaskImagePointer
 
typedef TMaskImage MaskImageType
 
typedef ogr::DataSource::Pointer OGRDataPointer
 
typedef ogr::DataSource OGRDataType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputImageType::PointType PointType
 
typedef InputImageType::RegionType RegionType
 
typedef std::map< std::string,
SamplerPointerType
SamplerMapType
 
typedef SamplerType::ParameterType SamplerParameterType
 
typedef SamplerType::Pointer SamplerPointerType
 
typedef TSampler SamplerType
 
typedef
PersistentOGRDataToSamplePositionFilter 
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< SelfPointer
 
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< SelfPointer
 
typedef PersistentImageFilter Self
 
typedef
itk::ImageToImageFilter
< TInputImage, TInputImage > 
Superclass
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef SmartPointer< SelfPointer
 
typedef ImageToImageFilter Self
 
typedef ImageSource< TInputImage > Superclass
 
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef ImageSource Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

void ClearOutputs ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfLevels ()
 
SamplerMapTypeGetSamplers (unsigned int level)
 
itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void Reset (void) override
 
void SetOutputPositionContainerAndRates (otb::ogr::DataSource *data, const SamplingRateCalculator::MapRateType &map, unsigned int level)
 
void Synthetize (void) override
 
const otb::ogr::DataSourceGetOutputPositionContainer (unsigned int level) const
 
otb::ogr::DataSourceGetOutputPositionContainer (unsigned int level)
 
virtual void SetOriginFieldName (std::string _arg)
 
virtual std::string GetOriginFieldName ()
 
- Public Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >
virtual int GetFieldIndex ()
 
const TMaskImage * GetMask ()
 
const ogr::DataSourceGetOGRData ()
 
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 void SetLayerIndex (int _arg)
 
virtual int GetLayerIndex ()
 
virtual void SetOutLayerName (std::string _arg)
 
virtual std::string GetOutLayerName ()
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
virtual double GetCoordinateTolerance () const
 
virtual double GetDirectionTolerance () const
 
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput () override
 
virtual void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual void SetDirectionTolerance (double _arg)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void GraftOutput (DataObject *output)
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void DispatchInputVectors (void) override
 
void FillOneOutput (unsigned int outIdx, ogr::DataSource *outDS, bool update) override
 
 PersistentOGRDataToSamplePositionFilter ()
 
void ProcessSample (const ogr::Feature &feature, typename TInputImage::IndexType &imgIndex, typename TInputImage::PointType &imgPoint, itk::ThreadIdType &threadid) override
 
 ~PersistentOGRDataToSamplePositionFilter () override
 
- Protected Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >
void AllocateOutputs (void) override
 
void ClearAdditionalFields ()
 
void CreateAdditionalField (std::string name, OGRFieldType type, int width=0, int precision=0)
 
void ExploreGeometry (const ogr::Feature &feature, OGRGeometry *geom, RegionType &region, itk::ThreadIdType &threadid)
 
RegionType FeatureBoundingRegion (const TInputImage *image, otb::ogr::Layer::const_iterator &featIt) const
 
virtual void GatherOutputVectors (void)
 
void GenerateData (void) override
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
const std::vector
< SimpleFieldDefn > & 
GetAdditionalFields ()
 
ogr::Layer GetInMemoryInput (unsigned int threadId)
 
ogr::Layer GetInMemoryOutput (unsigned int threadId, unsigned int index=0)
 
virtual void InitializeOutputDataSource (ogr::DataSource *inputDS, ogr::DataSource *outputDS)
 
bool IsSampleInsidePolygon (OGRPolygon *poly, OGRPoint *tmpPoint)
 
bool IsSampleOnLine (OGRLineString *line, typename TInputImage::PointType &position, typename TInputImage::SpacingType &absSpacing, OGRPolygon &tmpPolygon)
 
 PersistentSamplingFilterBase ()
 
virtual void PrepareFeature (const ogr::Feature &feature, itk::ThreadIdType &threadid)
 
virtual void ProcessLine (const ogr::Feature &feature, OGRLineString *line, RegionType &region, itk::ThreadIdType &threadid)
 
virtual void ProcessPolygon (const ogr::Feature &feature, OGRPolygon *polygon, RegionType &region, itk::ThreadIdType &threadid)
 
virtual void ThreadedGenerateVectorData (const ogr::Layer &layerForThread, itk::ThreadIdType threadid)
 
 ~PersistentSamplingFilterBase () override
 
- Protected Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
 PersistentImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PersistentImageFilter () override
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
virtual void VerifyInputInformation () override
 
 ~ImageToImageFilter ()
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~ImageSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

void ComputeClassPartition (void)
 
void operator= (const Self &)=delete
 
 PersistentOGRDataToSamplePositionFilter (const Self &)=delete
 

Private Attributes

ClassPartitionType m_ClassPartition
 
std::string m_OriginFieldName
 
std::vector< SamplerMapTypem_Samplers
 
bool m_UseOriginField
 

Additional Inherited Members

- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static const unsigned int OutputImageDimension
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
 
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType
 
- Static Protected Member Functions inherited from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >
static ITK_THREAD_RETURN_TYPE VectorThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

template<class TInputImage, class TMaskImage, class TSampler>
class otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >

Persistent filter to extract sample position from an image.

This filter uses an input image (to define the sampling grid), an optional input mask, and a set of input vectors that define the sampling regions for each class.

The filter has a set of samplers (one for each class), they define what sampling rate and strategy should be performed.

Several levels of output are supported. For instance, with two outputs : when the sampler from level 1 discards a sample, the sampler from level 2 is called.

Definition at line 53 of file otbOGRDataToSamplePositionFilter.h.

Member Typedef Documentation

template<class TInputImage , class TMaskImage , class TSampler >
typedef std::map<std::string, unsigned int> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::ClassPartitionType

Definition at line 83 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef itk::SmartPointer<const Self> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::ConstPointer

Definition at line 64 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef itk::DataObject::DataObjectPointerArraySizeType otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::DataObjectPointerArraySizeType

Definition at line 85 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef InputImageType::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::InputImagePointer

Definition at line 67 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef TInputImage otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::InputImageType

Definition at line 66 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef MaskImageType::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::MaskImagePointer

Definition at line 72 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef TMaskImage otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::MaskImageType

Definition at line 71 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef ogr::DataSource::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::OGRDataPointer

Definition at line 75 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef ogr::DataSource otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::OGRDataType

Definition at line 74 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef itk::SmartPointer<Self> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::Pointer

Definition at line 63 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef InputImageType::PointType otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::PointType

Definition at line 69 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef InputImageType::RegionType otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::RegionType

Definition at line 68 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef std::map<std::string, SamplerPointerType> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SamplerMapType

Definition at line 81 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef SamplerType::ParameterType otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SamplerParameterType

Definition at line 79 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef SamplerType::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SamplerPointerType

Definition at line 78 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef TSampler otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SamplerType

Definition at line 77 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef PersistentOGRDataToSamplePositionFilter otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::Self

Standard Self typedef

Definition at line 59 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
typedef PersistentSamplingFilterBase< TInputImage, TMaskImage> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::Superclass

Definition at line 62 of file otbOGRDataToSamplePositionFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TMaskImage , class TSampler >
otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::PersistentOGRDataToSamplePositionFilter ( )
protected

Constructor

Definition at line 32 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::~PersistentOGRDataToSamplePositionFilter ( )
inlineoverrideprotected

Destructor

Definition at line 134 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::PersistentOGRDataToSamplePositionFilter ( const Self )
privatedelete

Member Function Documentation

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::ClearOutputs ( )

Clear all output position containers

Definition at line 139 of file otbOGRDataToSamplePositionFilter.hxx.

References itk::ProcessObject::RemoveOutput().

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::ComputeClassPartition ( void  )
private

Definition at line 258 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
virtual::itk::LightObject::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::DispatchInputVectors ( void  )
overrideprotectedvirtual
template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::FillOneOutput ( unsigned int  outIdx,
ogr::DataSource outDS,
bool  update 
)
overrideprotectedvirtual
template<class TInputImage , class TMaskImage , class TSampler >
virtual const char* otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from otb::PersistentSamplingFilterBase< TInputImage, TMaskImage >.

template<class TInputImage , class TMaskImage , class TSampler >
unsigned int otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetNumberOfLevels ( )

Get the number of sampling levels used in this filter.

Definition at line 131 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
virtual std::string otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetOriginFieldName ( )
virtual

Get/Set of the field name storing the original FID of each sample

template<class TInputImage , class TMaskImage , class TSampler >
const otb::ogr::DataSource* otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetOutputPositionContainer ( unsigned int  level) const

Get the output position container of a given level

template<class TInputImage , class TMaskImage , class TSampler >
otb::ogr::DataSource * otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetOutputPositionContainer ( unsigned int  level)

Get the output position container of a given level

Definition at line 119 of file otbOGRDataToSamplePositionFilter.hxx.

References itk::ProcessObject::GetOutput().

template<class TInputImage , class TMaskImage , class TSampler >
PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SamplerMapType & otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::GetSamplers ( unsigned int  level)

Get a reference to the internal samplers at a given level

Definition at line 81 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
itk::DataObject::Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::MakeOutput ( DataObjectPointerArraySizeType  idx)
overridevirtual

Make a DataObject of the correct type to be used as the specified output.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 153 of file otbOGRDataToSamplePositionFilter.hxx.

References itk::SmartPointer< TObjectType >::GetPointer(), and otb::ogr::DataSource::New().

template<class TInputImage , class TMaskImage , class TSampler >
static Pointer otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::operator= ( const Self )
privatedelete
template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::ProcessSample ( const ogr::Feature feature,
typename TInputImage::IndexType &  imgIndex,
typename TInputImage::PointType &  imgPoint,
itk::ThreadIdType threadid 
)
overrideprotectedvirtual
template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::Reset ( void  )
overridevirtual

Reset method called before starting the streaming

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 42 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
virtual void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SetOriginFieldName ( std::string  _arg)
virtual

Get/Set of the field name storing the original FID of each sample

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::SetOutputPositionContainerAndRates ( otb::ogr::DataSource data,
const SamplingRateCalculator::MapRateType map,
unsigned int  level 
)

Set an output container for sample position associated with corresponding rates, for a given level.

Definition at line 93 of file otbOGRDataToSamplePositionFilter.hxx.

template<class TInputImage , class TMaskImage , class TSampler >
void otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::Synthetize ( void  )
inlineoverridevirtual

Synthesize the persistent data of the filter.

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 93 of file otbOGRDataToSamplePositionFilter.h.

Member Data Documentation

template<class TInputImage , class TMaskImage , class TSampler >
ClassPartitionType otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::m_ClassPartition
private

(internal) map associating a class name with a thread number

Definition at line 157 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
std::string otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::m_OriginFieldName
private

Field name to store the FID of the geometry each sample comes from. When this name is empty, no FID is stored.

Definition at line 164 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
std::vector<SamplerMapType> otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::m_Samplers
private

Internal samplers

Definition at line 160 of file otbOGRDataToSamplePositionFilter.h.

template<class TInputImage , class TMaskImage , class TSampler >
bool otb::PersistentOGRDataToSamplePositionFilter< TInputImage, TMaskImage, TSampler >::m_UseOriginField
private

Flag to enable/disable origin FID in outputs

Definition at line 167 of file otbOGRDataToSamplePositionFilter.h.


The documentation for this class was generated from the following files: