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