Click here to Skip to main content
15,886,110 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.
// ECG_Statistic_View1.h: interface for the ECG_Statistic_View class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ECG_STATISTIC_VIEW1_H__7736E5AB_94EF_11D7_8A9A_EE431EB0DF7A__INCLUDED_)
#define AFX_ECG_STATISTIC_VIEW1_H__7736E5AB_94EF_11D7_8A9A_EE431EB0DF7A__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 Statistic_View  
{
public:
	void PrintBMP(CPerson* lpperson,CEcg_Info* einfo);

	CString s_BmpInfo;
	int i_to;//draw specific array fro ECG 1/5 of the all lenght
	int i_from;//draw from spesific element in ECG array
	CDC* DC;
	CRect m_rDrawRect;
	void Statistic_View::DrawFromTo(CDC *pDC,int d);
	void Statistic_View::DrawText(CDC *pDC,int d);
	void Statistic_View::SetInfo(CString s_info);
	void Statistic_View::DrawEcg(CDC *pDC, CRect rRect,int d);
	void Statistic_View::DrawGrid(CDC *pDC,CRect rRect,int d);
	void Statistic_View::SetArr(double *QRS_COUNTsrc,double *PWTsrc, int lenght);
	void Statistic_View::Draw(int d);
	void Statistic_View::SetEcgDrawRect(CDC* pDC,CRect rDrawRect,int from,int to);
	Statistic_View();
	virtual ~Statistic_View();

private:
	int DrawECGInformation(CDC *pDC, int x, int y,CEcg_Info* einfo);
	int DrawPersonalInfo(CDC* pDC,int x,int y,CPerson *lpperson);
	CEcg_Info *Ecg_Info;
	CPerson person;
	int dy;
	float PWT[2500];
	float QRS_COUNT[2500];
};

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