21 #ifndef otbLabelMapClassifier_h
22 #define otbLabelMapClassifier_h
24 #include "itkInPlaceLabelMapFilter.h"
26 #include "itkListSample.h"
41 template <
class TInputLabelMap>
47 typedef itk::InPlaceLabelMapFilter<TInputLabelMap>
Superclass;
61 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputLabelMap::ImageDimension);
79 m_MeasurementFunctor = functor;
84 return m_MeasurementFunctor;
93 void ReleaseInputs()
override;
110 #ifndef OTB_MANUAL_INSTANTIATION
Classify each LabelObject of the input LabelMap in place.
LabelMapType::LabelObjectType LabelObjectType
MeasurementFunctorType m_MeasurementFunctor
MachineLearningModel< AttributesValueType, ClassLabelType > ModelType
LabelObjectType::AttributesValueType AttributesValueType
LabelMapType::Pointer LabelMapPointer
LabelMapType::ConstPointer LabelMaponstPointer
Functor::AttributesMapMeasurementFunctor< LabelObjectType, MeasurementVectorType > MeasurementFunctorType
itk::SmartPointer< const Self > ConstPointer
LabelObjectType::ClassLabelType ClassLabelType
TInputLabelMap LabelMapType
itk::SmartPointer< Self > Pointer
void operator=(const Self &)=delete
void SetMeasurementFunctor(const MeasurementFunctorType &functor)
ModelType::InputSampleType MeasurementVectorType
ModelType::Pointer ModelPointer
MeasurementFunctorType & GetMeasurementFunctor()
~LabelMapClassifier() override=default
LabelMapClassifier(const Self &)=delete
itk::InPlaceLabelMapFilter< TInputLabelMap > Superclass
MachineLearningModel is the base class for all classifier objects (SVM, KNN, Random Forests,...
itk::SmartPointer< Self > Pointer
MLMSampleTraits< TInputValue >::SampleType InputSampleType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.