OTB
9.0.0
Orfeo Toolbox
|
#include <otbSampleAugmentationFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ProcessObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OGRDataSourceType::Pointer | OGRDataSourcePointerType |
typedef ogr::DataSource | OGRDataSourceType |
typedef ogr::Layer | OGRLayerType |
typedef itk::SmartPointer< Self > | Pointer |
using | SampleType = sampleAugmentation::SampleType |
using | SampleVectorType = sampleAugmentation::SampleVectorType |
typedef SampleAugmentationFilter | Self |
enum | Strategy { Strategy::Replicate, Strategy::Jitter, Strategy::Smote } |
typedef itk::ProcessObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
typedef itk::DataObject::Pointer | DataObjectPointer |
std::string | m_ClassFieldName |
vcl_size_t | m_Layer |
int | m_Label |
std::vector< std::string > | m_ExcludedFields |
Strategy | m_Strategy |
int | m_NumberOfSamples |
double | m_StdFactor |
vcl_size_t | m_SmoteNeighbors |
int | m_Seed |
virtual void | SetInput (const OGRDataSourceType *ds) |
const OGRDataSourceType * | GetInput (unsigned int idx) |
virtual void | SetOutputSamples (ogr::DataSource *data) |
virtual void | SetClassFieldName (std::string _arg) |
virtual std::string | GetClassFieldName () |
virtual void | SetLayer (vcl_size_t _arg) |
virtual vcl_size_t | GetLayer () |
virtual void | SetLabel (int _arg) |
virtual int | GetLabel () |
void | SetStrategy (Strategy s) |
Strategy | GetStrategy () const |
virtual void | SetNumberOfSamples (int _arg) |
virtual int | GetNumberOfSamples () |
void | SetExcludedFields (const std::vector< std::string > &ef) |
std::vector< std::string > | GetExcludedFields () const |
virtual void | SetStdFactor (double _arg) |
virtual double | GetStdFactor () |
virtual void | SetSmoteNeighbors (vcl_size_t _arg) |
virtual vcl_size_t | GetSmoteNeighbors () |
virtual void | SetSeed (int _arg) |
virtual int | GetSeed () |
const OGRDataSourceType * | GetOutput () |
SampleAugmentationFilter () | |
~SampleAugmentationFilter () override | |
void | GenerateData () override |
DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
SampleVectorType | ExtractSamples (const ogr::DataSource::Pointer vectors, vcl_size_t layerName, const std::string &classField, const int label, const std::vector< std::string > &excludedFields={}) |
void | SampleToOGRFeatures (const ogr::DataSource::Pointer &vectors, ogr::DataSource *output, const SampleVectorType &samples, const vcl_size_t layerName, const std::string &classField, int label, const std::vector< std::string > &excludedFields={}) |
std::set< vcl_size_t > | GetExcludedFieldsIds (const std::vector< std::string > &excludedFields, const ogr::Layer &inputLayer) |
bool | IsNumericField (const ogr::Feature &feature, const int idx) |
ogr::Feature | SelectTemplateFeature (const ogr::Layer &inputLayer, const std::string &classField, int label) |
SampleAugmentationFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Filter to generate synthetic samples from existing ones.
This class generates synthetic samples from existing ones either by replication, jitter (adding gaussian noise to the features of existing samples) or SMOTE (linear combination of pairs neighbouring samples of the same class.
Definition at line 47 of file otbSampleAugmentationFilter.h.
typedef itk::SmartPointer<const Self> otb::SampleAugmentationFilter::ConstPointer |
Definition at line 54 of file otbSampleAugmentationFilter.h.
|
protected |
DataObject pointer
Definition at line 140 of file otbSampleAugmentationFilter.h.
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::SampleAugmentationFilter::DataObjectPointerArraySizeType |
Definition at line 66 of file otbSampleAugmentationFilter.h.
Definition at line 63 of file otbSampleAugmentationFilter.h.
Definition at line 60 of file otbSampleAugmentationFilter.h.
Definition at line 64 of file otbSampleAugmentationFilter.h.
typedef itk::SmartPointer<Self> otb::SampleAugmentationFilter::Pointer |
Definition at line 53 of file otbSampleAugmentationFilter.h.
Definition at line 68 of file otbSampleAugmentationFilter.h.
Definition at line 69 of file otbSampleAugmentationFilter.h.
typedef for the classes standards.
Definition at line 51 of file otbSampleAugmentationFilter.h.
typedef itk::ProcessObject otb::SampleAugmentationFilter::Superclass |
Definition at line 52 of file otbSampleAugmentationFilter.h.
|
strong |
Enumerator | |
---|---|
Replicate | |
Jitter | |
Smote |
Definition at line 71 of file otbSampleAugmentationFilter.h.
|
protected |
DataObject pointer
|
inlineoverrideprotected |
DataObject pointer
Definition at line 132 of file otbSampleAugmentationFilter.h.
|
privatedelete |
DataObject pointer
virtual::itk::LightObject::Pointer otb::SampleAugmentationFilter::CreateAnother | ( | void | ) | const |
|
protected |
DataObject pointer
|
overrideprotected |
Generate Data method
|
virtual |
Return the Field name in which labels have been written.
|
inline |
DataObject pointer
Definition at line 115 of file otbSampleAugmentationFilter.h.
|
protected |
DataObject pointer
const OGRDataSourceType* otb::SampleAugmentationFilter::GetInput | ( | unsigned int | idx | ) |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
Return the name of the class.
|
virtual |
DataObject pointer
const OGRDataSourceType* otb::SampleAugmentationFilter::GetOutput | ( | ) |
Get the output ogr::DataSource
which is a "memory" datasource.
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
inline |
DataObject pointer
Definition at line 105 of file otbSampleAugmentationFilter.h.
|
protected |
DataObject pointer
|
overrideprotected |
DataObject pointer
|
static |
Method for management of the object factory.
|
privatedelete |
DataObject pointer
|
protected |
DataObject pointer
|
protected |
DataObject pointer
|
virtual |
Set the Field Name in which labels will be written. (default is "class") A field "ClassFieldName" of type integer is created in the output memory layer.
|
inline |
DataObject pointer
Definition at line 111 of file otbSampleAugmentationFilter.h.
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
virtual |
DataObject pointer
|
inline |
DataObject pointer
Definition at line 101 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 161 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 164 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 163 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 162 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 166 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 169 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 168 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 167 of file otbSampleAugmentationFilter.h.
|
private |
DataObject pointer
Definition at line 165 of file otbSampleAugmentationFilter.h.