|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef OverlapStatistics_h
2 #define OverlapStatistics_h
64 QString progressMsg =
"Gathering Overlap Statistics",
65 double sampPercent = 100.0);
77 return (p_stats[band-1].ValidPixels() > 0);
112 return p_stats[band-1];
148 return p_sampPercent;
300 double p_sampPercent;
316 std::vector<Isis::MultivariateStatistics> p_stats;
void SetBasePosition(const int start_sample, const int start_line, const int start_band)
This method is used to set the base position of the shape buffer.
Definition: Brick.h:120
int EndSampleY() const
Returns the ending sample position of the overlap in the second cube.
Definition: OverlapStatistics.h:201
int StartSampleX() const
Returns the starting sample position of the overlap in the first cube.
Definition: OverlapStatistics.h:156
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
virtual QString fileName() const
Returns the opened cube's filename.
Definition: Cube.cpp:1563
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:314
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
void CheckStatus()
Checks and updates the status.
Definition: Progress.cpp:105
A single keyword-value pair.
Definition: PvlKeyword.h:82
Functor for reduce using average functionality.
Definition: Reduce.h:107
int Samples() const
Returns the number of samples in the overlapping area.
Definition: OverlapStatistics.h:129
bool HasOverlap(int band) const
Checks the specified band for an overlap.
Definition: OverlapStatistics.h:76
double SampPercent() const
Returns the percentage of cube lines sampled.
Definition: OverlapStatistics.h:147
void read(Blob &blob, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >()) const
This method will read data from the specified Blob object.
Definition: Cube.cpp:807
File name manipulation and expansion.
Definition: FileName.h:100
BigInt ValidPixels() const
Returns the number of valid pixels processed.
Definition: MultivariateStatistics.cpp:201
void SetMaximumSteps(const int steps)
This sets the maximum number of steps in the process.
Definition: Progress.cpp:85
double * DoubleBuffer() const
Returns the value of the shape buffer.
Definition: Buffer.h:138
void AddSteps(const int steps)
If the initial step size was a guess, it can be modified using this method.
Definition: Progress.cpp:199
int Bands() const
Returns the number of bands both cubes have.
Definition: OverlapStatistics.h:138
double ToProjectionY(const double worldY) const
This method converts a world y value to a projection y value.
Definition: Projection.cpp:650
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:307
bool HasOverlap() const
Checks all bands of the cubes for an overlap, and will only return false if none of the bands overlap...
Definition: OverlapStatistics.cpp:175
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
int StartLineX() const
Returns the starting line position of the overlap in the first cube.
Definition: OverlapStatistics.h:174
PvlObject toPvl(QString name="OverlapStatistics") const
Creates a Pvl containing the following Overlap Statistics information File1 File2 Width Height Bands ...
Definition: OverlapStatistics.cpp:192
int EndSampleX() const
Returns the ending sample position of the overlap in the first cube.
Definition: OverlapStatistics.h:165
int EndLineY() const
Returns the ending line position of the overlap in the second cube.
Definition: OverlapStatistics.h:219
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::FileName FileNameY() const
Returns the filename of the second cube.
Definition: OverlapStatistics.h:96
int lineCount() const
Definition: Cube.cpp:1734
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Container of multivariate statistics.
Definition: MultivariateStatistics.h:54
int Lines() const
Returns the number of lines in the overlapping area.
Definition: OverlapStatistics.h:120
void SetText(const QString &text)
Changes the value of the text string reported just before 0% processed.
Definition: Progress.cpp:61
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
double ToWorldY(const double projectionY) const
This method converts a projection y value to a world y value.
Definition: Projection.cpp:594
int sampleCount() const
Definition: Cube.cpp:1807
int StartLineY() const
Returns the starting line position of the overlap in the second cube.
Definition: OverlapStatistics.h:210
IO Handler for Isis Cubes.
Definition: Cube.h:167
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
virtual int bandCount() const
Returns the number of virtual bands for the cube.
Definition: Cube.cpp:1410
bool IsValid(unsigned int band) const
Returns whether the overlap meets the minimum valid pixel requirement.
Definition: OverlapStatistics.h:244
Program progress reporter.
Definition: Progress.h:42
void setValue(QString value, QString unit="")
Sets new values.
Definition: PvlKeyword.cpp:155
OverlapStatistics(Isis::Cube &x, Isis::Cube &y, QString progressMsg="Gathering Overlap Statistics", double sampPercent=100.0)
Constructs an OverlapStatistics object.
Definition: OverlapStatistics.cpp:51
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
void SetMincount(unsigned int mincnt)
Sets the minimum number of valid pixels for the overlap to be considered valid for PVL output.
Definition: OverlapStatistics.h:229
std::ostream & operator<<(std::ostream &os, Isis::OverlapStatistics &stats)
Creates a pvl of various useful data obtained by the overlap statistics class.
Definition: OverlapStatistics.cpp:357
Namespace for the standard library.
PixelType pixelType() const
Definition: Cube.cpp:1758
double ToWorldX(const double projectionX) const
This method converts a projection x value to a world x value.
Definition: Projection.cpp:566
double ToProjectionX(const double worldX) const
This method converts a world x value to a projection x value.
Definition: Projection.cpp:622
Calculates statistics in the area of overlap between two projected cubes.
Definition: OverlapStatistics.h:61
int EndLineX() const
Returns the ending line position of the overlap in the first cube.
Definition: OverlapStatistics.h:183
int StartSampleY() const
Returns the starting sample position of the overlap in the second cube.
Definition: OverlapStatistics.h:192
Isis::FileName FileNameX() const
Returns the filename of the first cube.
Definition: OverlapStatistics.h:87
Base class for Map Projections.
Definition: Projection.h:155
Projection * projection()
Definition: Cube.cpp:1794
Isis::MultivariateStatistics GetMStats(int band) const
Returns the MultivariateStatistics object containing all the data from both cubes in the overlapping ...
Definition: OverlapStatistics.h:111
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
int MinCount() const
Definition: OverlapStatistics.h:233