|
Isis Developer Reference
|
Go to the documentation of this file.
60 std::vector<double> p_input;
61 std::vector<double> p_output;
77 std::pair<double, double> NextPair(QString &pairs);
85 void AddPair(
const double input,
const double output);
149 void Load(
Pvl &pvl, QString &grpName);
150 void Save(
Pvl &pvl, QString &grpName);
151 void Load(QString &file, QString &grpName);
152 void Save(QString &file, QString &grpName);
154 double Map(
const double value)
const;
156 void Parse(
const QString &pairs);
159 QString
Text()
const;
166 double Input(
const int index)
const;
167 double Output(
const int index)
const;
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
void SetMinimum(const double value)
Definition: Stretch.h:142
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:351
A single keyword-value pair.
Definition: PvlKeyword.h:82
void SetLis(const double value)
Sets the mapping for LIS pixels.
Definition: Stretch.h:105
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
void addValue(QString value, QString unit="")
Adds a value with units.
Definition: PvlKeyword.cpp:252
void SetMaximum(const double value)
Definition: Stretch.h:145
Pixel value mapper.
Definition: Stretch.h:58
bool IsNullPixel(const double d)
Returns if the input pixel is null.
Definition: SpecialPixel.h:235
bool IsHrsPixel(const double d)
Returns if the input pixel is high representation saturation.
Definition: SpecialPixel.h:271
Container for cube-like labels.
Definition: Pvl.h:119
void SetHrs(const double value)
Sets the mapping for HRS pixels.
Definition: Stretch.h:138
int Pairs() const
Returns the number of stretch pairs.
Definition: Stretch.h:162
void write(const QString &file)
Opens and writes PVL information to a file and handles the end of line sequence.
Definition: Pvl.cpp:130
const double HIGH_REPR_SAT8
Definition: SpecialPixel.h:116
void SetLrs(const double value)
Sets the mapping for LRS pixels.
Definition: Stretch.h:116
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
void SetHis(const double value)
Sets the mapping for HIS pixels.
Definition: Stretch.h:127
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void CopyPairs(const Stretch &other)
Copies the stretch pairs from another Stretch object, but maintains special pixel values.
Definition: Stretch.cpp:392
void Save(Pvl &pvl, QString &grpName)
Definition: Stretch.cpp:373
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.
Definition: Stretch.cpp:181
const double NULL8
Definition: SpecialPixel.h:94
void AddPair(const double input, const double output)
Adds a stretch pair to the list of pairs.
Definition: Stretch.cpp:48
void ClearPairs()
Clears the stretch pairs.
Definition: Stretch.h:170
const double HIGH_INSTR_SAT8
Definition: SpecialPixel.h:110
QString Text() const
Converts stretch pair to a string.
Definition: Stretch.cpp:268
Stretch()
Constructs a Stretch object with default mapping of special pixel values to themselves.
Definition: Stretch.cpp:25
Isis exception class.
Definition: IException.h:91
bool IsLisPixel(const double d)
Returns if the input pixel is low instrument saturation.
Definition: SpecialPixel.h:295
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
double Output(const int index) const
Returns the value of the output side of the stretch pair at the specified index.
Definition: Stretch.cpp:302
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
bool IsHisPixel(const double d)
Returns if the input pixel is high instrument saturation.
Definition: SpecialPixel.h:283
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:94
Namespace for the standard library.
Container of a cube histogram.
Definition: Histogram.h:74
bool IsValidPixel(const double d)
Returns if the input pixel is valid.
Definition: SpecialPixel.h:223
void Load(Pvl &pvl, QString &grpName)
Loads the stretch pairs from the pvl file into the Stretch object.
Definition: Stretch.cpp:342
int size() const
Returns the number of values stored in this keyword.
Definition: PvlKeyword.h:125
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
const double LOW_REPR_SAT8
Definition: SpecialPixel.h:98
const double LOW_INSTR_SAT8
Definition: SpecialPixel.h:104
~Stretch()
Destroys the Stretch object.
Definition: Stretch.h:83
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
double Input(const int index) const
Returns the value of the input side of the stretch pair at the specified index.
Definition: Stretch.cpp:287
double Map(const double value) const
Maps an input value to an output value based on the stretch pairs and/or special pixel mappings.
Definition: Stretch.cpp:69