BioSignalPi  v2
convertecgtoibi.h
Go to the documentation of this file.
1 /*
2  * convertecgtoibi.h
3  *
4  * Created on: Nov 5, 2015
5  * Author: martin
6  */
7 
8 #ifndef CONVERTECGTOIBI_H_
9 #define CONVERTECGTOIBI_H_
10 
11 #include <QThread>
12 #include <QVector>
13 #include <QPointF>
14 #include <QTime>
15 
27 class ConvertEcgToIbi : public QThread
28 {
29  Q_OBJECT
30 
31 public:
37  ConvertEcgToIbi(QString fileName, QObject *parent = NULL);
38  virtual void run();
39 
40 signals:
47  void sendFileData(QVector<double> qrsPeaks, QVector<double> timeData);
48 
49 private:
50 
51  QString fname;
52  double sampRate=128;
53 
57  void saveAsIbiFile(QVector<double>*);
66  void extractRtoR(QVector<int>*,QVector<double>*);
67  QTime time;
68 };
74 int QRSDet(int,int);
75 
78 #endif // ConvertEcgToIbi_H
void sendFileData(QVector< double > qrsPeaks, QVector< double > timeData)
sendFileData
ConvertEcgToIbi(QString fileName, QObject *parent=NULL)
ConvertEcgToIbi.
Converts textfile with ECG-data into IBI file.
int QRSDet(int, int)
QRSDet Function used for the QRS-detection.
virtual void run()