21 #ifndef otbSamplingRateCalculator_h
22 #define otbSamplingRateCalculator_h
24 #include "itkImageRegion.h"
25 #include "itkVectorContainer.h"
27 #include "OTBSamplingExport.h"
72 void SetNbOfSamplesAllClasses(
unsigned long);
75 void SetPercentageOfSamples(
double percent);
78 void SetTotalNumberOfSamples(
unsigned long value);
82 void SetMinimumNbOfSamplesByClass(
void);
85 void SetAllSamples(
void);
89 void Write(std::string filename);
93 void Read(std::string filename);
96 itkGetConstReferenceMacro(RatesByClass,
MapRateType);
104 void ClearRates(
void);
118 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
122 void operator=(
const Self&) =
delete;
125 void UpdateRate(
const std::string& name);