21 #ifndef otbSamplingRateCalculator_h
22 #define otbSamplingRateCalculator_h
24 #include "itkImageRegion.h"
25 #include "itkVectorContainer.h"
27 #include "OTBSamplingExport.h"
89 void Write(std::string filename);
93 void Read(std::string filename);
118 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
This class is a sampling rate calculator.
void SetMinimumNbOfSamplesByClass(void)
void Read(std::string filename)
std::map< std::string, unsigned long > ClassCountMapType
void SetTotalNumberOfSamples(unsigned long value)
void operator=(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
void UpdateRate(const std::string &name)
SamplingRateCalculator(const Self &)=delete
void SetNbOfSamplesAllClasses(unsigned long)
static ClassCountMapType ReadRequiredSamples(const std::string &filename)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
std::map< std::string, TripletType > MapRateType
void SetNbOfSamplesByClass(const ClassCountMapType &required)
void SetClassCount(const ClassCountMapType &map)
~SamplingRateCalculator() override
ClassCountMapType::const_iterator constItMapType
void Write(std::string filename)
void SetPercentageOfSamples(double percent)
itk::SmartPointer< Self > Pointer
MapRateType m_RatesByClass
SamplingRateCalculator Self
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
bool operator==(const struct Triplet &triplet) const