21 #ifndef otbLabelMapToSampleListFilter_h
22 #define otbLabelMapToSampleListFilter_h
26 #include "itkProcessObject.h"
43 template <
class TInputLabelMap,
class TOutputSampleList,
44 class TMeasurementFunctor =
45 Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
89 m_MeasurementFunctor = functor;
94 return m_MeasurementFunctor;
101 void GenerateData()
override;
104 DataObjectPointerType MakeOutput(DataObjectPointerArraySizeType idx)
override;
105 using Superclass::MakeOutput;
107 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
119 #ifndef OTB_MANUAL_INSTANTIATION
This class converts a LabelObjectMap to a SampleList for learning and classification.
void SetMeasurementFunctor(const MeasurementFunctorType &functor)
InputLabelMapType::LabelObjectType LabelObjectType
MeasurementFunctorType m_MeasurementFunctor
TMeasurementFunctor MeasurementFunctorType
void operator=(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Superclass::DataObjectPointer DataObjectPointerType
LabelMapToSampleListFilter Self
InputLabelMapType::ConstPointer InputLabelMapConstPointerType
InputLabelMapType::ConstIterator ConstIteratorType
MeasurementFunctorType & GetMeasurementFunctor()
LabelMapToSampleListFilter(const Self &)=delete
itk::ProcessObject Superclass
itk::SmartPointer< Self > Pointer
TInputLabelMap InputLabelMapType
OutputSampleListType::MeasurementVectorType MeasurementVectorType
OutputSampleListType::Pointer OutputSampleListPointerType
TOutputSampleList OutputSampleListType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.