Click here to Skip to main content
11,576,063 members (57,731 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

ECG recording, storing, filtering and recognition

, 14 Apr 2004 450.9K 27K 141
Full open code project for making driver and application software for ECG medical measurements.
ecg_dsp_src.zip
drvECG_1
drvECG_1.clw
drvECG_1.def
drvECG_1.dsp
drvECG_1.dsw
drvECG_1.exp
drvECG_1.ilk
drvECG_1.lib
res
Ecg_1
ECG_1.clw
ECG_1.dsp
ECG_1.dsw
ECG_DRAW.obj
ECG_Statistic_View.lib
ECG_VIEW.exp
ECG_VIEW.ilk
ECG_VIEW.lib
TestOCX.ocx
drvECG_1.exp
drvECG_1.ilk
drvECG_1.lib
resource.hm
res
ECG_1.ico
bitmap1.bmp
bmp00001.bmp
setup.bmp
ECG_Statistic_View
ECG_Statistic_View.clw
ECG_Statistic_View.def
ECG_Statistic_View.dsp
ECG_Statistic_View.dsw
res
ECG_VIEW
ECG_DRAW.obj
ECG_VIEW.APS
ECG_VIEW.clw
ECG_VIEW.def
ECG_VIEW.dll
ECG_VIEW.dsp
ECG_VIEW.dsw
ECG_VIEW.exp
ECG_VIEW.lib
res
testrecord2.zip
georgi.ecg
test_file1.zip
test_file1.ecg
// DSP_Filter.h: interface for the DSP_Filter class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DSP_FILTER_H__2649F000_8C49_11D7_8A9A_DF0DA3FB6A79__INCLUDED_)
#define AFX_DSP_FILTER_H__2649F000_8C49_11D7_8A9A_DF0DA3FB6A79__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class DSP_Filter  
{
public:
	void Amplifier(double* dest,double* source,int lenght,double ampl);
	double FindMin(double* source,int lenght);
	double FindMax(double* source,int lenght);
	void WFilter_Low40Hz(double*dest,double*source,int lenght,int fsmpl,double cf);

	void WFilter_Noht(double* dest,double* source,int lenght,int fsmpl,double cf);
	void WFilter_Low100Hz(double* dest,double* source,int lenght,int fsmpl,double cf);
	void LoadFilterKernels(int fsmpl);
	
	void Message(double var);
	double StandardDeviation(double* source,int lenght);
	void Delta1(double* dest,double* source,int lenght);
	void Delta2(double* dest,double* source,int lenght);
	void DeltaReverse1(double* dest,double* source,int lenght);
	void DeltaReverse2(double* dest,double* source,int lenght);
	
	double Mean(double *source, int lenght);
	void SetArrToNormalize(double *dest,int lenght);
	void NormalizeArr(double *ar, double mean, int lenght);
	
	void InvertArr(double* dest,double* source,int lenght);
	void WFilter_High(double* dest,double* source,int lenght,double amp,int fsmpl,double fk);
	void RFilter_Noht(double* dest,int lenght,int fsmpl,double fcut,double bw);
	double* X;
	double* Y;
	void RFilter_Low(double* dest,int lenght,int fsmpl,double fk);
	DSP_Filter();
	virtual ~DSP_Filter();

private:

	int CreateWF40Low(int fsmpl,int f_kernel);
	int CreateWFLow(int fsmpl,int f_kernel);
	int CreateWFHigh(int fsmpl,int f_kernel);
	int CreateWF50Noht(int fsmpl,int f_kernel);

	double L40HZ[100];
	double H[200];
	double L[100];
	double B1[100];
	double B2[100];

	void SlideArrRight(double* dest,double* source,int lenght,int slide);
	void SlideArrLeft(double* dest,double* source,int lenght,int slide);
	
	bool b_arr_flag;
	void Delete_Arrs();
	void Greate_Arrs(int new_lenght);
	double PI;
	void MoveArr(double* dest,double* source, int lenght);
	void ZeroArrs(int lenght);
};

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

Share

About the Author

Georgi Petrov
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

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 15 Apr 2004
Article Copyright 2003 by Georgi Petrov
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid