aboutsummaryrefslogtreecommitdiff
path: root/distortionobserver.h
blob: 101c53d14d84e5d001cd59fac1029b6443cf02b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef DISTORTIONOBSERVER_H
#define DISTORTIONOBSERVER_H

#include <QObject>
#include <armadillo>

#include "distortionmeasure.h"

class DistortionObserver : public QObject
{
    Q_OBJECT
public:
    DistortionObserver(const arma::mat &X, const arma::uvec &sampleIndices);
    void setMeasure(DistortionMeasure *measure);

signals:
    void mapChanged(const arma::vec &distortion);

public slots:
    void setMap(const arma::mat &Y);

private:
    arma::mat m_X, m_Y, m_distX;
    arma::uvec m_sampleIndices;
    DistortionMeasure *m_distortionMeasure;
    arma::vec m_measures;
};

#endif // DISTORTIONOBSERVER_H