Click here to Skip to main content
15,885,890 members
Articles / Programming Languages / C++

ECG recording, storing, filtering and recognition

Rate me:
Please Sign up or sign in to vote.
4.72/5 (110 votes)
14 Apr 200411 min read 729.8K   38.4K   156  
Full open code project for making driver and application software for ECG medical measurements.
// DSP_ECG.h: interface for the DSP_ECG class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DSP_ECG_H__E0F5FD80_97A3_11D7_8A9A_96F3FFD7D17A__INCLUDED_)
#define AFX_DSP_ECG_H__E0F5FD80_97A3_11D7_8A9A_96F3FFD7D17A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DSP_Filter.h"

class DSP_ECG 
{
public:
	void SetECG(double* ARECG,int lenght,double* destMINMAX,int* qrs_count,int* qrs_ms,int* pr_ms,int* qt_qtc_ms,int select_segment);
	DSP_ECG();
	virtual ~DSP_ECG();

private:
	void MoveArr(double* dest,double* source,int lenght);
	DSP_Filter dsp_flf;
	void ZeroAll();
	double arMark[5000];
	double arPR[5000];
	double arQT[5000];
	double arECG[5000];
	double arQRS[5000];
	double arD1[5000];
	double arD2[5000];
	int ms_QT_QTc(double *ECG, int lenght, double *D1, double *D2);
	int ms_PR(double *ECG, int lenght, double *D1, double *D2);
	int ms_QRS(double* ECG,int lenght,double* D1,double* D2);
	int QRS_COUNT(double* ECG,int lenght,double* destminmax);
};

#endif // !defined(AFX_DSP_ECG_H__E0F5FD80_97A3_11D7_8A9A_96F3FFD7D17A__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Systems Engineer
Bulgaria Bulgaria
PhD, Cum Laude in digital automation systems
M.S. in Telemommunication management
B.S. in Telecommunication systems engineering
Programming: CUDA, C/C++, VHDL
Software and Hardware development and consulting:
data acquisition, image processing, medical instrumentation

Comments and Discussions