21 #ifndef otbVectorPrediction_h
22 #define otbVectorPrediction_h
30 #include "itkVariableLengthVector.h"
33 #include "itkListSample.h"
47 template <
bool RegressionMode>
65 using
LabelType = typename std::conditional<RegressionMode,
float,
unsigned int>::type;
121 typename ConfidenceListSampleType::Pointer quality,
bool updateMode,
bool computeConfidenceMap);
131 #ifndef OTB_MANUAL_INSTANTIATION
Creation of object instance using object factory.
static void CleanFactories()
MachineLearningModel is the base class for all classifier objects (SVM, KNN, Random Forests,...
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.
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
otb::ogr::DataSource::Pointer CreateOutputDataSource(ogr::Layer &layer)
void DoExecute() override
itk::VariableLengthVector< ValueType > MeasurementType
ListSampleType::Pointer ReadInputListSample(otb::ogr::Layer const &layer)
void FillOutputLayer(otb::ogr::Layer &outLayer, otb::ogr::Layer const &layer, typename LabelListSampleType::Pointer target, typename ConfidenceListSampleType::Pointer quality, bool updateMode, bool computeConfidenceMap)
itk::VariableLengthVector< ValueType > InputSampleType
typename MachineLearningModelType::ConfidenceListSampleType ConfidenceListSampleType
bool shouldComputeConfidenceMap() const
std::string confFieldName
ListSampleType::Pointer NormalizeListSample(ListSampleType::Pointer input)
void AddPredictionField(otb::ogr::Layer &outLayer, otb::ogr::Layer const &layer, bool computeConfidenceMap)
void DoUpdateParameters() override
itk::FixedArray< LabelType, 1 > LabelSampleType
itk::Statistics::ListSample< LabelSampleType > LabelListSampleType
typename MachineLearningModelType::Pointer ModelPointerType
itk::Statistics::ListSample< InputSampleType > ListSampleType
void DoInitSpecialization()
typename std::conditional< RegressionMode, float, unsigned int >::type LabelType
otb::ogr::DataSource::Pointer ReopenDataSourceInUpdateMode(ogr::DataSource::Pointer source, ogr::Layer &layer, ogr::DataSource::Pointer buffer)
itk::SmartPointer< Self > Pointer
Layer of geometric objects.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.