Isis 3 Developer Reference
CorrelationMatrix.h
Go to the documentation of this file.
1 #ifndef CorrelationMatrix_h
2 #define CorrelationMatrix_h
3 
23 #include "FileName.h"
24 
25 #include <QDebug>
26 #include <QList>
27 #include <QMap>
28 #include <QString>
29 #include <QStringList>
30 
31 #include <boost/numeric/ublas/matrix_sparse.hpp>
32 
33 template <typename A, typename B> class QMap;
34 template <typename A> class QList;
35 
36 namespace Isis {
37  class FileName;
38  class MosaicSceneWidget;
39  class PvlObject;
40  class SparseBlockColumnMatrix;
41 
42 
73  public:
75  CorrelationMatrix(PvlObject storedMatrixData);
78 
80 
82  void retrieveVisibleElements(int x, int y);
83 
84  bool isValid();
85  bool hasCovMat();
86  //const bool hasCovMat() const;
87 
91 
93  //might need something called deleteLater(), called from MatrixTreeWidgetItem constructor.
94 
95  //if cov filename is null we need to ask the user to find it.
96 
100 
101  void retrieveWholeMatrix();
103 
104  // Need these for range used to pick colors....
106 
108 
109 
110  private:
112  QMap<QString, QStringList> *m_imagesAndParameters;
113 
115  FileName *m_covarianceFileName;
116 
118  FileName *m_correlationFileName;
119 
124  QList<double> *m_diagonals;
125 
130  QList<SparseBlockColumnMatrix> *m_visibleBlocks;
131  };
132 
133 };
134 
136 
137 #endif
void retrieveVisibleElements(int x, int y)
Extract requested area from correlation matrix This method will open the correlation matrix file and ...
Definition: CorrelationMatrix.cpp:281
void retrieveWholeMatrix()
This method will read the matrix in from the file and hold on to the whole thing. ...
Definition: CorrelationMatrix.cpp:419
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:72
FileName covarianceFileName()
Public access for the covariance matrix file name.
Definition: CorrelationMatrix.cpp:398
SparseBlockColumnMatrix.
Definition: SparseBlockMatrix.h:69
File name manipulation and expansion.
Definition: FileName.h:116
CorrelationMatrix()
Default Constructor.
Definition: CorrelationMatrix.cpp:21
void setCorrelationFileName(FileName correlationFileName)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:337
FileName correlationFileName()
Public access for the correlation matrix file name.
Definition: CorrelationMatrix.cpp:388
void computeCorrelationMatrix()
Read covariance matrix and compute correlation values This method reads the covariance matrix in from...
Definition: CorrelationMatrix.cpp:195
void setImagesAndParameters(QMap< QString, QStringList > imagesAndParameters)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:373
~CorrelationMatrix()
Destructor.
Definition: CorrelationMatrix.cpp:129
SparseBlockColumnMatrix correlationMatrixFromFile(QDataStream inStream)
PvlObject pvlObject()
This method creates a Pvl group with the information necessary to recreate this correlation matrix...
Definition: CorrelationMatrix.cpp:468
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:438
bool hasCovMat()
Check if the correlation matrix has a covariance matrix This is used to make sure the covariance matr...
Definition: CorrelationMatrix.cpp:327
void setCovarianceFileName(FileName covarianceFileName)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:351
bool isValid()
This is the public accessor for the list of elements that should be displayed in the current view...
Definition: CorrelationMatrix.cpp:313
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QList< SparseBlockColumnMatrix > * visibleBlocks()
Get the visible part of the matrix.
Definition: CorrelationMatrix.cpp:446
CorrelationMatrix & operator=(const CorrelationMatrix &other)
Equal Operator.
Definition: CorrelationMatrix.cpp:155
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
Definition: CubeIoHandler.h:38
QMap< QString, QStringList > * imagesAndParameters()
Public access for the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:409
Q_DECLARE_METATYPE(Isis::CorrelationMatrix)