21 #ifndef otbListSampleToBalancedListSampleFilter_h
22 #define otbListSampleToBalancedListSampleFilter_h
25 #include "itkDataObjectDecorator.h"
47 template <
class TInputSampleList,
class TLabelSampleList,
class TOutputSampleList = TInputSampleList>
116 itkSetMacro(BalancingFactor,
unsigned int);
117 itkGetMacro(BalancingFactor,
unsigned int);
122 void GenerateData()
override;
128 void ComputeMaxSampleFrequency();
132 using Superclass::MakeOutput;
138 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
153 #ifndef OTB_MANUAL_INSTANTIATION
This class generate a noised version of the input sample list.
itk::SmartPointer< Self > Pointer
This class is a base class for filters using ListSample as input and returning ListSample.
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
itk::DataObject::Pointer DataObjectPointer
This class generate a balanced ListSample in order to have fair distribution of learning samples.
LabelSampleListType::Pointer LabelSampleListPointer
OutputSampleListType::Pointer OutputSampleListPointer
itk::DataObjectDecorator< LabelSampleListType > LabelSampleListObjectType
TLabelSampleList LabelSampleListType
otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList > Superclass
~ListSampleToBalancedListSampleFilter() override
OutputSampleListType::MeasurementVectorType OutputMeasurementVectorType
InputSampleListType::MeasurementVectorType InputMeasurementVectorType
otbGetObjectMemberConstMacro(AddGaussianNoiseFilter, Mean, double)
TOutputSampleList OutputSampleListType
std::vector< unsigned int > m_MultiplicativeCoefficient
LabelSampleListType::ConstPointer LabelSampleListConstPointer
void operator=(const Self &)=delete
Superclass::DataObjectPointer DataObjectPointer
otbSetObjectMemberMacro(AddGaussianNoiseFilter, Mean, double)
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
OutputMeasurementVectorType::ValueType OutputValueType
LabelMeasurementVectorType::ValueType LabelValueType
InputSampleListType::Pointer InputSampleListPointer
GaussianAdditiveNoiseType::Pointer GaussianAdditiveNoisePointerType
ListSampleToBalancedListSampleFilter Self
itk::SmartPointer< const Self > ConstPointer
GaussianAdditiveNoisePointerType m_AddGaussianNoiseFilter
InputSampleListType::ConstPointer InputSampleListConstPointer
unsigned int m_BalancingFactor
InputMeasurementVectorType::ValueType InputValueType
otb::Statistics::GaussianAdditiveNoiseSampleListFilter< InputSampleListType, OutputSampleListType > GaussianAdditiveNoiseType
TInputSampleList InputSampleListType
otbSetObjectMemberMacro(AddGaussianNoiseFilter, Variance, double)
otbGetObjectMemberConstMacro(AddGaussianNoiseFilter, Variance, double)
OutputSampleListType::ConstPointer OutputSampleListConstPointer
itk::SmartPointer< Self > Pointer
ListSampleToBalancedListSampleFilter(const Self &)=delete
LabelSampleListType::MeasurementVectorType LabelMeasurementVectorType
This class is a base class for filters using ListSample as input and returning ListSample.
itk::DataObject::Pointer DataObjectPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.