Click here to Skip to main content
15,888,579 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 731.7K   38.4K   156  
Full open code project for making driver and application software for ECG medical measurements.
// ECG_DRAW.h: interface for the ECG_DRAW class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__INCLUDED_)
#define AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__INCLUDED_

#include "Person.h"	// Added by ClassView
#include "ECG_Info.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class AFX_EXT_CLASS ECG_DRAW  
{
public:
	void SetEcgInfo(CString info);
	void PrintBMP(CPerson* lpperson);
	void SaveBMP();
	void SetArr(double* srcECG,double *srcQRS,int lenght);
	void SetEcgDrawRect(CDC* pDC,CRect rDrawRect,int from,int to);
	ECG_DRAW();
	virtual ~ECG_DRAW();

private:
	int DrawPersonalInfo(CDC *pDC, int x, int y,CPerson* lpperson);

	CPerson person;
	int i_to;
	int i_from;
	void DrawFromTo(CDC* pDC,int d);
	void DrawQRS(CDC* pDC,int d);
	void DrawText(CDC* pDC,int d);
	CString s_BmpInfo;
	void DrawEcg(CDC* pDC,CRect rRect,int d);
	void DrawGrid(CDC* pDC,CRect rRect,int d,COLORREF color);
	float ECG[2500];
	float QRS[2500];
	void Draw();
	CRect m_rDrawRect;
	CDC* DC;
};

#endif // !defined(AFX_ECG_DRAW_H__3400DA62_9119_11D7_8A9A_F26D4DCAD47A__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