|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbPatternSampler_h
22 #define otbPatternSampler_h
54 unsigned long MaxPatternSize = 0;
64 unsigned int Seed = 0;
78 if (m_Parameters != param)
95 void Reset(
void)
override;
101 bool TakeSample(
void);
107 static void ImportPatterns(
const std::string& data,
ParameterType& param);
113 static void ExportPatterns(
const ParameterType& param, std::string& data);
127 void operator=(
const Self&);
130 std::vector<bool> RandArray(
unsigned long N,
unsigned long T);
133 unsigned long FindBestSize(
unsigned long tot);
148 static unsigned int ParseSymbol(
const char& s);
std::vector< bool > Pattern1
std::vector< bool > Pattern2
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
This is a base class for sampling methods.
itk::SmartPointer< const Self > ConstPointer
ParameterType GetParameters()
~PatternSampler() override
ParameterType m_Parameters
constexpr bool operator!=(extents< StaticExtentsL... > const &lhs, extents< StaticExtentsR... > const &rhs)
void SetParameters(const ParameterType ¶m)
itk::SmartPointer< Self > Pointer
Periodic sampler for iteration loops.