OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | List of all members
otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue > Class Template Reference

#include <otbTrainVectorBase.h>

+ Inheritance diagram for otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >:
+ Collaboration diagram for otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >:

Classes

class  FeaturesInfo
 
class  SamplesWithLabel
 
class  ShiftScaleParameters
 

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass::ListSampleType ListSampleType
 
typedef itk::VariableLengthVector< ValueTypeMeasurementType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass::SampleType SampleType
 
typedef TrainVectorBase Self
 
typedef otb::Statistics::ShiftScaleSampleListFilter< ListSampleType, ListSampleTypeShiftScaleFilterType
 
typedef otb::StatisticsXMLFileReader< SampleTypeStatisticsReader
 
typedef LearningApplicationBase< TInputValue, TOutputValue > Superclass
 
typedef Superclass::TargetListSampleType TargetListSampleType
 
typedef double ValueType
 
- Public Types inherited from otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >
enum  ClassifierCategory {
  Supervised,
  Unsupervised
}
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef TInputValue InputValueType
 
typedef ModelType::InputListSampleType ListSampleType
 
typedef otb::MachineLearningModelFactory< InputValueType, OutputValueTypeModelFactoryType
 
typedef ModelFactoryType::MachineLearningModelTypePointer ModelPointerType
 
typedef ModelFactoryType::MachineLearningModelType ModelType
 
typedef TOutputValue OutputValueType
 
typedef SampleImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef otb::VectorImage< InputValueTypeSampleImageType
 
typedef ModelType::InputSampleType SampleType
 
typedef LearningApplicationBase Self
 
typedef Application Superclass
 
typedef ModelType::TargetListSampleType TargetListSampleType
 
typedef ModelType::TargetSampleType TargetSampleType
 
typedef ModelType::TargetValueType TargetValueType
 
- Public Types inherited from otb::Wrapper::Application
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef Application Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >
ClassifierCategory GetClassifierCategory ()
 
virtual const std::vector< std::string > & GetSupervisedClassifier () const
 
virtual const std::vector< std::string > & GetUnsupervisedClassifier () const
 
- Public Member Functions inherited from otb::Wrapper::Application
void AddDocTag (const std::string &)
 
unsigned int AddExample (const std::string &comm="")
 
void AddImageToParameterInputImageList (std::string const &parameter, ImageBaseType *img)
 
void AddParameterStringList (std::string const &parameter, const std::string &str)
 
void ClearParameterInputImageList (std::string const &parameter)
 
void ClearValue (std::string const &paramKey)
 
bool ConnectImage (std::string in, Application *app, std::string out)
 
void DisableParameter (std::string const &paramKey)
 
void EnableParameter (std::string const &paramKey)
 
int Execute ()
 
int ExecuteAndWriteOutput ()
 
std::vector< std::string > GetChoiceKeys (std::string const &paramKey)
 
std::vector< std::string > GetChoiceNames (std::string const &paramKey)
 
std::string GetCLExample ()
 
double GetDefaultParameterDouble (std::string const &parameter)
 
float GetDefaultParameterFloat (std::string const &parameter)
 
int GetDefaultParameterInt (std::string const &parameter)
 
virtual const char * GetDescription () const
 
virtual const char * GetDocAuthors () const
 
DocExampleStructure::Pointer GetDocExample ()
 
virtual const char * GetDocLimitations () const
 
virtual const std::string & GetDocLink () const
 
virtual const char * GetDocLongDescription () const
 
virtual const char * GetDocSeeAlso () const
 
virtual std::vector< std::string > GetDocTags () const
 
std::string GetExampleComment (unsigned int id)
 
unsigned int GetExampleNumberOfParameters (unsigned int id)
 
std::string GetExampleParameterKey (unsigned int exId, unsigned int paramId)
 
std::string GetExampleParameterValue (unsigned int exId, unsigned int paramId)
 
std::string GetHtmlExample ()
 
unsigned int GetImageNbBands (const std::string &key, unsigned int idx=0)
 
ImageBaseType::PointType GetImageOrigin (const std::string &key, unsigned int idx=0)
 
std::string GetImageProjection (const std::string &key, unsigned int idx=0)
 
ImageBaseType::RegionType GetImageRequestedRegion (const std::string &key, unsigned int idx=0)
 
ImageBaseType::SizeType GetImageSize (const std::string &key, unsigned int idx=0)
 
ImageBaseType::SpacingType GetImageSpacing (const std::string &key, unsigned int idx=0)
 
double GetLastExecutionTiming () const
 
bool GetListViewSingleSelectionMode (const std::string &parameter)
 
otb::LoggerGetLogger () const
 
virtual const char * GetName () const
 
unsigned int GetNumberOfElementsInParameterInputImageList (std::string const &parameter)
 
unsigned int GetNumberOfExamples ()
 
std::vector< std::pair< std::string, std::string > > GetOutputParametersSumUp ()
 
std::string GetParameterAsString (std::string const &paramKey)
 
ParameterGetParameterByKey (std::string const &parameter, bool follow=true)
 
const ParameterGetParameterByKey (std::string const &parameter, bool follow=true) const
 
ComplexDoubleImageTypeGetParameterComplexDoubleImage (std::string const &)
 
ComplexDoubleVectorImageTypeGetParameterComplexDoubleVectorImage (std::string const &)
 
ComplexFloatImageTypeGetParameterComplexFloatImage (std::string const &)
 
ComplexFloatVectorImageTypeGetParameterComplexFloatVectorImage (std::string const &)
 
ComplexInt16ImageTypeGetParameterComplexInt16Image (std::string const &)
 
ComplexInt16VectorImageTypeGetParameterComplexInt16VectorImage (std::string const &)
 
ComplexInt32ImageTypeGetParameterComplexInt32Image (std::string const &)
 
ComplexInt32VectorImageTypeGetParameterComplexInt32VectorImage (std::string const &)
 
std::string GetParameterDescription (std::string const &paramKey)
 
double GetParameterDouble (std::string const &parameter) const
 
DoubleImageTypeGetParameterDoubleImage (std::string const &)
 
DoubleVectorImageTypeGetParameterDoubleVectorImage (std::string const &)
 
float GetParameterFloat (std::string const &parameter) const
 
FloatImageTypeGetParameterFloatImage (std::string const &)
 
FloatVectorImageTypeGetParameterFloatVectorImage (std::string const &)
 
FloatVectorImageTypeGetParameterImage (std::string const &parameter)
 
FloatVectorImageListTypeGetParameterImageList (std::string const &parameter)
 
int GetParameterInt (std::string const &parameter) const
 
Int16ImageTypeGetParameterInt16Image (std::string const &)
 
Int16VectorImageTypeGetParameterInt16VectorImage (std::string const &)
 
Int32ImageTypeGetParameterInt32Image (std::string const &)
 
Int32VectorImageTypeGetParameterInt32VectorImage (std::string const &)
 
ParameterGroupGetParameterList ()
 
std::string GetParameterName (std::string const &paramKey)
 
ImageBaseTypeGetParameterOutputImage (std::string const &parameter)
 
ImagePixelType GetParameterOutputImagePixelType (std::string const &parameter)
 
Role GetParameterRole (std::string const &paramKey) const
 
std::vector< std::string > GetParametersKeys (bool recursive=true)
 
std::string GetParameterString (std::string const &parameter) const
 
std::vector< std::string > GetParameterStringList (const std::string &parameter)
 
ParameterType GetParameterType (std::string const &paramKey) const
 
UInt16ImageTypeGetParameterUInt16Image (std::string const &)
 
UInt16VectorImageTypeGetParameterUInt16VectorImage (std::string const &)
 
UInt32ImageTypeGetParameterUInt32Image (std::string const &)
 
UInt32VectorImageTypeGetParameterUInt32VectorImage (std::string const &)
 
UInt8ImageTypeGetParameterUInt8Image (std::string const &)
 
UInt8RGBAImageTypeGetParameterUInt8RGBAImage (std::string const &)
 
UInt8RGBImageTypeGetParameterUInt8RGBImage (std::string const &)
 
UInt8VectorImageTypeGetParameterUInt8VectorImage (std::string const &)
 
UserLevel GetParameterUserLevel (std::string const &paramKey) const
 
VectorDataTypeGetParameterVectorData (std::string const &parameter)
 
VectorDataListTypeGetParameterVectorDataList (std::string const &parameter)
 
std::string GetProgressDescription () const
 
itk::ProcessObject * GetProgressSource () const
 
const FieldParameter::TypeFilterTypeGetTypeFilter (std::string const &key) const
 
bool HasAutomaticValue (std::string const &paramKey) const
 
bool HasUserValue (std::string const &paramKey) const
 
bool HasValue (std::string const &paramKey) const
 
void Init ()
 
bool IsApplicationReady ()
 
bool IsDeprecated ()
 
bool IsInitialized () const
 
bool IsMandatory (std::string const &paramKey) const
 
bool IsParameterEnabled (std::string const &paramKey, bool recurseParents=false) const
 
bool IsParameterMissing (const std::string &key) const
 
void LoadParametersFromXML (const std::string &filename)
 
void PropagateConnectMode (bool isMem)
 
unsigned long PropagateRequestedRegion (const std::string &key, ImageBaseType::RegionType region, unsigned int idx=0)
 
void SaveParametersToXML (const std::string &filename)
 
void SetDefaultOutputComplexPixelType (std::string const &parameter, ComplexImagePixelType type)
 
void SetDefaultOutputPixelType (std::string const &parameter, ImagePixelType type)
 
void SetDefaultParameterDouble (std::string const &parameter, double value)
 
void SetDefaultParameterFloat (std::string const &parameter, float value)
 
void SetDefaultParameterInt (std::string const &parameter, int value)
 
void SetDescription (const std::string &)
 
virtual void SetDocAuthors (const std::string &)
 
void SetDocExampleParameterValue (const std::string key, const std::string value, unsigned int exId=0)
 
virtual void SetDocLimitations (const std::string &)
 
virtual void SetDocLink (const std::string &link)
 
virtual void SetDocLongDescription (const std::string &)
 
virtual void SetDocSeeAlso (const std::string &)
 
virtual void SetDocTags (std::vector< std::string >)
 
void SetExampleComment (const std::string &comm, unsigned int i)
 
void SetListViewSingleSelectionMode (std::string const &parameter, bool status)
 
void SetLogger (otb::Logger *logger)
 
void SetMaximumParameterDoubleValue (std::string const &parameter, double value)
 
void SetMaximumParameterFloatValue (std::string const &parameter, float value)
 
void SetMaximumParameterIntValue (std::string const &parameter, int value)
 
void SetMinimumParameterDoubleValue (std::string const &parameter, double value)
 
void SetMinimumParameterFloatValue (std::string const &parameter, float value)
 
void SetMinimumParameterIntValue (std::string const &parameter, int value)
 
virtual void SetName (const std::string &)
 
void SetNthParameterInputImageList (std::string const &parameter, const unsigned int &id, ImageBaseType *img)
 
void SetNthParameterStringList (std::string const &parameter, const unsigned int &id, const std::string &str)
 
void SetOfficialDocLink ()
 
void SetParameterDescription (std::string const &paramKey, std::string dec)
 
void SetParameterDouble (std::string const &parameter, double value, bool hasUserValueFlag=true)
 
void SetParameterFloat (std::string const &parameter, float value, bool hasUserValueFlag=true)
 
void SetParameterInputImage (std::string const &parameter, ImageBaseType *inputImage)
 
void SetParameterInt (std::string const &parameter, int value, bool hasUserValueFlag=true)
 
void SetParameterList (ParameterGroup::Pointer paramGroup)
 
void SetParameterOutputImage (std::string const &parameter, FloatVectorImageType *value)
 
