|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
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
static void CleanFactories()
This class represent an application TODO.
Creation of object instance using object factory.
itk::SmartPointer< Self > Pointer
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)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::Statistics::ListSample< InputSampleType > ListSampleType
typename std::conditional< RegressionMode, float, unsigned int >::type LabelType
void DoUpdateParameters() override
void DoExecute() override
void AddPredictionField(otb::ogr::Layer &outLayer, otb::ogr::Layer const &layer, bool computeConfidenceMap)
itk::SmartPointer< const Self > ConstPointer
otb::ogr::DataSource::Pointer ReopenDataSourceInUpdateMode(ogr::DataSource::Pointer source, ogr::Layer &layer, ogr::DataSource::Pointer buffer)
This class generate a shifted and scaled version of the input sample list.
std::string confFieldName
itk::SmartPointer< Self > Pointer
ListSampleType::Pointer NormalizeListSample(ListSampleType::Pointer input)
Read a xml file where are stored several statistics.
itk::VariableLengthVector< ValueType > InputSampleType
MachineLearningModel is the base class for all classifier objects (SVM, KNN, Random Forests,...
itk::Statistics::ListSample< LabelSampleType > LabelListSampleType
itk::FixedArray< LabelType, 1 > LabelSampleType
itk::VariableLengthVector< ValueType > MeasurementType
void DoInitSpecialization()
typename MachineLearningModelType::Pointer ModelPointerType
Layer of geometric objects.
otb::ogr::DataSource::Pointer CreateOutputDataSource(ogr::Layer &layer)
typename MachineLearningModelType::ConfidenceListSampleType ConfidenceListSampleType
bool shouldComputeConfidenceMap() const