|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
20 #ifndef otbTrainVectorBase_h
21 #define otbTrainVectorBase_h
31 #include "itkVariableLengthVector.h"
34 #include "itkListSample.h"
46 template <
class TInputValue,
class TOutputValue>
114 void SetFieldNames(std::vector<std::string> fieldNames, std::vector<int> selectedIdx)
117 m_NbFeatures =
static_cast<unsigned int>(selectedIdx.size());
128 if (selectedCFieldIdx.empty())
169 SamplesWithLabel
ExtractSamplesWithLabel(std::string parameterName, std::string parameterLayer,
const ShiftScaleParameters& measurement);
191 #ifndef OTB_MANUAL_INSTANTIATION
This class represent an application TODO.
Superclass::SampleType SampleType
ModelType::InputListSampleType ListSampleType
LearningApplicationBase is the base class for application that use machine learning model.
SamplesWithLabel m_TrainingSamplesWithLabel
MeasurementType stddevMeasurementVector
std::vector< int > m_SelectedIdx
std::string m_SelectedCFieldName
void DoUpdateParameters() override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
void SetClassFieldNames(std::vector< std::string > cFieldNames, std::vector< int > selectedCFieldIdx)
void SetFieldNames(std::vector< std::string > fieldNames, std::vector< int > selectedIdx)
FeaturesInfo m_FeaturesInfo
SamplesWithLabel ExtractSamplesWithLabel(std::string parameterName, std::string parameterLayer, const ShiftScaleParameters &measurement)
itk::SmartPointer< const Self > ConstPointer
ListSampleType::Pointer listSample
TargetListSampleType::Pointer m_PredictedList
Superclass::ListSampleType ListSampleType
itk::SmartPointer< Self > Pointer
virtual void ExtractAllSamples(const ShiftScaleParameters &measurement)
ModelType::TargetListSampleType TargetListSampleType
LearningApplicationBase< TInputValue, TOutputValue > Superclass
std::vector< std::string > m_SelectedNames
ShiftScaleParameters GetStatistics(unsigned int nbFeatures)
void DoExecute() override
This class generate a shifted and scaled version of the input sample list.
SamplesWithLabel m_ClassificationSamplesWithLabel
otb::StatisticsXMLFileReader< SampleType > StatisticsReader
virtual SamplesWithLabel ExtractClassificationSamplesWithLabel(const ShiftScaleParameters &measurement)
ModelType::InputSampleType SampleType
otb::Statistics::ShiftScaleSampleListFilter< ListSampleType, ListSampleType > ShiftScaleFilterType
Read a xml file where are stored several statistics.
unsigned int m_NbFeatures
Superclass::TargetListSampleType TargetListSampleType
virtual SamplesWithLabel ExtractTrainingSamplesWithLabel(const ShiftScaleParameters &measurement)
std::vector< int > m_SelectedCFieldIdx
MeasurementType meanMeasurementVector
itk::VariableLengthVector< ValueType > MeasurementType
TargetListSampleType::Pointer labeledListSample