22 static const char PREFIX[] =
"imageNoise.";
24 static const char UTC_TIME[] =
"timeUTC";
25 static const char NOISE_ESTIMATE[] =
"noiseEstimate.";
26 static const char REFERENCE_POINT[] =
"referencePoint";
27 static const char VALIDITY_RANGE_MIN[] =
"validityRangeMin";
28 static const char VALIDITY_RANGE_MAX[] =
"validityRangeMax";
29 static const char POLYNOMIAL_DEGREE[] =
"polynomialDegree";
30 static const char COEFFICIENT[] =
"coefficient";
31 static const char NOISE_ESTIMATE_CONFIDENCE[] =
"noiseEstimateConfidence";
35 _validityRangeMin(0.),
36 _validityRangeMax(0.),
39 _polynomialCoefficients(0)
49 _timeUTC(rhs._timeUTC),
50 _validityRangeMin(rhs._validityRangeMin),
51 _validityRangeMax(rhs._validityRangeMax),
52 _referencePoint(rhs._referencePoint),
53 _polynomialDegree(rhs._polynomialDegree),
54 _polynomialCoefficients(rhs._polynomialCoefficients)
80 pfx2 = pfx + NOISE_ESTIMATE;
98 static const char MODULE[] =
"ImageNoise::loadState";
107 const char* lookup = 0;
110 lookup = kwl.
find(pfx.c_str(), UTC_TIME);
119 << MODULE <<
" Keyword not found: " << UTC_TIME <<
" in "<<pfx.c_str()<<
" path.\n";
122 pfx2 = pfx + NOISE_ESTIMATE;
123 lookup = kwl.
find(pfx2.c_str(), VALIDITY_RANGE_MIN);
132 << MODULE <<
" Keyword not found: " << VALIDITY_RANGE_MIN <<
" in "<<pfx2.c_str()<<
" path.\n";
135 lookup = kwl.
find(pfx2.c_str(), VALIDITY_RANGE_MAX);
144 << MODULE <<
" Keyword not found: " << VALIDITY_RANGE_MAX <<
" in "<<pfx2.c_str()<<
" path\n";
147 lookup = kwl.
find(pfx2.c_str(), REFERENCE_POINT);
156 << MODULE <<
" Keyword not found: " << REFERENCE_POINT <<
" in "<<pfx2.c_str()<<
" path\n";
159 lookup = kwl.
find(pfx2.c_str(), POLYNOMIAL_DEGREE);
168 << MODULE <<
" Keyword not found: " << POLYNOMIAL_DEGREE <<
" in "<<pfx2.c_str()<<
" path\n";
176 lookup = kwl.
find(pfx2.c_str(), kw.
c_str());
185 << MODULE <<
" Keyword not found: " << kw.
c_str() <<
" in "<<pfx2.c_str()<<
" path\n";
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
Represents serializable keyword/value map.
const char * find(const char *key) const
virtual ~ImageNoise()
Destructor.
static ossimString toString(bool aValue)
Numeric to string methods.
ossim_int32 toInt32() const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
double _validityRangeMin
ValidityRangeMin (Noise/ImageNoise node).
This class represents an ImageNoise.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
double _referencePoint
Reference point (Noise/ImageNoise node).
std::vector< double > _polynomialCoefficients
Polynomial coefficients (Noise/ImageNoise node).
double _validityRangeMax
ValidityRangeMax (Noise/ImageNoise node).
ossimString _timeUTC
TimeUTC (Noise/ImageNoise node).
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
unsigned int _polynomialDegree
Polynomial degree (Noise/ImageNoise node).
ImageNoise & operator=(const ImageNoise &rhs)
Affectation operator.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)