void SetParameterOutputImagePixelType (std::string const &parameter, ImagePixelType pixelType)
 
void SetParameterOutputVectorData (std::string const &parameter, VectorDataType *value)
 
void SetParameterString (std::string const &parameter, std::string value, bool hasUserValueFlag=true)
 
void SetParameterStringList (std::string const &parameter, std::vector< std::string > values, bool hasUserValueFlag=true)
 
void SetParameterUserValue (std::string const &paramKey, bool value)
 
void SetRasterData (std::string const &key, std::string const &rasterData)
 
void SetTypeFilter (std::string const &key, FieldParameter::TypeFilterType const &typeFilter)
 
void SetVectorData (std::string const &key, std::string const &vectorData)
 
void Stop ()
 
void UpdateParameters ()
 
void WriteOutput ()
 
ImageMetadataGetImageMetadata (const std::string &key, unsigned int idx=0)
 
void SetImageMetadata (const ImageMetadata &imd, const std::string &key, unsigned int idx=0)
 
itk::MetaDataDictionary GetMetadataDictionary (const std::string &key, unsigned int idx=0)
 
ImagePixelType GetImageBasePixelType (const std::string &key, unsigned int idx=0)
 
ImageBaseTypeGetParameterImageBase (const std::string &key, unsigned int idx=0)
 
void SetParameterImageBase (const std::string &key, ImageBaseType *img, unsigned int idx=0)
 
void RegisterPipeline ()
 
void FreeRessources ()
 
bool IsExecuteDone ()
 
bool IsMultiWritingEnabled ()
 
SamplesWithLabel m_TrainingSamplesWithLabel
 
SamplesWithLabel m_ClassificationSamplesWithLabel
 
TargetListSampleType::Pointer m_PredictedList
 
FeaturesInfo m_FeaturesInfo
 
virtual void ExtractAllSamples (const ShiftScaleParameters &measurement)
 
virtual SamplesWithLabel ExtractTrainingSamplesWithLabel (const ShiftScaleParameters &measurement)
 
virtual SamplesWithLabel ExtractClassificationSamplesWithLabel (const ShiftScaleParameters &measurement)
 
SamplesWithLabel ExtractSamplesWithLabel (std::string parameterName, std::string parameterLayer, const ShiftScaleParameters &measurement)
 
ShiftScaleParameters GetStatistics (unsigned int nbFeatures)
 
void DoInit () override
 
void DoUpdateParameters () override
 
void DoExecute () override
 

Additional Inherited Members

- Protected Member Functions inherited from otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >
TargetListSampleType::Pointer Classify (typename ListSampleType::Pointer validationListSample, std::string modelPath)
 
 LearningApplicationBase ()
 
void Train (typename ListSampleType::Pointer trainingListSample, typename TargetListSampleType::Pointer trainingLabeledListSample, std::string modelPath)
 
 ~LearningApplicationBase () override
 
- Protected Member Functions inherited from otb::Wrapper::Application
 Application ()
 
 ~Application () override
 
void AddProcess (itk::ProcessObject *object, std::string description)
 
void AddChoice (std::string const &paramKey, std::string const &paramName)
 
void AddParameter (ParameterType type, std::string const &paramKey, std::string const &paramName)
 
void AddRAMParameter (std::string const &paramKey="ram")
 
void AddRAMParameter (std::string const &paramKey, std::string const &paramName, unsigned int defaultValue)
 
void AddRANDParameter (std::string const &paramKey="rand")
 
void AddRANDParameter (std::string const &paramKey, std::string const &paramName, unsigned int defaultValue)
 
void ClearChoices (std::string const &key)
 
std::vector< int > GetSelectedItems (std::string const &paramKey)
 
void MandatoryOn (std::string const &paramKey)
 
void MandatoryOff (std::string const &paramKey)
 
void SetParameterUserLevel (std::string const &paramKey, UserLevel level)
 
void SetParameterRole (std::string const &paramKey, Role role)
 
template<class TImageType >
TImageType * GetParameterImage (std::string const &parameter)
 
