Isis 3 Programmer Reference
CorrelationMatrix.h
1 #ifndef CorrelationMatrix_h
2 #define CorrelationMatrix_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "FileName.h"
13 
14 #include <QDebug>
15 #include <QList>
16 #include <QMap>
17 #include <QString>
18 #include <QStringList>
19 
20 #include <boost/numeric/ublas/matrix_sparse.hpp>
21 
22 template <typename A, typename B> class QMap;
23 template <typename A> class QList;
24 
25 namespace Isis {
26  class FileName;
27  class MosaicSceneWidget;
28  class PvlObject;
29  class SparseBlockColumnMatrix;
30 
31 
62  public:
64  CorrelationMatrix(PvlObject storedMatrixData);
67 
69 
71  void retrieveVisibleElements(int x, int y);
72 
73  bool isValid();
74  bool hasCovMat();
75  //const bool hasCovMat() const;
76 
80 
81  SparseBlockColumnMatrix correlationMatrixFromFile(QDataStream inStream);
82  //might need something called deleteLater(), called from MatrixTreeWidgetItem constructor.
83 
84  //if cov filename is null we need to ask the user to find it.
85 
89 
90  void retrieveWholeMatrix();
92 
93  // Need these for range used to pick colors....
95 
97 
98 
99  private:
102 
105 
108 
114 
120  };
121 
122 };
123 
125 
126 #endif
Isis::CorrelationMatrix::correlationFileName
FileName correlationFileName()
Public access for the correlation matrix file name.
Definition: CorrelationMatrix.cpp:396
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::SparseBlockColumnMatrix
SparseBlockColumnMatrix.
Definition: SparseBlockMatrix.h:58
Isis::CorrelationMatrix::~CorrelationMatrix
~CorrelationMatrix()
Destructor.
Definition: CorrelationMatrix.cpp:137
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::CorrelationMatrix::m_imagesAndParameters
QMap< QString, QStringList > * m_imagesAndParameters
This map holds the images used to create this matrix and their associated parameters.
Definition: CorrelationMatrix.h:101
Isis::CorrelationMatrix::setImagesAndParameters
void setImagesAndParameters(QMap< QString, QStringList > imagesAndParameters)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:381
Isis::CorrelationMatrix::CorrelationMatrix
CorrelationMatrix()
Default Constructor.
Definition: CorrelationMatrix.cpp:29
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::CorrelationMatrix::retrieveVisibleElements
void retrieveVisibleElements(int x, int y)
Extract requested area from correlation matrix This method will open the correlation matrix file and ...
Definition: CorrelationMatrix.cpp:289
Isis::CorrelationMatrix::covarianceFileName
FileName covarianceFileName()
Public access for the covariance matrix file name.
Definition: CorrelationMatrix.cpp:406
Isis::CorrelationMatrix::computeCorrelationMatrix
void computeCorrelationMatrix()
Read covariance matrix and compute correlation values This method reads the covariance matrix in from...
Definition: CorrelationMatrix.cpp:203
Isis::CorrelationMatrix::pvlObject
PvlObject pvlObject()
This method creates a Pvl group with the information necessary to recreate this correlation matrix.
Definition: CorrelationMatrix.cpp:476
Isis::CorrelationMatrix
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:61
Isis::CorrelationMatrix::m_correlationFileName
FileName * m_correlationFileName
FileName of the correlation matrix.
Definition: CorrelationMatrix.h:107
Isis::CorrelationMatrix::retrieveThreeVisibleBlocks
void retrieveThreeVisibleBlocks()
Display only part of a matrix This method will be used when the matrix is too big to display the whol...
Definition: CorrelationMatrix.cpp:446
Isis::CorrelationMatrix::operator=
CorrelationMatrix & operator=(const CorrelationMatrix &other)
Equal Operator.
Definition: CorrelationMatrix.cpp:163
Isis::CorrelationMatrix::m_diagonals
QList< double > * m_diagonals
List of the parameter values.
Definition: CorrelationMatrix.h:113
Isis::CorrelationMatrix::setCovarianceFileName
void setCovarianceFileName(FileName covarianceFileName)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:359
Isis::CorrelationMatrix::hasCovMat
bool hasCovMat()
Check if the correlation matrix has a covariance matrix This is used to make sure the covariance matr...
Definition: CorrelationMatrix.cpp:335
Isis::CorrelationMatrix::m_covarianceFileName
FileName * m_covarianceFileName
FileName of the covariance matrix calculated when the bundle was run.
Definition: CorrelationMatrix.h:104
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Isis::CorrelationMatrix::isValid
bool isValid()
This is the public accessor for the list of elements that should be displayed in the current view.
Definition: CorrelationMatrix.cpp:321
Isis::CorrelationMatrix::m_visibleBlocks
QList< SparseBlockColumnMatrix > * m_visibleBlocks
This will be the three blocks (or whole matrix depending on size) that apply to the given area.
Definition: CorrelationMatrix.h:119
Isis::CorrelationMatrix::visibleBlocks
QList< SparseBlockColumnMatrix > * visibleBlocks()
Get the visible part of the matrix.
Definition: CorrelationMatrix.cpp:454
Isis::CorrelationMatrix::imagesAndParameters
QMap< QString, QStringList > * imagesAndParameters()
Public access for the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:417
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CorrelationMatrix::setCorrelationFileName
void setCorrelationFileName(FileName correlationFileName)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:345
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
Isis::CorrelationMatrix::retrieveWholeMatrix
void retrieveWholeMatrix()
This method will read the matrix in from the file and hold on to the whole thing.
Definition: CorrelationMatrix.cpp:427