91 std::pair<double, double>
NextPair(QString &pairs);
99 void AddPair(
const double input,
const double output);
156 void SetMinimum(
const double value) {
159 void SetMaximum(
const double value) {
163 void Load(Pvl &pvl, QString &grpName);
164 void Save(Pvl &pvl, QString &grpName);
165 void Load(QString &file, QString &grpName);
166 void Save(QString &file, QString &grpName);
168 double Map(
const double value)
const;
170 void Parse(
const QString &pairs);
173 QString
Text()
const;
180 double Input(
const int index)
const;
181 double Output(
const int index)
const;
double Input(const int index) const
Returns the value of the input side of the stretch pair at the specified index.
double Map(const double value) const
Maps an input value to an output value based on the stretch pairs and/or special pixel mappings...
double p_null
Mapping of input NULL values go to this value (default NULL)
void SetLis(const double value)
Sets the mapping for LIS pixels.
int Pairs() const
Returns the number of stretch pairs.
std::pair< double, double > NextPair(QString &pairs)
Given a string containing stretch pairs for example "0:0 50:0 100:255 255:255" evaluate the first pai...
double p_his
Mapping of input HIS values go to this value (default HIS)
void AddPair(const double input, const double output)
Adds a stretch pair to the list of pairs.
double p_hrs
Mapping of input HRS values go to this value (default HRS)
void SetHrs(const double value)
Sets the mapping for HRS pixels.
void CopyPairs(const Stretch &other)
Copies the stretch pairs from another Stretch object, but maintains special pixel values...
int p_pairs
Number of stretch pairs.
Container of a cube histogram.
void SetLrs(const double value)
Sets the mapping for LRS pixels.
double Output(const int index) const
Returns the value of the output side of the stretch pair at the specified index.
void SetHis(const double value)
Sets the mapping for HIS pixels.
QString Text() const
Converts stretch pair to a string.
double p_lis
Mapping of input LIS values go to this value (default LIS)
Stretch()
Constructs a Stretch object with default mapping of special pixel values to themselves.
void Parse(const QString &pairs)
Parses a string of the form "i1:o1 i2:o2...iN:oN" where each i:o represents an input:output pair...
std::vector< double > p_input
Array for input side of stretch pairs.
void ClearPairs()
Clears the stretch pairs.
~Stretch()
Destroys the Stretch object.
Namespace for ISIS/Bullet specific routines.
void Load(Pvl &pvl, QString &grpName)
Loads the stretch pairs from the pvl file into the Stretch object.
double p_maximum
By default this value is set to p_hrs.
void SetNull(const double value)
Sets the mapping for NULL pixels.
double p_lrs
Mapping of input LRS values go to this value (default LRS)
double p_minimum
By default this value is set to p_lrs.
std::vector< double > p_output
Array for output side of stretch pairs.