void AutomaticValueOn (std::string const &paramKey)
 
void AutomaticValueOff (std::string const &paramKey)
 
template<class TImageType >
void SetParameterOutputImage (std::string const &parameter, TImageType *value)
 
virtual void SetMultiWriting (bool _arg)
 
void EnableInPrivateDo ()
 
void DisableInPrivateDo ()
 
- Protected Attributes inherited from otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >
bool m_RegressionFlag
 

Detailed Description

template<class TInputValue, class TOutputValue>
class otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >

Definition at line 47 of file otbTrainVectorBase.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputValue , class TOutputValue >
typedef itk::SmartPointer<const Self> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ConstPointer

Definition at line 54 of file otbTrainVectorBase.h.

◆ ListSampleType

template<class TInputValue , class TOutputValue >
typedef Superclass::ListSampleType otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ListSampleType

Definition at line 60 of file otbTrainVectorBase.h.

◆ MeasurementType

template<class TInputValue , class TOutputValue >
typedef itk::VariableLengthVector<ValueType> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::MeasurementType

Definition at line 64 of file otbTrainVectorBase.h.

◆ Pointer

template<class TInputValue , class TOutputValue >
typedef itk::SmartPointer<Self> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::Pointer

Definition at line 53 of file otbTrainVectorBase.h.

◆ SampleType

template<class TInputValue , class TOutputValue >
typedef Superclass::SampleType otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::SampleType

Definition at line 57 of file otbTrainVectorBase.h.

◆ Self

template<class TInputValue , class TOutputValue >
typedef TrainVectorBase otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::Self

Standard class typedefs.

Definition at line 51 of file otbTrainVectorBase.h.

◆ ShiftScaleFilterType

template<class TInputValue , class TOutputValue >
typedef otb::Statistics::ShiftScaleSampleListFilter<ListSampleType, ListSampleType> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleFilterType

Definition at line 68 of file otbTrainVectorBase.h.

◆ StatisticsReader

template<class TInputValue , class TOutputValue >
typedef otb::StatisticsXMLFileReader<SampleType> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::StatisticsReader

Definition at line 66 of file otbTrainVectorBase.h.

◆ Superclass

template<class TInputValue , class TOutputValue >
typedef LearningApplicationBase<TInputValue, TOutputValue> otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::Superclass

Definition at line 52 of file otbTrainVectorBase.h.

◆ TargetListSampleType

template<class TInputValue , class TOutputValue >
typedef Superclass::TargetListSampleType otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::TargetListSampleType

Definition at line 61 of file otbTrainVectorBase.h.

◆ ValueType

template<class TInputValue , class TOutputValue >
typedef double otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ValueType

Definition at line 63 of file otbTrainVectorBase.h.

Member Function Documentation

◆ DoExecute()

template<class TInputValue , class TOutputValue >
void otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::DoExecute
overrideprotectedvirtual

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Implements otb::Wrapper::Application.

Definition at line 140 of file otbTrainVectorBase.hxx.

References otbAppLogFATAL.

◆ DoInit()

template<class TInputValue , class TOutputValue >
void otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::DoInit
overrideprotectedvirtual

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Reimplemented from otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >.

Definition at line 31 of file otbTrainVectorBase.hxx.

References otb::Wrapper::ParameterType_Bool, otb::Wrapper::ParameterType_Field, otb::Wrapper::ParameterType_Group, otb::Wrapper::ParameterType_InputFilename, otb::Wrapper::ParameterType_InputVectorDataList, otb::Wrapper::ParameterType_Int, and otb::Wrapper::ParameterType_OutputFilename.

◆ DoUpdateParameters()

template<class TInputValue , class TOutputValue >
void otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::DoUpdateParameters
overrideprotectedvirtual

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Implements otb::Wrapper::Application.

Definition at line 101 of file otbTrainVectorBase.hxx.

References otb::find(), otb::ogr::DataSource::New(), otb::ogr::Feature::ogr(), otb::ogr::Layer::ogr(), and otb::ogr::DataSource::Modes::Read.

