1 #ifndef OverlapStatistics_h 2 #define OverlapStatistics_h 80 QString progressMsg =
"Gathering Overlap Statistics",
81 double sampPercent = 100.0);
93 return (
p_stats[band-1].ValidPixels() > 0);
249 int MinCount()
const {
332 std::vector<Isis::MultivariateStatistics>
p_stats;
void SetMincount(unsigned int mincnt)
Sets the minimum number of valid pixels for the overlap to be considered valid for PVL output...
double p_sampPercent
Percentage of lines sampled.
int p_maxLineX
Ending Line of overlap in X cube.
Isis::FileName FileNameX() const
Returns the filename of the first cube.
Isis::FileName p_yFile
FileName of Y cube.
int EndSampleX() const
Returns the ending sample position of the overlap in the first cube.
int p_maxSampY
Ending Sample of overlap in Y cube.
int EndLineX() const
Returns the ending line position of the overlap in the first cube.
File name manipulation and expansion.
PvlObject toPvl(QString name="OverlapStatistics") const
Creates a Pvl containing the following Overlap Statistics information File1 File2 Width Height Bands ...
void init()
Reset member variables to default values.
int EndLineY() const
Returns the ending line position of the overlap in the second cube.
BigInt ValidPixels() const
Returns the number of valid pixels processed.
int Lines() const
Returns the number of lines in the overlapping area.
int StartLineY() const
Returns the starting line position of the overlap in the second cube.
void fromPvl(const PvlObject &inStats)
Unserialize overlap statistics from a Pvl.
int p_minSampX
Starting Sample of overlap in X cube.
int StartSampleY() const
Returns the starting sample position of the overlap in the second cube.
int p_minLineY
Starting Line of overlap in Y cube.
int p_maxLineY
Ending Line of overlap in Y cube.
Container of multivariate statistics.
Isis::MultivariateStatistics GetMStats(int band) const
Returns the MultivariateStatistics object containing all the data from both cubes in the overlapping ...
int p_maxSampX
Ending Sample of overlap in X cube.
double SampPercent() const
Returns the percentage of cube lines sampled.
int StartLineX() const
Returns the starting line position of the overlap in the first cube.
bool HasOverlap(int band) const
Checks the specified band for an overlap.
Calculates statistics in the area of overlap between two projected cubes.
int p_bands
Number of bands.
int Samples() const
Returns the number of samples in the overlapping area.
int Bands() const
Returns the number of bands both cubes have.
int p_minSampY
Starting Sample of overlap in Y cube.
Namespace for ISIS/Bullet specific routines.
bool IsValid(unsigned int band) const
Returns whether the overlap meets the minimum valid pixel requirement.
int p_mincnt
Minimum valid pixels to be valid overlap.
int EndSampleY() const
Returns the ending sample position of the overlap in the second cube.
int p_sampRange
Sample range of overlap.
Isis::FileName p_xFile
FileName of X cube.
int StartSampleX() const
Returns the starting sample position of the overlap in the first cube.
bool HasOverlap() const
Checks all bands of the cubes for an overlap, and will only return false if none of the bands overlap...
int p_lineRange
Line range of overlap.
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
std::vector< Isis::MultivariateStatistics > p_stats
Multivariate Stats object for overlap data from both cubes.
Contains Pvl Groups and Pvl Objects.
int p_minLineX
Starting Line of overlap in X cube.
OverlapStatistics(Isis::Cube &x, Isis::Cube &y, QString progressMsg="Gathering Overlap Statistics", double sampPercent=100.0)
Constructs an OverlapStatistics object.
Isis::FileName FileNameY() const
Returns the filename of the second cube.
IO Handler for Isis Cubes.