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
Read a xml file where are stored several statistics.
This class generate a shifted and scaled version of the input sample list.
This class represent an application TODO.
LearningApplicationBase is the base class for application that use machine learning model.
ModelType::TargetListSampleType TargetListSampleType
ModelType::InputListSampleType ListSampleType
ModelType::InputSampleType SampleType
void SetFieldNames(std::vector< std::string > fieldNames, std::vector< int > selectedIdx)
std::string m_SelectedCFieldName
std::vector< std::string > m_SelectedNames
std::vector< int > m_SelectedIdx
void SetClassFieldNames(std::vector< std::string > cFieldNames, std::vector< int > selectedCFieldIdx)
unsigned int m_NbFeatures
std::vector< int > m_SelectedCFieldIdx
ListSampleType::Pointer listSample
TargetListSampleType::Pointer labeledListSample
MeasurementType stddevMeasurementVector
MeasurementType meanMeasurementVector
LearningApplicationBase< TInputValue, TOutputValue > Superclass
otb::Statistics::ShiftScaleSampleListFilter< ListSampleType, ListSampleType > ShiftScaleFilterType
virtual void ExtractAllSamples(const ShiftScaleParameters &measurement)
otb::StatisticsXMLFileReader< SampleType > StatisticsReader
void DoUpdateParameters() override
virtual SamplesWithLabel ExtractClassificationSamplesWithLabel(const ShiftScaleParameters &measurement)
void DoExecute() override
SamplesWithLabel m_ClassificationSamplesWithLabel
itk::VariableLengthVector< ValueType > MeasurementType
TargetListSampleType::Pointer m_PredictedList
itk::SmartPointer< const Self > ConstPointer
Superclass::SampleType SampleType
SamplesWithLabel m_TrainingSamplesWithLabel
itk::SmartPointer< Self > Pointer
Superclass::ListSampleType ListSampleType
SamplesWithLabel ExtractSamplesWithLabel(std::string parameterName, std::string parameterLayer, const ShiftScaleParameters &measurement)
ShiftScaleParameters GetStatistics(unsigned int nbFeatures)
Superclass::TargetListSampleType TargetListSampleType
virtual SamplesWithLabel ExtractTrainingSamplesWithLabel(const ShiftScaleParameters &measurement)
FeaturesInfo m_FeaturesInfo
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.