◆ ExtractAllSamples()

template<class TInputValue , class TOutputValue >
void otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ExtractAllSamples ( const ShiftScaleParameters measurement)
protectedvirtual

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Definition at line 159 of file otbTrainVectorBase.hxx.

◆ ExtractClassificationSamplesWithLabel()

template<class TInputValue , class TOutputValue >
TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ExtractClassificationSamplesWithLabel ( const ShiftScaleParameters measurement)
protectedvirtual

Extract classification the sample list

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features
Returns
sample list used for classification

Definition at line 174 of file otbTrainVectorBase.hxx.

References otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel::labeledListSample, otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel::listSample, and otbAppLogWARNING.

◆ ExtractSamplesWithLabel()

template<class TInputValue , class TOutputValue >
TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ExtractSamplesWithLabel ( std::string  parameterName,
std::string  parameterLayer,
const ShiftScaleParameters measurement 
)
protected

Extract samples from input file for corresponding field name

Parameters
parameterNamethe name of the input file option in the input application parameters
parameterLayerthe name of the layer option in the input application parameters
measurementstatics measurement (mean/stddev)
nbFeaturesthe number of features.
Returns
the list of samples and their corresponding labels.

Definition at line 225 of file otbTrainVectorBase.hxx.

References otb::ogr::Feature::addr(), otb::Wrapper::MetaDataHelper::GetType(), otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel::labeledListSample, otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel::listSample, otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleParameters::meanMeasurementVector, otb::ogr::DataSource::New(), otb::ogr::Feature::ogr(), otb::ogr::Layer::ogr(), otbAppLogFATAL, otbAppLogINFO, otbAppLogWARNING, otb::ogr::DataSource::Modes::Read, and otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleParameters::stddevMeasurementVector.

◆ ExtractTrainingSamplesWithLabel()

template<class TInputValue , class TOutputValue >
TrainVectorBase< TInputValue, TOutputValue >::SamplesWithLabel otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ExtractTrainingSamplesWithLabel ( const ShiftScaleParameters measurement)
protectedvirtual

Extract the training sample list

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features
Returns
sample list used for training

Definition at line 167 of file otbTrainVectorBase.hxx.

◆ GetNameOfClass()

template<class TInputValue , class TOutputValue >
virtual const char* otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::GetNameOfClass ( ) const
virtual

◆ GetStatistics()

template<class TInputValue , class TOutputValue >
TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleParameters otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::GetStatistics ( unsigned int  nbFeatures)
protected

Retrieve statistics mean and standard deviation if input statistics are provided. Otherwise mean is set to 0 and standard deviation to 1 for each Features.

Parameters
nbFeatures

Definition at line 202 of file otbTrainVectorBase.hxx.

References otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleParameters::meanMeasurementVector, and otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::ShiftScaleParameters::stddevMeasurementVector.

Member Data Documentation

◆ m_ClassificationSamplesWithLabel

template<class TInputValue , class TOutputValue >
SamplesWithLabel otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::m_ClassificationSamplesWithLabel
protected

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Definition at line 180 of file otbTrainVectorBase.h.

◆ m_FeaturesInfo

template<class TInputValue , class TOutputValue >
FeaturesInfo otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::m_FeaturesInfo
protected

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Definition at line 182 of file otbTrainVectorBase.h.

◆ m_PredictedList

template<class TInputValue , class TOutputValue >
TargetListSampleType::Pointer otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::m_PredictedList
protected

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Definition at line 181 of file otbTrainVectorBase.h.

◆ m_TrainingSamplesWithLabel

template<class TInputValue , class TOutputValue >
SamplesWithLabel otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >::m_TrainingSamplesWithLabel
protected

Function which extract and store all samples for Training and Classification.

Parameters
measurementstatics measurement (mean/stddev)
featuresInfoinformation about the features

Definition at line 179 of file otbTrainVectorBase.h.


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