|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef StatisticsTool_h
2 #define StatisticsTool_h
107 bool p_showDeviation;
137 void getStatistics(QPoint p);
141 QScrollArea *p_visualScroll;
142 QGroupBox *p_visualBox;
148 QLabel *p_stdevLabel;
152 QLineEdit *p_sampsEdit;
153 QLineEdit *p_linesEdit;
164 void changeBoxSamples();
165 void changeBoxLines();
int cubeLines() const
Return the number of lines in the cube.
Definition: CubeViewport.cpp:439
QString PixelToString(double d)
Takes a double pixel value and returns the name of the pixel type as a string.
Definition: SpecialPixel.h:371
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void SetMinimum(const double value)
Definition: Stretch.h:142
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
Definition: Statistics.cpp:420
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:351
void SetLis(const double value)
Sets the mapping for LIS pixels.
Definition: Stretch.h:105
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
void SetMaximum(const double value)
Definition: Stretch.h:145
Pixel value mapper.
Definition: Stretch.h:58
Tool to visualize statistics in an n * m box.
Definition: StatisticsTool.h:48
VisualDisplay(QWidget *parent=0)
Constructor for visual display.
Definition: StatisticsTool.cpp:422
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:403
void setLine(const QString st)
Signal to set the Line label to st.
void Reset()
Reset all accumulators and counters to zero.
Definition: Statistics.cpp:113
void mouseMoveEvent(QMouseEvent *event)
Called when the mouse moves over this widget.
Definition: StatisticsTool.cpp:717
void SetHrs(const double value)
Sets the mapping for HRS pixels.
Definition: Stretch.h:138
void showDeviation(bool b)
Show/Hide deviation.
Definition: StatisticsTool.cpp:562
void SetLrs(const double value)
Sets the mapping for LRS pixels.
Definition: Stretch.h:116
void setLines(int lines)
Set box line size.
Definition: StatisticsTool.cpp:479
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
void SetHis(const double value)
Sets the mapping for HIS pixels.
Definition: Stretch.h:127
void setSample(const QString st)
Signal to set the Sample label to st.
void setPixelData(QVector< QVector< double > > data, int samp, int line)
Set pixel data and upper left sample/line.
Definition: StatisticsTool.cpp:580
int grayBand() const
Definition: CubeViewport.h:194
void leaveEvent(QEvent *event)
Mouse left widget, update labels.
Definition: StatisticsTool.cpp:745
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:312
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: Histogram.cpp:232
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:382
void setDn(const QString st)
Signal to set the DN label to st.
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
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
Definition: Statistics.cpp:625
void updateSize()
Update the size of the box.
Definition: StatisticsTool.cpp:505
int cubeSamples() const
Return the number of samples in the cube.
Definition: CubeViewport.cpp:433
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
QSize sizeHint() const
Size hint for this widget.
Definition: StatisticsTool.cpp:456
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:300
void setSamples(int samps)
Set box sample size.
Definition: StatisticsTool.cpp:465
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:94
PixelType pixelType() const
Definition: Cube.cpp:1758
Container of a cube histogram.
Definition: Histogram.h:74
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
Definition: Statistics.cpp:598
void showText(bool b)
Show/Hide text.
Definition: StatisticsTool.cpp:529
void viewportToCube(int x, int y, double &sample, double &line) const
Turns a viewport into a cube.
Definition: CubeViewport.cpp:815
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
void showPixels(bool b)
Show/Hide pixels.
Definition: StatisticsTool.cpp:546
Cube * cube() const
Definition: CubeViewport.h:338
void paintEvent(QPaintEvent *event)
Paint pixmap to the widget.
Definition: StatisticsTool.cpp:702
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
void setBoxSize(int size)
Set box size in pixels.
Definition: StatisticsTool.cpp:493
void paintPixmap()
Paint the pixmap.
Definition: StatisticsTool.cpp:624
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