|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef HiEqualization_h
2 #define HiEqualization_h
24 class OverlapStatistics;
50 m_statsLeft = statsLeft;
51 m_statsRight = statsRight;
75 int getCCDType(
int ccd);
77 std::vector<int> movedIndices;
void addGain(double gain)
Definition: Equalization.h:155
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
void addOffset(double offset)
Definition: Equalization.h:159
virtual void fillOutList(FileList &outList, QString toListName)
Definition: HiEqualization.cpp:100
HiEqualization(QString fromListName)
Definition: HiEqualization.cpp:29
PvlGroup & group(const QString &group) const
Read a group from the cube into a Label.
Definition: Cube.cpp:1991
void setInput(int index, QString value)
Definition: Equalization.cpp:624
virtual void errorCheck(QString fromListName)
Checks that the input images have the same mapping groups and same number of bands.
Definition: HiEqualization.cpp:115
const FileList & getInputs() const
Definition: Equalization.cpp:629
void loadOutputs(FileList &outList, QString toListName)
Checks that the output image list is correct.
Definition: Equalization.cpp:702
virtual void addStats(Buffer &in) const
Definition: HiEqualization.cpp:217
Definition: HiEqualization.h:34
double Offset(const unsigned index) const
Returns the calculated offset (base) for the given data set.
Definition: OverlapNormalization.cpp:335
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Definition: HiEqualization.h:45
void setResults()
Creates the results pvl containing statistics and corrective factors.
Definition: Equalization.cpp:324
Process cubes by line.
Definition: ProcessByLine.h:97
Buffer for reading and writing cube data.
Definition: Buffer.h:53
HiCalculateFunctor(Statistics *stats, Statistics *statsLeft, Statistics *statsRight, double percent)
Definition: HiEqualization.h:47
void ProcessCubeInPlace(const Functor &funct, bool threaded=true)
Same functionality as StartProcess(void funct(Isis::Buffer &inout)) using Functors.
Definition: ProcessByLine.h:133
void clearAdjustments()
Frees image adjustments.
Definition: Equalization.cpp:733
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
AddStatus AddOverlap(const Statistics &area1, const unsigned index1, const Statistics &area2, const unsigned index2, double weight=1.0)
Attempts to add the given overlap data to a collection of valid overlaps, and returns the success or ...
Definition: OverlapNormalization.cpp:90
void SetText(const QString &text)
Changes the value of the text string reported just before 0% processed.
Definition: Progress.cpp:61
Calculate the bases and multipliers for normalizing overlapping "data sets" (e.g.,...
Definition: OverlapNormalization.h:61
Definition: Equalization.h:150
double Gain(const unsigned index) const
Returns the calculated gain (multiplier) for the given data set.
Definition: OverlapNormalization.cpp:314
Isis::Progress * Progress()
This method returns a pointer to a Progress object.
Definition: Process.h:259
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
void addAdjustment(ImageAdjustment *adjustment)
Adds an image adjustment.
Definition: Equalization.cpp:748
This class can be used to calculate, read in, and/or apply equalization statistics for a list of file...
Definition: Equalization.h:122
void generateOutputs(FileList &outList)
Generates the names of the equalized cubes if no output list is provided.
Definition: Equalization.cpp:684
void loadInputs(QString fromListName)
Loads in the input images.
Definition: Equalization.cpp:602
@ Both
Calculate both gains and offsets.
Definition: OverlapNormalization.h:126
virtual ~HiCalculateFunctor()
Definition: HiEqualization.h:54
void addValid(int count)
Increments the number of valid overlaps by a given amount.
Definition: Equalization.cpp:780
void calculateStatistics()
Definition: HiEqualization.cpp:39
virtual ~HiEqualization()
Definition: HiEqualization.cpp:35
void setSolved(bool solved)
Sets solved state indicating if OverlapNormalizations (corrective factors) were solved.
Definition: Equalization.cpp:899
int size() const
Returns the total number of pixels in the shape buffer.
Definition: Buffer.h:97
void loadHolds(OverlapNormalization *oNorm)
Definition: Equalization.cpp:724
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing.
Definition: Cube.cpp:627
Internalizes a list of files.
Definition: FileList.h:54
void Solve(SolutionType type=Both, LeastSquares::SolveMethod method=LeastSquares::QRD)
Attempts to solve the least squares equation for all data sets.
Definition: OverlapNormalization.cpp:147
Isis::Cube * SetInputCube(const QString ¶meter, const int requirements=0)
Opens an input cube specified by the user and verifies requirements are met.
Definition: ProcessByLine.cpp:41
double Average(const unsigned index) const
Returns the calculated average DN value for the given data set.
Definition: OverlapNormalization.cpp:293
void addAverage(double average)
Definition: Equalization.h:163
virtual void addStats(Buffer &in) const
Definition: Equalization.cpp:1003
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126